Skip to contentSkip to conversation

arm64: dts: rockchip: fix rk3399-puma gmac reset gpio

PATCH Applied Heiko Stuebner 1 participant 2 messages Jun 3, 2020 – Jun 17, 2020

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: fix rk3399-puma gmac reset gpio

From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>

The puma gmac node currently uses opposite active-values for the gmac phy reset pin. The gpio-declaration uses active-high while the separate snps,reset-active-low property marks the pin as active low.

While on the kernel side this works ok, other DT users may get confused - as seen with uboot right now.

So bring this in line and make both properties match, similar to the other Rockchip board.

Fixes 2c66fc34e945 ("arm64: dts: rockchip: add RK3399-Q7 (Puma) SoM")
---
 arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +1 -1
index 07694b196fdb..531520e771e7 100644
@@ -157,7 +157,7 @@ &gmac {
 	phy-mode = "rgmii";
 	pinctrl-names = "default";
 	pinctrl-0 = <&rgmii_pins>;
-	snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
+	snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
 	snps,reset-active-low;
 	snps,reset-delays-us = <0 10000 50000>;
 	tx_delay = <0x10>;
Signature · 1 line
2.25.1
author maintainer Applied
#1 lore raw
Quoted 8 lines · Heiko Stuebner

The puma gmac node currently uses opposite active-values for the gmac phy reset pin. The gpio-declaration uses active-high while the separate snps,reset-active-low property marks the pin as active low.

While on the kernel side this works ok, other DT users may get confused - as seen with uboot right now.

[...]

Applied, thanks!

[1/1] arm64: dts: rockchip: fix rk3399-puma gmac reset gpio

      commit: 8a445086f8af0b7b9bd8d1901d6f306bb154f70d

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>