Merge tag 'ceph-for-4.15-rc4' of git://github.com/ceph/ceph-client
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / logicpd-som-lv.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         memory@80000000 {
17                 device_type = "memory";
18                 reg = <0x80000000 0>;
19         };
20
21         wl12xx_vmmc: wl12xx_vmmc {
22                 compatible = "regulator-fixed";
23                 regulator-name = "vwl1271";
24                 regulator-min-microvolt = <1800000>;
25                 regulator-max-microvolt = <1800000>;
26                 gpio = <&gpio1 3 0>;   /* gpio_3 */
27                 startup-delay-us = <70000>;
28                 enable-active-high;
29                 vin-supply = <&vmmc2>;
30         };
31
32         /* HS USB Host PHY on PORT 1 */
33         hsusb2_phy: hsusb2_phy {
34                 compatible = "usb-nop-xceiv";
35                 reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; /* gpio_4 */
36                 #phy-cells = <0>;
37         };
38 };
39
40 &gpmc {
41         ranges = <0 0 0x30000000 0x1000000>;    /* CS0: 16MB for NAND */
42
43         nand@0,0 {
44                 compatible = "ti,omap2-nand";
45                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
46                 interrupt-parent = <&gpmc>;
47                 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
48                              <1 IRQ_TYPE_NONE>; /* termcount */
49                 linux,mtd-name = "micron,mt29f4g16abbda3w";
50                 nand-bus-width = <16>;
51                 ti,nand-ecc-opt = "bch8";
52                 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
53                 gpmc,sync-clk-ps = <0>;
54                 gpmc,cs-on-ns = <0>;
55                 gpmc,cs-rd-off-ns = <44>;
56                 gpmc,cs-wr-off-ns = <44>;
57                 gpmc,adv-on-ns = <6>;
58                 gpmc,adv-rd-off-ns = <34>;
59                 gpmc,adv-wr-off-ns = <44>;
60                 gpmc,we-off-ns = <40>;
61                 gpmc,oe-off-ns = <54>;
62                 gpmc,access-ns = <64>;
63                 gpmc,rd-cycle-ns = <82>;
64                 gpmc,wr-cycle-ns = <82>;
65                 gpmc,wr-access-ns = <40>;
66                 gpmc,wr-data-mux-bus-ns = <0>;
67                 gpmc,device-width = <2>;
68                 #address-cells = <1>;
69                 #size-cells = <1>;
70
71                 /* u-boot uses mtdparts=omap2-nand.0:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs) */
72
73                 x-loader@0 {
74                         label = "x-loader";
75                         reg = <0 0x80000>;
76                 };
77
78                 bootloaders@80000 {
79                         label = "u-boot";
80                         reg = <0x80000 0x1e0000>;
81                 };
82
83                 bootloaders_env@260000 {
84                         label = "u-boot-env";
85                         reg = <0x260000 0x20000>;
86                 };
87
88                 kernel@280000 {
89                         label = "kernel";
90                         reg = <0x280000 0x400000>;
91                 };
92
93                 filesystem@680000 {
94                         label = "fs";
95                         reg = <0x680000 0>;     /* 0 = MTDPART_SIZ_FULL */
96                 };
97         };
98 };
99
100 &i2c1 {
101         clock-frequency = <2600000>;
102
103         twl: twl@48 {
104                 reg = <0x48>;
105                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
106                 interrupt-parent = <&intc>;
107                 twl_audio: audio {
108                         compatible = "ti,twl4030-audio";
109                         codec {
110                         };
111                 };
112         };
113 };
114
115 &i2c2 {
116         clock-frequency = <400000>;
117 };
118
119 &i2c3 {
120         clock-frequency = <400000>;
121 };
122
123 &mmc3 {
124         interrupts-extended = <&intc 94 &omap3_pmx_core2 0x46>;
125         pinctrl-0 = <&mmc3_pins &wl127x_gpio>;
126         pinctrl-names = "default";
127         vmmc-supply = <&wl12xx_vmmc>;
128         non-removable;
129         bus-width = <4>;
130         cap-power-off-card;
131         #address-cells = <1>;
132         #size-cells = <0>;
133         wlcore: wlcore@2 {
134                 compatible = "ti,wl1273";
135                 reg = <2>;
136                 interrupt-parent = <&gpio1>;
137                 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; /* gpio 2 */
138                 ref-clock-frequency = <26000000>;
139         };
140 };
141
142 &usbhshost {
143         port2-mode = "ehci-phy";
144 };
145
146 &usbhsehci {
147         phys = <0 &hsusb2_phy>;
148 };
149
150
151 &omap3_pmx_core {
152         pinctrl-names = "default";
153         pinctrl-0 = <&hsusb2_pins>;
154
155         mmc3_pins: pinmux_mm3_pins {
156                 pinctrl-single,pins = <
157                         OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat4.sdmmc3_dat0 */
158                         OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat5.sdmmc3_dat1 */
159                         OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat2 */
160                         OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat3 */
161                         OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.sdmmc3_cmd */
162                         OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs2.sdmmc_clk */
163                 >;
164         };
165         mcbsp2_pins: pinmux_mcbsp2_pins {
166                 pinctrl-single,pins = <
167                         OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)        /* mcbsp2_fsx */
168                         OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)        /* mcbsp2_clkx */
169                         OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)        /* mcbsp2_dr */
170                         OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)       /* mcbsp2_dx */
171                 >;
172         };
173         uart2_pins: pinmux_uart2_pins {
174                 pinctrl-single,pins = <
175                         OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0)        /* uart2_cts.uart2_cts */
176                         OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0)       /* uart2_rts .uart2_rts*/
177                         OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)       /* uart2_tx.uart2_tx */
178                         OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)        /* uart2_rx.uart2_rx */
179                         OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4)       /* GPIO_162,BT_EN */
180                 >;
181         };
182         mcspi1_pins: pinmux_mcspi1_pins {
183                 pinctrl-single,pins = <
184                         OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0)        /* mcspi1_clk.mcspi1_clk */
185                         OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0)       /* mcspi1_simo.mcspi1_simo */
186                         OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
187                         OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0)       /* mcspi1_cs0.mcspi1_cs0 */
188                 >;
189         };
190
191         hsusb2_pins: pinmux_hsusb2_pins {
192                 pinctrl-single,pins = <
193                         OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi1_cs3.hsusb2_data2 */
194                         OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_clk.hsusb2_data7 */
195                         OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_simo.hsusb2_data4 */
196                         OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_somi.hsusb2_data5 */
197                         OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_cs0.hsusb2_data6 */
198                         OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_cs1.hsusb2_data3 */
199                 >;
200         };
201
202         hsusb_otg_pins: pinmux_hsusb_otg_pins {
203                 pinctrl-single,pins = <
204                         OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0)        /* hsusb0_clk.hsusb0_clk */
205                         OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0)       /* hsusb0_stp.hsusb0_stp */
206                         OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0)        /* hsusb0_dir.hsusb0_dir */
207                         OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0)        /* hsusb0_nxt.hsusb0_nxt */
208                         OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0)        /* hsusb0_data0.hsusb0_data0 */
209                         OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0)        /* hsusb0_data1.hsusb0_data1 */
210                         OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0)        /* hsusb0_data2.hsusb0_data2 */
211                         OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0)        /* hsusb0_data3.hsusb0_data3 */
212                         OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0)        /* hsusb0_data4.hsusb0_data4 */
213                         OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0)        /* hsusb0_data5.hsusb0_data5 */
214                         OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0)        /* hsusb0_data6.hsusb0_data6 */
215                         OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0)        /* hsusb0_data7.hsusb0_data7 */
216                 >;
217         };
218
219
220 };
221
222 &omap3_pmx_wkup {
223         pinctrl-names = "default";
224         pinctrl-0 = <&hsusb2_reset_pin>;
225         hsusb2_reset_pin: pinmux_hsusb1_reset_pin {
226                 pinctrl-single,pins = <
227                         OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4)        /* sys_boot2.gpio_4 */
228                 >;
229         };
230         wl127x_gpio: pinmux_wl127x_gpio_pin {
231                 pinctrl-single,pins = <
232                         OMAP3_WKUP_IOPAD(0x2a0c, PIN_INPUT | MUX_MODE4)         /* sys_boot0.gpio_2 */
233                         OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4)        /* sys_boot1.gpio_3 */
234                 >;
235         };
236 };
237
238 &omap3_pmx_core2 {
239         pinctrl-names = "default";
240         pinctrl-0 = <&hsusb2_2_pins>;
241         hsusb2_2_pins: pinmux_hsusb2_2_pins {
242                 pinctrl-single,pins = <
243                         OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3)            /* etk_d10.hsusb2_clk */
244                         OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3)            /* etk_d11.hsusb2_stp */
245                         OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d12.hsusb2_dir */
246                         OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d13.hsusb2_nxt */
247                         OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d14.hsusb2_data0 */
248                         OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3)    /* etk_d15.hsusb2_data1 */
249                 >;
250         };
251 };
252
253 &uart2 {
254         interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
255         pinctrl-names = "default";
256         pinctrl-0 = <&uart2_pins>;
257 };
258
259 &mcspi1 {
260         pinctrl-names = "default";
261         pinctrl-0 = <&mcspi1_pins>;
262 };
263
264 #include "twl4030.dtsi"
265 #include "twl4030_omap3.dtsi"
266
267 &twl {
268         twl_power: power {
269                 compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
270                 ti,use_poweroff;
271         };
272 };
273
274 &twl_gpio {
275         ti,use-leds;
276 };