diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-06-27 20:45:56 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-07-04 15:18:08 -0400 |
commit | d7b9eaff5f0ca00726336b4c0c3c29decf30412a (patch) | |
tree | 590736c4aadd9311bf639fa6cba643cd0bce0efa | |
parent | 29bc949088a6bdb97bbd112a0d463d00898f2641 (diff) |
ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board
Now that we have a proper binding for Ethernet switches hanging off
different buses, and a driver for the BCM53125 switch, add its Device
Tree as a child MDIO node, at MDIO address 30 (Broadcom pseudo-PHY
address) and describe the ports layout of the Lamobo R1 board.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts index 5ee43d8bf174..fbca93406e1b 100644 --- a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts +++ b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | |||
@@ -110,13 +110,67 @@ | |||
110 | &gmac { | 110 | &gmac { |
111 | pinctrl-names = "default"; | 111 | pinctrl-names = "default"; |
112 | pinctrl-0 = <&gmac_pins_rgmii_a>; | 112 | pinctrl-0 = <&gmac_pins_rgmii_a>; |
113 | phy = <&phy1>; | ||
114 | phy-mode = "rgmii"; | 113 | phy-mode = "rgmii"; |
115 | phy-supply = <®_gmac_3v3>; | 114 | phy-supply = <®_gmac_3v3>; |
116 | status = "okay"; | 115 | status = "okay"; |
117 | 116 | ||
118 | phy1: ethernet-phy@1 { | 117 | fixed-link { |
119 | reg = <1>; | 118 | speed = <1000>; |
119 | full-duplex; | ||
120 | }; | ||
121 | |||
122 | mdio { | ||
123 | compatible = "snps,dwmac-mdio"; | ||
124 | #address-cells = <1>; | ||
125 | #size-cells = <0>; | ||
126 | |||
127 | switch: ethernet-switch@1e { | ||
128 | compatible = "brcm,bcm53125"; | ||
129 | reg = <30>; | ||
130 | #address-cells = <1>; | ||
131 | #size-cells = <0>; | ||
132 | |||
133 | ports { | ||
134 | #address-cells = <1>; | ||
135 | #size-cells = <0>; | ||
136 | |||
137 | port0: port@0 { | ||
138 | reg = <0>; | ||
139 | label = "lan2"; | ||
140 | }; | ||
141 | |||
142 | port1: port@1 { | ||
143 | reg = <1>; | ||
144 | label = "lan3"; | ||
145 | }; | ||
146 | |||
147 | port2: port@2 { | ||
148 | reg = <2>; | ||
149 | label = "lan4"; | ||
150 | }; | ||
151 | |||
152 | port3: port@3 { | ||
153 | reg = <3>; | ||
154 | label = "wan"; | ||
155 | }; | ||
156 | |||
157 | port4: port@4 { | ||
158 | reg = <4>; | ||
159 | label = "lan1"; | ||
160 | }; | ||
161 | |||
162 | port8: port@8 { | ||
163 | reg = <8>; | ||
164 | label = "cpu"; | ||
165 | ethernet = <&gmac>; | ||
166 | phy-mode = "rgmii"; | ||
167 | fixed-link { | ||
168 | speed = <1000>; | ||
169 | full-duplex; | ||
170 | }; | ||
171 | }; | ||
172 | }; | ||
173 | }; | ||
120 | }; | 174 | }; |
121 | }; | 175 | }; |
122 | 176 | ||