arm64: dts: rockchip: Add gmac phy reset GPIO to QNAP TS433
authorUwe Kleine-König <uwe@kleine-koenig.org>
Tue, 18 Mar 2025 21:08:46 +0000 (22:08 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 7 Apr 2025 07:15:45 +0000 (09:15 +0200)
While looking through the vendor U-Boot code Heiko spotted that a SoC
GPIO is connected to the ethernet phy's reset pin. Add the respective
reset-gpios property with pinmuxing for the GPIO to the phy node.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/49f66206fccc714a8745b9ac35247615ad5cc369.1742331667.git.ukleinek@kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts

index 70e88769e21c369a08aa346170d23695e71f0f52..411f8ac7994b3aefdaf8dd49050ba09ed772bf74 100644 (file)
                /* Motorcomm YT8521 phy */
                compatible = "ethernet-phy-ieee802.3-c22";
                reg = <0x3>;
+               pinctrl-0 = <&eth_phy0_reset_pin>;
+               pinctrl-names = "default";
+               reset-assert-us = <10000>;
+               reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
        };
 };
 
 };
 
 &pinctrl {
+       gmac0 {
+               eth_phy0_reset_pin: eth-phy0-reset-pin {
+                       rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+
        keys {
                copy_button_pin: copy-button-pin {
                        rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>;