]>
Commit | Line | Data |
---|---|---|
947fd0a2 | 1 | /* |
9aa36dfd | 2 | * Common device tree for IGEP boards based on AM/DM37x |
947fd0a2 | 3 | * |
56a31e54 | 4 | * Copyright (C) 2012 Javier Martinez Canillas <javier@osg.samsung.com> |
947fd0a2 JMC |
5 | * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com> |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | */ | |
11 | /dts-v1/; | |
12 | ||
9aa36dfd | 13 | #include "omap36xx.dtsi" |
947fd0a2 JMC |
14 | |
15 | / { | |
16 | memory { | |
17 | device_type = "memory"; | |
18 | reg = <0x80000000 0x20000000>; /* 512 MB */ | |
19 | }; | |
20 | ||
8d289cc6 EBS |
21 | chosen { |
22 | stdout-path = &uart3; | |
23 | }; | |
24 | ||
947fd0a2 JMC |
25 | sound { |
26 | compatible = "ti,omap-twl4030"; | |
27 | ti,model = "igep2"; | |
28 | ti,mcbsp = <&mcbsp2>; | |
947fd0a2 | 29 | }; |
0e9fd777 EBS |
30 | |
31 | vdd33: regulator-vdd33 { | |
32 | compatible = "regulator-fixed"; | |
33 | regulator-name = "vdd33"; | |
34 | regulator-always-on; | |
35 | }; | |
36 | ||
947fd0a2 JMC |
37 | }; |
38 | ||
39 | &omap3_pmx_core { | |
bc0b8b70 MB |
40 | uart1_pins: pinmux_uart1_pins { |
41 | pinctrl-single,pins = < | |
be146412 LP |
42 | OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */ |
43 | OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */ | |
bc0b8b70 MB |
44 | >; |
45 | }; | |
46 | ||
947fd0a2 JMC |
47 | uart3_pins: pinmux_uart3_pins { |
48 | pinctrl-single,pins = < | |
be146412 LP |
49 | OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */ |
50 | OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */ | |
947fd0a2 JMC |
51 | >; |
52 | }; | |
53 | ||
65399f03 EBS |
54 | mcbsp2_pins: pinmux_mcbsp2_pins { |
55 | pinctrl-single,pins = < | |
be146412 LP |
56 | OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */ |
57 | OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */ | |
58 | OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */ | |
59 | OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */ | |
65399f03 EBS |
60 | >; |
61 | }; | |
62 | ||
947fd0a2 JMC |
63 | mmc1_pins: pinmux_mmc1_pins { |
64 | pinctrl-single,pins = < | |
be146412 LP |
65 | OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ |
66 | OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ | |
67 | OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ | |
68 | OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ | |
69 | OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ | |
70 | OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ | |
947fd0a2 JMC |
71 | >; |
72 | }; | |
d72b4415 | 73 | |
0e9fd777 EBS |
74 | mmc2_pins: pinmux_mmc2_pins { |
75 | pinctrl-single,pins = < | |
be146412 LP |
76 | OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */ |
77 | OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */ | |
78 | OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */ | |
79 | OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */ | |
80 | OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */ | |
81 | OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */ | |
0e9fd777 EBS |
82 | >; |
83 | }; | |
84 | ||
d526daeb JMC |
85 | i2c1_pins: pinmux_i2c1_pins { |
86 | pinctrl-single,pins = < | |
be146412 LP |
87 | OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */ |
88 | OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */ | |
d526daeb JMC |
89 | >; |
90 | }; | |
91 | ||
d526daeb JMC |
92 | i2c3_pins: pinmux_i2c3_pins { |
93 | pinctrl-single,pins = < | |
be146412 LP |
94 | OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */ |
95 | OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */ | |
d526daeb JMC |
96 | >; |
97 | }; | |
947fd0a2 JMC |
98 | }; |
99 | ||
e170db3c EBS |
100 | &gpmc { |
101 | nand@0,0 { | |
44e47164 RQ |
102 | compatible = "ti,omap2-nand"; |
103 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ | |
104 | interrupt-parent = <&gpmc>; | |
105 | interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ | |
106 | <1 IRQ_TYPE_NONE>; /* termcount */ | |
e170db3c | 107 | linux,mtd-name= "micron,mt29c4g96maz"; |
e170db3c EBS |
108 | nand-bus-width = <16>; |
109 | gpmc,device-width = <2>; | |
110 | ti,nand-ecc-opt = "bch8"; | |
111 | ||
112 | gpmc,sync-clk-ps = <0>; | |
113 | gpmc,cs-on-ns = <0>; | |
114 | gpmc,cs-rd-off-ns = <44>; | |
115 | gpmc,cs-wr-off-ns = <44>; | |
116 | gpmc,adv-on-ns = <6>; | |
117 | gpmc,adv-rd-off-ns = <34>; | |
118 | gpmc,adv-wr-off-ns = <44>; | |
119 | gpmc,we-off-ns = <40>; | |
120 | gpmc,oe-off-ns = <54>; | |
121 | gpmc,access-ns = <64>; | |
122 | gpmc,rd-cycle-ns = <82>; | |
123 | gpmc,wr-cycle-ns = <82>; | |
124 | gpmc,wr-access-ns = <40>; | |
125 | gpmc,wr-data-mux-bus-ns = <0>; | |
126 | ||
127 | #address-cells = <1>; | |
128 | #size-cells = <1>; | |
129 | ||
130 | partition@0 { | |
131 | label = "SPL"; | |
132 | reg = <0 0x100000>; | |
133 | }; | |
134 | partition@80000 { | |
135 | label = "U-Boot"; | |
136 | reg = <0x100000 0x180000>; | |
137 | }; | |
138 | partition@1c0000 { | |
139 | label = "Environment"; | |
140 | reg = <0x280000 0x100000>; | |
141 | }; | |
142 | partition@280000 { | |
143 | label = "Kernel"; | |
144 | reg = <0x380000 0x300000>; | |
145 | }; | |
146 | partition@780000 { | |
147 | label = "Filesystem"; | |
148 | reg = <0x680000 0x1f980000>; | |
149 | }; | |
150 | }; | |
151 | }; | |
152 | ||
947fd0a2 | 153 | &i2c1 { |
d526daeb JMC |
154 | pinctrl-names = "default"; |
155 | pinctrl-0 = <&i2c1_pins>; | |
947fd0a2 JMC |
156 | clock-frequency = <2600000>; |
157 | ||
158 | twl: twl@48 { | |
159 | reg = <0x48>; | |
160 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | |
161 | interrupt-parent = <&intc>; | |
162 | ||
163 | twl_audio: audio { | |
164 | compatible = "ti,twl4030-audio"; | |
165 | codec { | |
272c789b | 166 | }; |
947fd0a2 JMC |
167 | }; |
168 | }; | |
169 | }; | |
170 | ||
98ef7957 | 171 | #include "twl4030.dtsi" |
f9688457 | 172 | #include "twl4030_omap3.dtsi" |
947fd0a2 | 173 | |
d526daeb JMC |
174 | &i2c3 { |
175 | pinctrl-names = "default"; | |
176 | pinctrl-0 = <&i2c3_pins>; | |
177 | }; | |
178 | ||
65399f03 EBS |
179 | &mcbsp2 { |
180 | pinctrl-names = "default"; | |
181 | pinctrl-0 = <&mcbsp2_pins>; | |
726322ce | 182 | status = "okay"; |
65399f03 EBS |
183 | }; |
184 | ||
947fd0a2 | 185 | &mmc1 { |
272c789b LP |
186 | pinctrl-names = "default"; |
187 | pinctrl-0 = <&mmc1_pins>; | |
188 | vmmc-supply = <&vmmc1>; | |
189 | vmmc_aux-supply = <&vsim>; | |
190 | bus-width = <4>; | |
b44f788c | 191 | cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>; |
947fd0a2 JMC |
192 | }; |
193 | ||
947fd0a2 JMC |
194 | &mmc3 { |
195 | status = "disabled"; | |
196 | }; | |
197 | ||
bc0b8b70 | 198 | &uart1 { |
272c789b LP |
199 | pinctrl-names = "default"; |
200 | pinctrl-0 = <&uart1_pins>; | |
bc0b8b70 MB |
201 | }; |
202 | ||
947fd0a2 | 203 | &uart3 { |
272c789b LP |
204 | pinctrl-names = "default"; |
205 | pinctrl-0 = <&uart3_pins>; | |
947fd0a2 JMC |
206 | }; |
207 | ||
208 | &twl_gpio { | |
209 | ti,use-leds; | |
210 | }; | |
aa496bde JMC |
211 | |
212 | &usb_otg_hs { | |
213 | interface-type = <0>; | |
214 | usb-phy = <&usb2_phy>; | |
215 | phys = <&usb2_phy>; | |
216 | phy-names = "usb2-phy"; | |
217 | mode = <3>; | |
218 | power = <50>; | |
219 | }; |