blob: 40eadbfb91eaab4f791e3560b641b3f4104dffed [file] [log] [blame]
Adam Fordab8dd3a2016-02-20 01:27:52 -06001/*
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
Adam Ford80513a22016-10-21 08:34:59 -050016 memory@80000000 {
17 device_type = "memory";
18 reg = <0x80000000 0>;
19 };
20
Adam Fordab8dd3a2016-02-20 01:27:52 -060021 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;
Adam Ford189822c2018-04-30 18:24:34 -050029 vin-supply = <&vaux3>;
Adam Fordab8dd3a2016-02-20 01:27:52 -060030 };
Adam Ford89077c72016-02-21 08:01:04 -060031
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 */
Rob Herringf568f6f2017-11-09 16:26:13 -060036 #phy-cells = <0>;
Adam Ford89077c72016-02-21 08:01:04 -060037 };
Adam Fordab8dd3a2016-02-20 01:27:52 -060038};
39
40&gpmc {
Adam Ford3c18bbf2017-10-31 13:42:13 -050041 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
Adam Fordab8dd3a2016-02-20 01:27:52 -060042
43 nand@0,0 {
Adam Ford4875b8f2016-08-13 10:21:00 -050044 compatible = "ti,omap2-nand";
Adam Fordab8dd3a2016-02-20 01:27:52 -060045 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
Adam Ford4875b8f2016-08-13 10:21:00 -050046 interrupt-parent = <&gpmc>;
47 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
48 <1 IRQ_TYPE_NONE>; /* termcount */
49 linux,mtd-name = "micron,mt29f4g16abbda3w";
Adam Fordab8dd3a2016-02-20 01:27:52 -060050 nand-bus-width = <16>;
51 ti,nand-ecc-opt = "bch8";
Adam Ford4875b8f2016-08-13 10:21:00 -050052 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
Adam Fordab8dd3a2016-02-20 01:27:52 -060053 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>;
Adam Fordab8dd3a2016-02-20 01:27:52 -060068 #address-cells = <1>;
69 #size-cells = <1>;
Adam Fordab8dd3a2016-02-20 01:27:52 -060070 };
71};
72
73&i2c1 {
Adam Ford84c7efd2018-01-27 15:27:05 -060074 pinctrl-names = "default";
75 pinctrl-0 = <&i2c1_pins>;
Adam Fordab8dd3a2016-02-20 01:27:52 -060076 clock-frequency = <2600000>;
77
78 twl: twl@48 {
79 reg = <0x48>;
80 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
81 interrupt-parent = <&intc>;
82 twl_audio: audio {
83 compatible = "ti,twl4030-audio";
84 codec {
85 };
86 };
87 };
88};
89
90&i2c2 {
Adam Ford5fe3c0f2018-02-15 08:25:56 -060091 pinctrl-names = "default";
92 pinctrl-0 = <&i2c2_pins>;
Adam Fordab8dd3a2016-02-20 01:27:52 -060093 clock-frequency = <400000>;
94};
95
96&i2c3 {
Adam Ford5fe3c0f2018-02-15 08:25:56 -060097 pinctrl-names = "default";
98 pinctrl-0 = <&i2c3_pins>;
Adam Fordab8dd3a2016-02-20 01:27:52 -060099 clock-frequency = <400000>;
100};
101
102&mmc3 {
103 interrupts-extended = <&intc 94 &omap3_pmx_core2 0x46>;
Adam Fordcd7594a2017-10-31 13:45:59 -0500104 pinctrl-0 = <&mmc3_pins &wl127x_gpio>;
Adam Fordab8dd3a2016-02-20 01:27:52 -0600105 pinctrl-names = "default";
106 vmmc-supply = <&wl12xx_vmmc>;
107 non-removable;
108 bus-width = <4>;
109 cap-power-off-card;
110 #address-cells = <1>;
111 #size-cells = <0>;
112 wlcore: wlcore@2 {
113 compatible = "ti,wl1273";
114 reg = <2>;
Adam Fordcd7594a2017-10-31 13:45:59 -0500115 interrupt-parent = <&gpio1>;
116 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; /* gpio 2 */
Adam Fordab8dd3a2016-02-20 01:27:52 -0600117 ref-clock-frequency = <26000000>;
118 };
119};
120
Adam Ford89077c72016-02-21 08:01:04 -0600121&usbhshost {
122 port2-mode = "ehci-phy";
123};
124
125&usbhsehci {
126 phys = <0 &hsusb2_phy>;
127};
128
129
Adam Fordab8dd3a2016-02-20 01:27:52 -0600130&omap3_pmx_core {
Adam Ford89077c72016-02-21 08:01:04 -0600131 pinctrl-names = "default";
132 pinctrl-0 = <&hsusb2_pins>;
133
Adam Fordab8dd3a2016-02-20 01:27:52 -0600134 mmc3_pins: pinmux_mm3_pins {
135 pinctrl-single,pins = <
136 OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat4.sdmmc3_dat0 */
137 OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat5.sdmmc3_dat1 */
138 OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat2 */
139 OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat3 */
Adam Fordab8dd3a2016-02-20 01:27:52 -0600140 OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.sdmmc3_cmd */
141 OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs2.sdmmc_clk */
142 >;
143 };
144 mcbsp2_pins: pinmux_mcbsp2_pins {
145 pinctrl-single,pins = <
146 OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */
147 OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */
148 OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */
149 OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */
150 >;
151 };
152 uart2_pins: pinmux_uart2_pins {
153 pinctrl-single,pins = <
154 OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */
155 OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/
156 OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
157 OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
158 OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */
159 >;
160 };
161 mcspi1_pins: pinmux_mcspi1_pins {
162 pinctrl-single,pins = <
163 OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
164 OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
165 OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
166 OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
167 >;
168 };
Adam Ford89077c72016-02-21 08:01:04 -0600169
170 hsusb2_pins: pinmux_hsusb2_pins {
171 pinctrl-single,pins = <
172 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
173 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
174 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
175 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
176 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
177 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
178 >;
179 };
180
Adam Fordab8dd3a2016-02-20 01:27:52 -0600181 hsusb_otg_pins: pinmux_hsusb_otg_pins {
182 pinctrl-single,pins = <
183 OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */
184 OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */
185 OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */
186 OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */
187 OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */
188 OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */
189 OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */
190 OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */
191 OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */
192 OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */
193 OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */
194 OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */
195 >;
196 };
Adam Ford89077c72016-02-21 08:01:04 -0600197
Adam Ford84c7efd2018-01-27 15:27:05 -0600198 i2c1_pins: pinmux_i2c1_pins {
199 pinctrl-single,pins = <
200 OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
201 OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
202 >;
203 };
Adam Ford89077c72016-02-21 08:01:04 -0600204};
205
206&omap3_pmx_wkup {
207 pinctrl-names = "default";
208 pinctrl-0 = <&hsusb2_reset_pin>;
209 hsusb2_reset_pin: pinmux_hsusb1_reset_pin {
210 pinctrl-single,pins = <
211 OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4) /* sys_boot2.gpio_4 */
212 >;
213 };
Adam Fordcd7594a2017-10-31 13:45:59 -0500214 wl127x_gpio: pinmux_wl127x_gpio_pin {
215 pinctrl-single,pins = <
Adam Ford189822c2018-04-30 18:24:34 -0500216 OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT | MUX_MODE4) /* sys_boot0.gpio_2 */
Adam Fordcd7594a2017-10-31 13:45:59 -0500217 OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4) /* sys_boot1.gpio_3 */
218 >;
219 };
Adam Ford5fe3c0f2018-02-15 08:25:56 -0600220 i2c2_pins: pinmux_i2c2_pins {
221 pinctrl-single,pins = <
222 OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0) /* i2c2_scl */
223 OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0) /* i2c2_sda */
224 >;
225 };
226 i2c3_pins: pinmux_i2c3_pins {
227 pinctrl-single,pins = <
228 OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl */
229 OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda */
230 >;
231 };
Adam Ford89077c72016-02-21 08:01:04 -0600232};
233
234&omap3_pmx_core2 {
235 pinctrl-names = "default";
236 pinctrl-0 = <&hsusb2_2_pins>;
237 hsusb2_2_pins: pinmux_hsusb2_2_pins {
238 pinctrl-single,pins = <
239 OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
240 OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
241 OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
242 OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
243 OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
244 OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
245 >;
246 };
Adam Fordab8dd3a2016-02-20 01:27:52 -0600247};
248
249&uart2 {
250 interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
251 pinctrl-names = "default";
252 pinctrl-0 = <&uart2_pins>;
253};
254
255&mcspi1 {
256 pinctrl-names = "default";
257 pinctrl-0 = <&mcspi1_pins>;
258};
259
260#include "twl4030.dtsi"
261#include "twl4030_omap3.dtsi"
262
Adam Ford189822c2018-04-30 18:24:34 -0500263&vaux3 {
264 regulator-min-microvolt = <2800000>;
265 regulator-max-microvolt = <2800000>;
266};
267
Adam Fordab8dd3a2016-02-20 01:27:52 -0600268&twl {
269 twl_power: power {
270 compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
271 ti,use_poweroff;
272 };
273};
274
275&twl_gpio {
276 ti,use-leds;
277};