Created
January 3, 2020 00:59
-
-
Save jakogut/bc21de0535b640f2374c1d07a710e8ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 395123e59a5eb4bd9127214b7c85a6831a1cb704 Mon Sep 17 00:00:00 2001 | |
From: Joseph Kogut <joseph.kogut@gmail.com> | |
Date: Thu, 2 Jan 2020 16:04:01 -0800 | |
Subject: [RFC PATCH 1/1] arm64: dts: rockchip: fix gmac on rk3399-orangepi | |
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com> | |
--- | |
.../boot/dts/rockchip/rk3399-orangepi.dts | 31 ++++++++++++++++--- | |
1 file changed, 27 insertions(+), 4 deletions(-) | |
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts | |
index 0541dfce924d..f04c1847ea54 100644 | |
--- a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts | |
+++ b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts | |
@@ -200,16 +200,29 @@ &gmac { | |
assigned-clocks = <&cru SCLK_RMII_SRC>; | |
assigned-clock-parents = <&clkin_gmac>; | |
clock_in_out = "input"; | |
+ phy-handle = <&rtl8211e>; | |
phy-supply = <&vcc3v3_s3>; | |
phy-mode = "rgmii"; | |
pinctrl-names = "default"; | |
- pinctrl-0 = <&rgmii_pins>; | |
- snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; | |
- snps,reset-active-low; | |
- snps,reset-delays-us = <0 10000 50000>; | |
+ pinctrl-0 = <&rgmii_pins>, <&phy_intb>, <&phy_rstb>; | |
tx_delay = <0x28>; | |
rx_delay = <0x11>; | |
status = "okay"; | |
+ | |
+ mdio { | |
+ compatible = "snps,dwmac-mdio"; | |
+ #address-cells = <1>; | |
+ #size-cells = <0>; | |
+ | |
+ rtl8211e: phy@1 { | |
+ reg = <1>; | |
+ interrupt-parent = <&gpio3>; | |
+ interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>; | |
+ reset-assert-us = <10000>; | |
+ reset-deassert-us = <30000>; | |
+ reset_gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; | |
+ }; | |
+ }; | |
}; | |
&gpu { | |
@@ -537,6 +550,16 @@ pwr_btn: pwr-btn { | |
}; | |
}; | |
+ phy { | |
+ phy_intb: phy-intb { | |
+ rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; | |
+ }; | |
+ | |
+ phy_rstb: phy-rstb { | |
+ rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; | |
+ }; | |
+ }; | |
+ | |
pmic { | |
pmic_int_l: pmic-int-l { | |
rockchip,pins = | |
-- | |
2.24.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment