From nobody Mon Feb 9 04:59:03 2026 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 700A22F6563 for ; Mon, 20 Oct 2025 10:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760954885; cv=none; b=K8z2RtoNbls9k55vAXao7jiFH69BhMgIx6YIMdu8Os/+yqsbpxdG8FhiMGnEreGIBPfQl/OAA0x1v3Lz3gZSJ1KiYkLIg+xuK7xdHF5iqjGWsJxsvpwVFnw7mlavB4aIiXzSXgJRpdkmyV3wfrv8TuEZF7GYDTQTT2NlRx9nKX4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760954885; c=relaxed/simple; bh=JZPJieBpJjFKRf9NMX2EuFbbhAFom0J/M+0q+S+EI1A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uf+T+l55w64TH248mZ3SnqpZ3PgS9tWmQChEo/ACK6ZOqxVxwLmLlWxnYm7riNQf0DkjSUFlCb/mdMoUzKiWJqn1/TOXL5t5SD+SVN9VjaI92/zDE0zJmURNIu+i3R26VPotr21dJuU/3ESVdV2514bb65FEuUYplG85EUKdQZE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=fhCdSmbw; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="fhCdSmbw" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type; bh=hBNAS5M1hQOxxlrANdSff3GZBvV5T3wowX7znoz7cEM=; b=fhCdSmbwx7yd07UWQjihZgYCqB HrORil8TilBFrQpmlUE1aauEc5o4g8xn1aHAzgEzuKfdh1INr3eDoCL13+uS2U1gR7v0jxHoYUntR B7Tobhyhp7cjA4WcsP/7lOUDyDyD9V69OrptEGh1iMUOGS0oPsu6hngKmK1r4wpr9U5vHnjShl/Ex dN0g+J6ombfz3NZiFENa5Bu3zdLtfcYr87UXRkezFh+bCXh9pHZ+m+1ZjprZCikF6bq5f0BhxjnYr zKj4GfPz5xTpv+EtdWhn5WEwwTRbhBifcR2ZiRDvVPJPbk+aWTThEs6TYHIJL5r4QXoacXafcZPxZ DMuYUKFg==; Received: from [141.76.253.240] (helo=phil.eduroam.local) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vAmo4-00083f-CR; Mon, 20 Oct 2025 12:08:00 +0200 From: Heiko Stuebner To: heiko@sntech.de Cc: quentin.schulz@cherry.de, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner Subject: [PATCH 3/3] arm64: dts: rockchip: Correctly describe the ethernet phy on rk3368-lion Date: Mon, 20 Oct 2025 12:07:57 +0200 Message-ID: <20251020100757.3669681-4-heiko@sntech.de> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20251020100757.3669681-1-heiko@sntech.de> References: <20251020100757.3669681-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Heiko Stuebner So far, the board used the phy implicitly using the deprecated snps reset properties. Improve that and describe the PHY correctly under the new mdio node. Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz --- arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi b/arch/arm64/boo= t/dts/rockchip/rk3368-lion.dtsi index 8ccc3184a836..61c52bd91784 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi @@ -154,13 +154,11 @@ &gmac { assigned-clocks =3D <&cru SCLK_MAC>; assigned-clock-parents =3D <&ext_gmac>; clock_in_out =3D "input"; + phy-handle =3D <&vsc8531_2>; phy-supply =3D <&vcc33_io>; phy-mode =3D "rgmii"; pinctrl-names =3D "default"; pinctrl-0 =3D <&rgmii_pins>; - snps,reset-active-low; - snps,reset-delays-us =3D <0 10000 50000>; - snps,reset-gpio =3D <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>; tx_delay =3D <0x10>; rx_delay =3D <0x10>; status =3D "okay"; @@ -285,7 +283,25 @@ &io_domains { status =3D "okay"; }; =20 +&mdio { + vsc8531_2: ethernet-phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <0x0>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&phy_rst>; + reset-assert-us =3D <10000>; + reset-deassert-us =3D <50000>; + reset-gpios =3D <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>; + }; +}; + &pinctrl { + ethernet { + phy_rst: phy-rst { + rockchip,pins =3D <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + leds { module_led_pins: module-led-pins { rockchip,pins =3D --=20 2.47.2