summaryrefslogtreecommitdiff
path: root/arch/arm/dts/sun8i-h3-orangepi-plus.dts
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-08-26 14:58:52 -0400
committerTom Rini <trini@konsulko.com>2016-08-26 17:05:01 -0400
commitc6b968da78ce3fa7224c0ddf15fe170c7c05b27e (patch)
tree42716ddc52ec9caecc19588a2d0c5ca9a94188dd /arch/arm/dts/sun8i-h3-orangepi-plus.dts
parent1cfce74fe5a2301ee9b384d9395ba95db930c9d6 (diff)
parentd5ac6eef91965b519d8f15f17febfa0ea2ee0adc (diff)
Merge branch 'master' of http://git.denx.de/u-boot-sunxi
Diffstat (limited to 'arch/arm/dts/sun8i-h3-orangepi-plus.dts')
-rw-r--r--arch/arm/dts/sun8i-h3-orangepi-plus.dts34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/dts/sun8i-h3-orangepi-plus.dts
index 28f74f6ffd..4f4bb0f3c0 100644
--- a/arch/arm/dts/sun8i-h3-orangepi-plus.dts
+++ b/arch/arm/dts/sun8i-h3-orangepi-plus.dts
@@ -58,6 +58,18 @@
enable-active-high;
gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
};
+
+ reg_gmac_3v3: gmac-3v3 {
+ compatible = "regulator-fixed";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gmac_power_pin_orangepi>;
+ regulator-name = "gmac-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ startup-delay-us = <100000>;
+ enable-active-high;
+ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ };
};
&ehci2 {
@@ -104,8 +116,30 @@
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+
+ gmac_power_pin_orangepi: gmac_power_pin@0 {
+ allwinner,pins = "PD6";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
};
&usbphy {
usb3_vbus-supply = <&reg_usb3_vbus>;
};
+
+&emac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&emac_rgmii_pins>;
+ phy-supply = <&reg_gmac_3v3>;
+ phy = <&phy1>;
+ phy-mode = "rgmii";
+
+ allwinner,leds-active-low;
+ status = "okay";
+
+ phy1: ethernet-phy@1 {
+ reg = <0>;
+ };
+};