diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2012-11-14 04:08:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-14 22:09:07 -0500 |
commit | 1a39a65cba08f8a76f00fea9023d336e0858941b (patch) | |
tree | cac84ded853455b7a3128fee6378d50b344d6056 /arch | |
parent | e38c112d7ff36c54d48ef3fbceac56b9c288833a (diff) |
arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX
Add CPSW and MDIO related device tree data for AM33XX.
Also enable them into board/evm dts files by providing
respective phy-id.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/am335x-bone.dts | 8 | ||||
-rw-r--r-- | arch/arm/boot/dts/am335x-evm.dts | 8 | ||||
-rw-r--r-- | arch/arm/boot/dts/am33xx.dtsi | 48 |
3 files changed, 64 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts index c634f87e230e..4fcd21837bd3 100644 --- a/arch/arm/boot/dts/am335x-bone.dts +++ b/arch/arm/boot/dts/am335x-bone.dts | |||
@@ -78,3 +78,11 @@ | |||
78 | }; | 78 | }; |
79 | }; | 79 | }; |
80 | }; | 80 | }; |
81 | |||
82 | &cpsw_emac0 { | ||
83 | phy_id = <&davinci_mdio>, <0>; | ||
84 | }; | ||
85 | |||
86 | &cpsw_emac1 { | ||
87 | phy_id = <&davinci_mdio>, <1>; | ||
88 | }; | ||
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 185d6325a458..366d9290c0dd 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts | |||
@@ -118,3 +118,11 @@ | |||
118 | }; | 118 | }; |
119 | }; | 119 | }; |
120 | }; | 120 | }; |
121 | |||
122 | &cpsw_emac0 { | ||
123 | phy_id = <&davinci_mdio>, <0>; | ||
124 | }; | ||
125 | |||
126 | &cpsw_emac1 { | ||
127 | phy_id = <&davinci_mdio>, <1>; | ||
128 | }; | ||
diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index bb31bff01998..a4615b44f25e 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi | |||
@@ -210,5 +210,53 @@ | |||
210 | interrupt-parent = <&intc>; | 210 | interrupt-parent = <&intc>; |
211 | interrupts = <91>; | 211 | interrupts = <91>; |
212 | }; | 212 | }; |
213 | |||
214 | mac: ethernet@4a100000 { | ||
215 | compatible = "ti,cpsw"; | ||
216 | ti,hwmods = "cpgmac0"; | ||
217 | cpdma_channels = <8>; | ||
218 | ale_entries = <1024>; | ||
219 | bd_ram_size = <0x2000>; | ||
220 | no_bd_ram = <0>; | ||
221 | rx_descs = <64>; | ||
222 | mac_control = <0x20>; | ||
223 | slaves = <2>; | ||
224 | cpts_active_slave = <0>; | ||
225 | cpts_clock_mult = <0x80000000>; | ||
226 | cpts_clock_shift = <29>; | ||
227 | reg = <0x4a100000 0x800 | ||
228 | 0x4a101200 0x100>; | ||
229 | #address-cells = <1>; | ||
230 | #size-cells = <1>; | ||
231 | interrupt-parent = <&intc>; | ||
232 | /* | ||
233 | * c0_rx_thresh_pend | ||
234 | * c0_rx_pend | ||
235 | * c0_tx_pend | ||
236 | * c0_misc_pend | ||
237 | */ | ||
238 | interrupts = <40 41 42 43>; | ||
239 | ranges; | ||
240 | |||
241 | davinci_mdio: mdio@4a101000 { | ||
242 | compatible = "ti,davinci_mdio"; | ||
243 | #address-cells = <1>; | ||
244 | #size-cells = <0>; | ||
245 | ti,hwmods = "davinci_mdio"; | ||
246 | bus_freq = <1000000>; | ||
247 | reg = <0x4a101000 0x100>; | ||
248 | }; | ||
249 | |||
250 | cpsw_emac0: slave@4a100200 { | ||
251 | /* Filled in by U-Boot */ | ||
252 | mac-address = [ 00 00 00 00 00 00 ]; | ||
253 | }; | ||
254 | |||
255 | cpsw_emac1: slave@4a100300 { | ||
256 | /* Filled in by U-Boot */ | ||
257 | mac-address = [ 00 00 00 00 00 00 ]; | ||
258 | }; | ||
259 | |||
260 | }; | ||
213 | }; | 261 | }; |
214 | }; | 262 | }; |