diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2013-04-17 12:32:09 -0400 |
---|---|---|
committer | Benoit Cousson <benoit.cousson@linaro.org> | 2013-06-18 19:53:36 -0400 |
commit | d72b4415011e3b5949bf03973ac633d2e36bad0d (patch) | |
tree | 8560b7c2bcb3db583af6423708fe95d75611db43 /arch | |
parent | 4d9275709649f82dcec157766e86318f6c2c61f6 (diff) |
ARM: dts: omap3-igep0020: Add SMSC911x LAN chip support
The IGEPv2 board has an SMSC LAN9221i ethernet chip connected to
the OMAP3 processor though the General-Purpose Memory Controller.
This patch adds a device node for the ethernet chip as a GPMC child
and all its dependencies (regulators, GPIO and pin muxs).
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/omap3-igep.dtsi | 6 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3-igep0020.dts | 53 |
2 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-igep.dtsi b/arch/arm/boot/dts/omap3-igep.dtsi index f8fe3b748c3e..d5cd504bc180 100644 --- a/arch/arm/boot/dts/omap3-igep.dtsi +++ b/arch/arm/boot/dts/omap3-igep.dtsi | |||
@@ -62,6 +62,12 @@ | |||
62 | 0x126 0x0100 /* sdmmc1_dat7.sdmmc1_dat7 INPUT | MODE 0 */ | 62 | 0x126 0x0100 /* sdmmc1_dat7.sdmmc1_dat7 INPUT | MODE 0 */ |
63 | >; | 63 | >; |
64 | }; | 64 | }; |
65 | |||
66 | smsc911x_pins: pinmux_smsc911x_pins { | ||
67 | pinctrl-single,pins = < | ||
68 | 0x1a2 0x0104 /* mcspi1_cs2.gpio_176 INPUT | MODE4 */ | ||
69 | >; | ||
70 | }; | ||
65 | }; | 71 | }; |
66 | 72 | ||
67 | &i2c1 { | 73 | &i2c1 { |
diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts index e2b98490cc9a..4bac32e77be4 100644 --- a/arch/arm/boot/dts/omap3-igep0020.dts +++ b/arch/arm/boot/dts/omap3-igep0020.dts | |||
@@ -40,6 +40,18 @@ | |||
40 | gpios = <&twl_gpio 19 1>; | 40 | gpios = <&twl_gpio 19 1>; |
41 | }; | 41 | }; |
42 | }; | 42 | }; |
43 | |||
44 | vddvario: regulator-vddvario { | ||
45 | compatible = "regulator-fixed"; | ||
46 | regulator-name = "vddvario"; | ||
47 | regulator-always-on; | ||
48 | }; | ||
49 | |||
50 | vdd33a: regulator-vdd33a { | ||
51 | compatible = "regulator-fixed"; | ||
52 | regulator-name = "vdd33a"; | ||
53 | regulator-always-on; | ||
54 | }; | ||
43 | }; | 55 | }; |
44 | 56 | ||
45 | &i2c3 { | 57 | &i2c3 { |
@@ -54,3 +66,44 @@ | |||
54 | reg = <0x50>; | 66 | reg = <0x50>; |
55 | }; | 67 | }; |
56 | }; | 68 | }; |
69 | |||
70 | &gpmc { | ||
71 | ranges = <5 0 0x2c000000 0x1000000>; | ||
72 | ethernet@5,0 { | ||
73 | pinctrl-names = "default"; | ||
74 | pinctrl-0 = <&smsc911x_pins>; | ||
75 | compatible = "smsc,lan9221", "smsc,lan9115"; | ||
76 | reg = <5 0 0xff>; | ||
77 | bank-width = <2>; | ||
78 | |||
79 | gpmc,mux-add-data; | ||
80 | gpmc,cs-on-ns = <0>; | ||
81 | gpmc,cs-rd-off-ns = <186>; | ||
82 | gpmc,cs-wr-off-ns = <186>; | ||
83 | gpmc,adv-on-ns = <12>; | ||
84 | gpmc,adv-rd-off-ns = <48>; | ||
85 | gpmc,adv-wr-off-ns = <48>; | ||
86 | gpmc,oe-on-ns = <54>; | ||
87 | gpmc,oe-off-ns = <168>; | ||
88 | gpmc,we-on-ns = <54>; | ||
89 | gpmc,we-off-ns = <168>; | ||
90 | gpmc,rd-cycle-ns = <186>; | ||
91 | gpmc,wr-cycle-ns = <186>; | ||
92 | gpmc,access-ns = <114>; | ||
93 | gpmc,page-burst-access-ns = <6>; | ||
94 | gpmc,bus-turnaround-ns = <12>; | ||
95 | gpmc,cycle2cycle-delay-ns = <18>; | ||
96 | gpmc,wr-data-mux-bus-ns = <90>; | ||
97 | gpmc,wr-access-ns = <186>; | ||
98 | gpmc,cycle2cycle-samecsen; | ||
99 | gpmc,cycle2cycle-diffcsen; | ||
100 | |||
101 | interrupt-parent = <&gpio6>; | ||
102 | interrupts = <16 8>; | ||
103 | vmmc-supply = <&vddvario>; | ||
104 | vmmc_aux-supply = <&vdd33a>; | ||
105 | reg-io-width = <4>; | ||
106 | |||
107 | smsc,save-mac-address; | ||
108 | }; | ||
109 | }; | ||