diff options
author | Felipe Balbi <balbi@ti.com> | 2014-12-04 16:02:57 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-01-07 19:23:52 -0500 |
commit | a75dacf8204a8ace6d42a28a157af3cc65ed3ddc (patch) | |
tree | a24f4b0622921dddbfab81a79ba036bfd99c17b0 | |
parent | 2d8a28c27db6f6138a70d271c24797471bb31002 (diff) |
ARM: dts: am57xx-beagle-x15: Add dual ethernet
Add CPSW DT binding to beagle X15 DTS in order to
get ethernet working with this board.
Note that we're also adding sleep state which will
place all pins in mux mode 15 - which means "driver
off" - thus conserving power.
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/am57xx-beagle-x15.dts | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts index 49edbda68cd5..6c2e8e41b1e9 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15.dts +++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts | |||
@@ -140,6 +140,86 @@ | |||
140 | >; | 140 | >; |
141 | }; | 141 | }; |
142 | 142 | ||
143 | cpsw_pins_default: cpsw_pins_default { | ||
144 | pinctrl-single,pins = < | ||
145 | /* Slave 1 */ | ||
146 | 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tclk */ | ||
147 | 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tctl */ | ||
148 | 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td3 */ | ||
149 | 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td2 */ | ||
150 | 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td1 */ | ||
151 | 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td0 */ | ||
152 | 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii1_rclk */ | ||
153 | 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii1_rctl */ | ||
154 | 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd3 */ | ||
155 | 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd2 */ | ||
156 | 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd1 */ | ||
157 | 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii1_rd0 */ | ||
158 | |||
159 | /* Slave 2 */ | ||
160 | 0x198 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tclk */ | ||
161 | 0x19c (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tctl */ | ||
162 | 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td3 */ | ||
163 | 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td2 */ | ||
164 | 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td1 */ | ||
165 | 0x1ac (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td0 */ | ||
166 | 0x1b0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rclk */ | ||
167 | 0x1b4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rctl */ | ||
168 | 0x1b8 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd3 */ | ||
169 | 0x1bc (PIN_INPUT | MUX_MODE3) /* rgmii2_rd2 */ | ||
170 | 0x1c0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd1 */ | ||
171 | 0x1c4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd0 */ | ||
172 | >; | ||
173 | |||
174 | }; | ||
175 | |||
176 | cpsw_pins_sleep: cpsw_pins_sleep { | ||
177 | pinctrl-single,pins = < | ||
178 | /* Slave 1 */ | ||
179 | 0x250 (PIN_INPUT | MUX_MODE15) | ||
180 | 0x254 (PIN_INPUT | MUX_MODE15) | ||
181 | 0x258 (PIN_INPUT | MUX_MODE15) | ||
182 | 0x25c (PIN_INPUT | MUX_MODE15) | ||
183 | 0x260 (PIN_INPUT | MUX_MODE15) | ||
184 | 0x264 (PIN_INPUT | MUX_MODE15) | ||
185 | 0x268 (PIN_INPUT | MUX_MODE15) | ||
186 | 0x26c (PIN_INPUT | MUX_MODE15) | ||
187 | 0x270 (PIN_INPUT | MUX_MODE15) | ||
188 | 0x274 (PIN_INPUT | MUX_MODE15) | ||
189 | 0x278 (PIN_INPUT | MUX_MODE15) | ||
190 | 0x27c (PIN_INPUT | MUX_MODE15) | ||
191 | |||
192 | /* Slave 2 */ | ||
193 | 0x198 (PIN_INPUT | MUX_MODE15) | ||
194 | 0x19c (PIN_INPUT | MUX_MODE15) | ||
195 | 0x1a0 (PIN_INPUT | MUX_MODE15) | ||
196 | 0x1a4 (PIN_INPUT | MUX_MODE15) | ||
197 | 0x1a8 (PIN_INPUT | MUX_MODE15) | ||
198 | 0x1ac (PIN_INPUT | MUX_MODE15) | ||
199 | 0x1b0 (PIN_INPUT | MUX_MODE15) | ||
200 | 0x1b4 (PIN_INPUT | MUX_MODE15) | ||
201 | 0x1b8 (PIN_INPUT | MUX_MODE15) | ||
202 | 0x1bc (PIN_INPUT | MUX_MODE15) | ||
203 | 0x1c0 (PIN_INPUT | MUX_MODE15) | ||
204 | 0x1c4 (PIN_INPUT | MUX_MODE15) | ||
205 | >; | ||
206 | }; | ||
207 | |||
208 | davinci_mdio_pins_default: davinci_mdio_pins_default { | ||
209 | pinctrl-single,pins = < | ||
210 | /* MDIO */ | ||
211 | 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_mclk */ | ||
212 | 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_d */ | ||
213 | >; | ||
214 | }; | ||
215 | |||
216 | davinci_mdio_pins_sleep: davinci_mdio_pins_sleep { | ||
217 | pinctrl-single,pins = < | ||
218 | 0x23c (PIN_INPUT | MUX_MODE15) | ||
219 | 0x240 (PIN_INPUT | MUX_MODE15) | ||
220 | >; | ||
221 | }; | ||
222 | |||
143 | tps659038_pins_default: tps659038_pins_default { | 223 | tps659038_pins_default: tps659038_pins_default { |
144 | pinctrl-single,pins = < | 224 | pinctrl-single,pins = < |
145 | 0x418 (PIN_INPUT_PULLUP | MUX_MODE14) /* wakeup0.gpio1_0 */ | 225 | 0x418 (PIN_INPUT_PULLUP | MUX_MODE14) /* wakeup0.gpio1_0 */ |
@@ -365,6 +445,32 @@ | |||
365 | pinctrl-0 = <&uart3_pins_default>; | 445 | pinctrl-0 = <&uart3_pins_default>; |
366 | }; | 446 | }; |
367 | 447 | ||
448 | &mac { | ||
449 | status = "okay"; | ||
450 | pinctrl-names = "default", "sleep"; | ||
451 | pinctrl-0 = <&cpsw_pins_default>; | ||
452 | pinctrl-1 = <&cpsw_pins_sleep>; | ||
453 | dual_emac; | ||
454 | }; | ||
455 | |||
456 | &cpsw_emac0 { | ||
457 | phy_id = <&davinci_mdio>, <1>; | ||
458 | phy-mode = "rgmii"; | ||
459 | dual_emac_res_vlan = <1>; | ||
460 | }; | ||
461 | |||
462 | &cpsw_emac1 { | ||
463 | phy_id = <&davinci_mdio>, <2>; | ||
464 | phy-mode = "rgmii"; | ||
465 | dual_emac_res_vlan = <2>; | ||
466 | }; | ||
467 | |||
468 | &davinci_mdio { | ||
469 | pinctrl-names = "default", "sleep"; | ||
470 | pinctrl-0 = <&davinci_mdio_pins_default>; | ||
471 | pinctrl-1 = <&davinci_mdio_pins_sleep>; | ||
472 | }; | ||
473 | |||
368 | &mmc1 { | 474 | &mmc1 { |
369 | status = "okay"; | 475 | status = "okay"; |
370 | 476 | ||