summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Lentin <jm@lentin.co.uk>2016-08-06 11:10:13 +0100
committerGregory CLEMENT <gregory.clement@free-electrons.com>2016-09-14 17:00:26 +0200
commitd30363364811e956816cb586936269ecb9a30299 (patch)
treedd37c1cf6ed8f751c88783ffeed9cf4e0a9b84de
parentb6114633fb21c83af21ac26254f7951664f9697b (diff)
ARM: dts: orion5x: Configure WNR854T ethernet PHY LEDs
The default PHY configuration disables most of the LEDs. The following configures the ethernet activity LEDs as Netgear intended. [gregory.clement@free-electrons.com: fix commit title] Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/orion5x-netgear-wnr854t.dts51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts b/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts
index 86a3cb1610ee..9f6ae4e1de06 100644
--- a/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts
+++ b/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts
@@ -124,31 +124,82 @@
port@0 {
reg = <0>;
label = "lan3";
+ phy-handle = <&lan3phy>;
};
port@1 {
reg = <1>;
label = "lan4";
+ phy-handle = <&lan4phy>;
};
port@2 {
reg = <2>;
label = "wan";
+ phy-handle = <&wanphy>;
};
port@3 {
reg = <3>;
label = "cpu";
+ ethernet = <&ethport>;
};
port@5 {
reg = <5>;
label = "lan1";
+ phy-handle = <&lan1phy>;
};
port@7 {
reg = <7>;
label = "lan2";
+ phy-handle = <&lan2phy>;
+ };
+ };
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ lan3phy: ethernet-phy@0 {
+ /* Marvell 88E1121R (port 1) */
+ compatible = "ethernet-phy-id0141.0cb0",
+ "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
+ };
+
+ lan4phy: ethernet-phy@1 {
+ /* Marvell 88E1121R (port 2) */
+ compatible = "ethernet-phy-id0141.0cb0",
+ "ethernet-phy-ieee802.3-c22";
+ reg = <1>;
+ marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
+ };
+
+ wanphy: ethernet-phy@2 {
+ /* Marvell 88E1121R (port 1) */
+ compatible = "ethernet-phy-id0141.0cb0",
+ "ethernet-phy-ieee802.3-c22";
+ reg = <2>;
+ marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
+ };
+
+ lan1phy: ethernet-phy@5 {
+ /* Marvell 88E1112 */
+ compatible = "ethernet-phy-id0141.0cb0",
+ "ethernet-phy-ieee802.3-c22";
+ reg = <5>;
+ marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
+ };
+
+ lan2phy: ethernet-phy@7 {
+ /* Marvell 88E1112 */
+ compatible = "ethernet-phy-id0141.0cb0",
+ "ethernet-phy-ieee802.3-c22";
+ reg = <7>;
+ marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
};
};
};