summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/gemini-wbd222.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-11-19 13:04:23 +0300
committerLinus Walleij <linus.walleij@linaro.org>2018-01-17 02:26:50 +0300
commit95220046a62c00b5afb1aa7c1971989d427db977 (patch)
treee4eeac48eea01d281fe3eb06c92358902e357f2c /arch/arm/boot/dts/gemini-wbd222.dts
parent8f3093b34811475a70ecdd6180cc5d3b73a7433f (diff)
downloadlinux-95220046a62c00b5afb1aa7c1971989d427db977.tar.xz
ARM: dts: Add ethernet to a bunch of platforms
These platforms have the PHY defined already so we just need to add a single device node to each of them to activate the ethernet device. The PHY skew/delay settings for pin control is known from a few vendor trees and old OpenWRT patch sets. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/gemini-wbd222.dts')
-rw-r--r--arch/arm/boot/dts/gemini-wbd222.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/gemini-wbd222.dts b/arch/arm/boot/dts/gemini-wbd222.dts
index 2f00e88292ac..6d25bcc046e7 100644
--- a/arch/arm/boot/dts/gemini-wbd222.dts
+++ b/arch/arm/boot/dts/gemini-wbd222.dts
@@ -136,6 +136,13 @@
"gpio0bgrp";
};
};
+ pinctrl-gmii {
+ /* This platform use both the ethernet ports */
+ mux {
+ function = "gmii";
+ groups = "gmii_gmac0_grp", "gmii_gmac1_grp";
+ };
+ };
};
};
@@ -165,5 +172,18 @@
<0x6000 0 0 3 &pci_intc 1>,
<0x6000 0 0 4 &pci_intc 2>;
};
+
+ ethernet@60000000 {
+ status = "okay";
+
+ ethernet-port@0 {
+ phy-mode = "rgmii";
+ phy-handle = <&phy0>;
+ };
+ ethernet-port@1 {
+ phy-mode = "rgmii";
+ phy-handle = <&phy1>;
+ };
+ };
};
};