Merge branch 'omap-for-v4.8/legacy' into for-next
[deliverable/linux.git] / arch / arm / boot / dts / logicpd-torpedo-som.dtsi
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
5 */
6
7 #include <dt-bindings/input/input.h>
8
9 / {
10 cpus {
11 cpu@0 {
12 cpu0-supply = <&vcc>;
13 };
14 };
15
16 leds {
17 compatible = "gpio-leds";
18 user0 {
19 label = "user0";
20 gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */
21 linux,default-trigger = "none";
22 };
23 };
24
25 wl12xx_vmmc: wl12xx_vmmc {
26 compatible = "regulator-fixed";
27 regulator-name = "vwl1271";
28 regulator-min-microvolt = <1800000>;
29 regulator-max-microvolt = <1800000>;
30 gpio = <&gpio5 29 0>; /* gpio157 */
31 startup-delay-us = <70000>;
32 enable-active-high;
33 vin-supply = <&vmmc2>;
34 };
35 };
36
37 &gpmc {
38 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
39
40 nand@0,0 {
41 compatible = "ti,omap2-nand";
42 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
43 interrupt-parent = <&gpmc>;
44 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
45 <1 IRQ_TYPE_NONE>; /* termcount */
46 linux,mtd-name = "micron,mt29f4g16abbda3w";
47 nand-bus-width = <16>;
48 ti,nand-ecc-opt = "bch8";
49 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
50 gpmc,sync-clk-ps = <0>;
51 gpmc,cs-on-ns = <0>;
52 gpmc,cs-rd-off-ns = <44>;
53 gpmc,cs-wr-off-ns = <44>;
54 gpmc,adv-on-ns = <6>;
55 gpmc,adv-rd-off-ns = <34>;
56 gpmc,adv-wr-off-ns = <44>;
57 gpmc,we-off-ns = <40>;
58 gpmc,oe-off-ns = <54>;
59 gpmc,access-ns = <64>;
60 gpmc,rd-cycle-ns = <82>;
61 gpmc,wr-cycle-ns = <82>;
62 gpmc,wr-access-ns = <40>;
63 gpmc,wr-data-mux-bus-ns = <0>;
64 gpmc,device-width = <2>;
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 /* u-boot uses mtdparts=omap2-nand.0:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs) */
69
70 x-loader@0 {
71 label = "x-loader";
72 reg = <0 0x80000>;
73 };
74
75 bootloaders@80000 {
76 label = "u-boot";
77 reg = <0x80000 0x1e0000>;
78 };
79
80 bootloaders_env@260000 {
81 label = "u-boot-env";
82 reg = <0x260000 0x20000>;
83 };
84
85 kernel@280000 {
86 label = "kernel";
87 reg = <0x280000 0x400000>;
88 };
89
90 filesystem@680000 {
91 label = "fs";
92 reg = <0x680000 0>; /* 0 = MTDPART_SIZ_FULL */
93 };
94 };
95 };
96
97 &i2c1 {
98 clock-frequency = <2600000>;
99
100 twl: twl@48 {
101 reg = <0x48>;
102 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
103 interrupt-parent = <&intc>;
104 twl_audio: audio {
105 compatible = "ti,twl4030-audio";
106 codec {
107 };
108 };
109 };
110 };
111
112 &i2c2 {
113 clock-frequency = <400000>;
114 };
115
116 &i2c3 {
117 clock-frequency = <400000>;
118 at24@50 {
119 compatible = "at24,24c02";
120 readonly;
121 reg = <0x50>;
122 };
123 };
124
125 /*
126 * Only found on the wireless SOM. For the SOM without wireless, the pins for
127 * MMC3 can be routed with jumpers to the second MMC slot on the devkit and
128 * gpio157 is not connected. So this should be OK to keep common for now,
129 * probably device tree overlays is the way to go with the various SOM and
130 * jumpering combinations for the long run.
131 */
132 &mmc3 {
133 interrupts-extended = <&intc 94 &omap3_pmx_core2 0x46>;
134 pinctrl-0 = <&mmc3_pins &mmc3_core2_pins>;
135 pinctrl-names = "default";
136 vmmc-supply = <&wl12xx_vmmc>;
137 non-removable;
138 bus-width = <4>;
139 cap-power-off-card;
140 #address-cells = <1>;
141 #size-cells = <0>;
142 wlcore: wlcore@2 {
143 compatible = "ti,wl1283";
144 reg = <2>;
145 interrupt-parent = <&gpio5>;
146 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; /* gpio 152 */
147 ref-clock-frequency = <26000000>;
148 tcxo-clock-frequency = <26000000>;
149 };
150 };
151
152 &omap3_pmx_core {
153 mmc3_pins: pinmux_mm3_pins {
154 pinctrl-single,pins = <
155 OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat4.sdmmc3_dat0 */
156 OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat5.sdmmc3_dat1 */
157 OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat2 */
158 OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat3 */
159 OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4) /* mcbsp4_clkx.gpio_152 */
160 OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_fsr.gpio_157 */
161 >;
162 };
163 mcbsp2_pins: pinmux_mcbsp2_pins {
164 pinctrl-single,pins = <
165 OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */
166 OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */
167 OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */
168 OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */
169 >;
170 };
171 uart2_pins: pinmux_uart2_pins {
172 pinctrl-single,pins = <
173 OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */
174 OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/
175 OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
176 OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
177 OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */
178 >;
179 };
180 mcspi1_pins: pinmux_mcspi1_pins {
181 pinctrl-single,pins = <
182 OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
183 OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
184 OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
185 OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
186 >;
187 };
188 hsusb_otg_pins: pinmux_hsusb_otg_pins {
189 pinctrl-single,pins = <
190 OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */
191 OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */
192 OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */
193 OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */
194
195 OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */
196 OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */
197 OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */
198 OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */
199 OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */
200 OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */
201 OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */
202 OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */
203 >;
204 };
205 };
206
207 &uart2 {
208 interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
209 pinctrl-names = "default";
210 pinctrl-0 = <&uart2_pins>;
211 };
212
213 &mcspi1 {
214 pinctrl-names = "default";
215 pinctrl-0 = <&mcspi1_pins>;
216 };
217
218 &omap3_pmx_core2 {
219 mmc3_core2_pins: pinmux_mmc3_core2_pins {
220 pinctrl-single,pins = <
221 OMAP3630_CORE2_IOPAD(0x25d8, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_clk.sdmmc3_clk */
222 OMAP3630_CORE2_IOPAD(0x25da, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_ctl.sdmmc3_cmd */
223 >;
224 };
225 };
226
227 #include "twl4030.dtsi"
228 #include "twl4030_omap3.dtsi"
229
230 &twl {
231 twl_power: power {
232 compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
233 ti,use_poweroff;
234 };
235 };
236
237 &twl_gpio {
238 ti,use-leds;
239 };
This page took 0.036297 seconds and 5 git commands to generate.