summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2016-11-07 11:43:56 +0100
committerKevin Hilman <khilman@baylibre.com>2016-11-15 12:05:49 -0800
commit73a5d99febe634ee5fd9f644600246b4262bac2c (patch)
tree51b667cdd29aacafcddc3c89bf384000550c49c0 /arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts
parente9e27c647cb063b3b0e58d40414852bb00980171 (diff)
ARM64: dts: meson-gxl-p23x: Enable ethernet
Enable Ethernet on the p23x board, pinctrl attribute is only added for the p230 board since the p231 only uses the Internal PHY. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts')
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts
index 3dfaa37f78f4..4d082a7fdf51 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts
@@ -49,3 +49,28 @@
compatible = "amlogic,p230", "amlogic,s905d", "amlogic,meson-gxl";
model = "Amlogic Meson GXL (S905D) P230 Development Board";
};
+
+/* P230 has exclusive choice between internal or external PHY */
+&ethmac {
+ pinctrl-0 = <&eth_pins>;
+ pinctrl-names = "default";
+
+ /* Select external PHY by default */
+ phy-handle = <&external_phy>;
+
+ /* External PHY reset is shared with internal PHY Led signals */
+ snps,reset-gpio = <&gpio GPIOZ_14 0>;
+ snps,reset-delays-us = <0 10000 1000000>;
+ snps,reset-active-low;
+
+ /* External PHY is in RGMII */
+ phy-mode = "rgmii";
+};
+
+&external_mdio {
+ external_phy: ethernet-phy@0 {
+ compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ max-speed = <1000>;
+ };
+};