diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2017-06-06 20:23:04 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-06-07 09:26:45 -0400 |
commit | 4b157a5c3b79fbba37732e04fedaf27405af6ed8 (patch) | |
tree | 8b380f24c127887ad236dfd9edcc7e109d75e62b | |
parent | 9907da07d49ce56b3039bb8448e3bed9ccef7163 (diff) |
arm64: allwinner: h5: enable dwmac-sun8i for Orange Pi Prime
Add the required DT parts to enable Ethernet (dwmac-sun8i driver) on
the Orange Pi Prime board. It uses an external Realtek RTL8211E PHY
connected via RGMII to provide GbE network.
This includes the regulator (which is controlled by a GPIO pin) and
the actual Ethernet MAC node, referring the RGMII pins of the device.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts index 097c33386190..d906b302cbcd 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts | |||
@@ -54,6 +54,7 @@ | |||
54 | compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5"; | 54 | compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5"; |
55 | 55 | ||
56 | aliases { | 56 | aliases { |
57 | ethernet0 = &emac; | ||
57 | serial0 = &uart0; | 58 | serial0 = &uart0; |
58 | }; | 59 | }; |
59 | 60 | ||
@@ -86,6 +87,16 @@ | |||
86 | }; | 87 | }; |
87 | }; | 88 | }; |
88 | 89 | ||
90 | reg_gmac_3v3: gmac-3v3 { | ||
91 | compatible = "regulator-fixed"; | ||
92 | regulator-name = "gmac-3v3"; | ||
93 | regulator-min-microvolt = <3300000>; | ||
94 | regulator-max-microvolt = <3300000>; | ||
95 | startup-delay-us = <100000>; | ||
96 | enable-active-high; | ||
97 | gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; | ||
98 | }; | ||
99 | |||
89 | reg_vcc3v3: vcc3v3 { | 100 | reg_vcc3v3: vcc3v3 { |
90 | compatible = "regulator-fixed"; | 101 | compatible = "regulator-fixed"; |
91 | regulator-name = "vcc3v3"; | 102 | regulator-name = "vcc3v3"; |
@@ -133,12 +144,28 @@ | |||
133 | status = "okay"; | 144 | status = "okay"; |
134 | }; | 145 | }; |
135 | 146 | ||
147 | &emac { | ||
148 | pinctrl-names = "default"; | ||
149 | pinctrl-0 = <&emac_rgmii_pins>; | ||
150 | phy-supply = <®_gmac_3v3>; | ||
151 | phy-handle = <&ext_rgmii_phy>; | ||
152 | phy-mode = "rgmii"; | ||
153 | status = "okay"; | ||
154 | }; | ||
155 | |||
136 | &ir { | 156 | &ir { |
137 | pinctrl-names = "default"; | 157 | pinctrl-names = "default"; |
138 | pinctrl-0 = <&ir_pins_a>; | 158 | pinctrl-0 = <&ir_pins_a>; |
139 | status = "okay"; | 159 | status = "okay"; |
140 | }; | 160 | }; |
141 | 161 | ||
162 | &mdio { | ||
163 | ext_rgmii_phy: ethernet-phy@1 { | ||
164 | compatible = "ethernet-phy-ieee802.3-c22"; | ||
165 | reg = <1>; | ||
166 | }; | ||
167 | }; | ||
168 | |||
142 | &mmc0 { | 169 | &mmc0 { |
143 | pinctrl-names = "default"; | 170 | pinctrl-names = "default"; |
144 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; | 171 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; |