From nobody Sat Feb 7 23:11:06 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 091D72F656D for ; Mon, 20 Oct 2025 10:08:01 +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=1760954884; cv=none; b=iZteuvTodOljOu6gmXnTmjAeMtLAv8AYuYLJnNTSQdx1dQsI7oSkuJyvFKKlxAn/HSjvjvkDqq6YRvuBGFiWcoBl102OizAvssAlkEG5pgWciF3EL3of+DObevmqooXaLC3MDkk01foYuf9Wa0YRV/5S6aOxOT4xoQJOKO7eLrY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760954884; c=relaxed/simple; bh=7F505EyqfkFtmrpifxRl5wmSCrZThEdiVBnZl7jelyM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KPwGEeNUwV4B0KFkDah3DXFD39Jkm7Ad7kOG1UQ8BvKhXazbsoOTtxULIyP+0J2vmzvw3f2ba8TdFxBpgCIlKf0oPFQ3/zoqAQrdhgbE7nxjOuLy43EyJe/v6Ll8z8Qh4U6lNdZMSVUAxChfC0WwnOKROdgicpNVct4h187/1RM= 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=rCM2TdgV; 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="rCM2TdgV" 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=09O5QDNgkPI4J0LH95vZriOMzylPRPvgRsjibc+KLU4=; b=rCM2TdgVQO/paW6fIz653Btvxa iTs+PWamYf6h0kV/WwF1PmzFXZzZtBIOipE/VYCfjrkZt4F674JKtaiy7ZVnYJopGc6bLrTwwxB+1 pnwgOwBFhX/6texL6G0B8JH2QOHdA8hkUX/+o2tdAbG0gLGo/nncyaccdvDAsHM7WymAO7Y0plpuB m3Sh358k/iaO5a2jzL/40wmYwvXNyOxss56f+0H9KchiEvt6fDFsEwkDVlzg7UZTpUUqtHNYtlO0Q hiZF6HybGrOnQkzDusNCMKH9EKrpv6jZ3wv8Kse3BU+/+lWvAoUyKyWJzHF0cOmD9Icdkg4jAjlx1 D4nzK9SQ==; 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-0U; 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 1/3] arm64: dts: rockchip: add gmac reset property to rk3368 Date: Mon, 20 Oct 2025 12:07:55 +0200 Message-ID: <20251020100757.3669681-2-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 Add the reset of the gmac controller block. Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts= /rockchip/rk3368.dtsi index 892d35242259..47968032afdc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -498,6 +498,8 @@ gmac: ethernet@ff290000 { "mac_clk_rx", "mac_clk_tx", "clk_mac_ref", "clk_mac_refout", "aclk_mac", "pclk_mac"; + resets =3D <&cru SRST_MAC>; + reset-names =3D "stmmaceth"; status =3D "disabled"; }; =20 --=20 2.47.2 From nobody Sat Feb 7 23:11:06 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 091522F656A for ; Mon, 20 Oct 2025 10:08:01 +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=TiNG6+cNgxqu8sA5rkYHul3tZYVWuVU8oIvb8H5mmFz2CWXcHb8Vc7pjFnf20JSyopBof1c7Mq5HsKrYoOUc6zjiE5TNXCSH+9CZ09hWLcJufltPASr+Lq+Te6E0wJdiC8BSJnrTL8tPyzhpVvwVM2jXDJ34g8kcjI8H0XYTRbM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760954885; c=relaxed/simple; bh=15fETiTjB2kpl4NRK6Y1Mwcw2KNt8Ho9rf9d7WhzbD4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=R6NthE50Y04TXwcouqAYWsdsVXwHXXEI71+Jq36mOLHcsUPIFtC6MlYvI4TZ3wYIpF4K5E0LFvC/xTYr39dL5obTI21fgFIYToagMEPdf+anmjPSdrDh/BqLIxGXNT4H442zzWCYKXY4FU4FhLxUnEmc6v1mdPGHSePTxi56GtM= 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=OdOpTtlO; 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="OdOpTtlO" 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=FHFcmsNZxPjCN0PuRuFzV6HzJ7Y7FUg2bMao6+29mxc=; b=OdOpTtlOmDz98ST5DMjqWG+Ore N+dNNvZvqwWtBy8uhe42rLKvQeCfCzolFsC35+Kn2aVmHwKJmGV5zakGcKh70dsPTBvjSOKF6j+wc dKkGjSjKQj6bTXXd8ektKTCJqDOt5oXvQoKQLqpkev+pd0CNLQ5alFvTRwZwPXCWai0fBYrdROGNd shcwmvUOphb9hbRP4AitujI9OBP62bpm+cqiz+HQwJ3fJPiGoKgnSsvUJKrQlDmU+b2HIP3nWULB5 pTWJrjqZQecU/h1stBq9OETrzhc6XPgzqivknGhJPlXrEZrnTNuNYlReSF8fF83kmtpYhEfWLiuCE dDZs9kDg==; 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-6V; 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 2/3] arm64: dts: rockchip: add mdio subnode to gmac on rk3368 Date: Mon, 20 Oct 2025 12:07:56 +0200 Message-ID: <20251020100757.3669681-3-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 This is needed to actually describe the per-board phys connected to the gmac when needed. Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts= /rockchip/rk3368.dtsi index 47968032afdc..98d350768fd2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -501,6 +501,12 @@ gmac: ethernet@ff290000 { resets =3D <&cru SRST_MAC>; reset-names =3D "stmmaceth"; status =3D "disabled"; + + mdio: mdio { + compatible =3D "snps,dwmac-mdio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; }; =20 usb_host0_ehci: usb@ff500000 { --=20 2.47.2 From nobody Sat Feb 7 23:11:06 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