summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-12-08 10:31:57 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-12-08 12:06:40 +0300
commit039359948a4b43a1eb2f1ab06b36e33b3a46640f (patch)
treec166215469819b3b43dfcda7460e0ea9f9b9393a /arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
parentaadf237f42185f2dfba731453b4c48fadae9b209 (diff)
downloadlinux-039359948a4b43a1eb2f1ab06b36e33b3a46640f.tar.xz
ARM: dts: sun8i: a83t: Enable Ethernet on two boards
The Cubietruck Plus has a Realtek RTL8211E RGMII PHY tied to the EMAC. The AXP818 PMIC's regulators provide main power and secondary signaling voltages to the PHY. The latter is always on, as it also supplies the pingroup on the SoC, which has other uses. The Bananapi M3 has a Realtek RTL8211E RGMII PHY tied to the EMAC. The AXP818 PMIC's SW regulators provides power to the PHY. This patch enables Ethernet with the EMAC on both these boards by enabling the emac node and setting all the required properties. A proper ethernet alias is added as well. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
index 7f0a3f6d0cf2..6da08cd0e107 100644
--- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
@@ -52,6 +52,7 @@
compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
aliases {
+ ethernet0 = &emac;
serial0 = &uart0;
};
@@ -154,6 +155,22 @@
status = "okay";
};
+&emac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&emac_rgmii_pins>;
+ phy-supply = <&reg_dldo4>;
+ phy-handle = <&rgmii_phy>;
+ phy-mode = "rgmii";
+ status = "okay";
+};
+
+&mdio {
+ rgmii_phy: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <1>;
+ };
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;