blob: 9ec737069369672f6b52b26df840636cce768761 [file] [log] [blame]
Marek Beliskoadfe1472013-08-15 22:43:05 +02001/*
2 * Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
3 *
4 * Based on omap3-beagle-xm.dts
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10/dts-v1/;
11
12#include "omap36xx.dtsi"
13
14/ {
15 model = "OMAP3 GTA04";
Marek Beliskoae41a302014-03-01 14:58:48 +010016 compatible = "ti,omap3-gta04", "ti,omap36xx", "ti,omap3";
Marek Beliskoadfe1472013-08-15 22:43:05 +020017
18 cpus {
19 cpu@0 {
20 cpu0-supply = <&vcc>;
21 };
22 };
23
Javier Martinez Canillas81777ff2016-08-31 12:35:27 +020024 memory@80000000 {
Marek Beliskoadfe1472013-08-15 22:43:05 +020025 device_type = "memory";
26 reg = <0x80000000 0x20000000>; /* 512 MB */
27 };
28
Marek Belisko91b84572014-07-22 21:30:19 +020029 aliases {
30 display0 = &lcd;
31 };
32
Marek Beliskoadfe1472013-08-15 22:43:05 +020033 gpio-keys {
34 compatible = "gpio-keys";
35
36 aux-button {
37 label = "aux";
38 linux,code = <169>;
NeilBrownd8bd6732014-01-25 22:28:55 +010039 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
Sudeep Holla0c4d63b2015-10-21 11:10:12 +010040 wakeup-source;
Marek Beliskoadfe1472013-08-15 22:43:05 +020041 };
42 };
NeilBrown6764f642014-03-01 14:58:52 +010043
44 sound {
45 compatible = "ti,omap-twl4030";
46 ti,model = "gta04";
47
48 ti,mcbsp = <&mcbsp2>;
NeilBrown6764f642014-03-01 14:58:52 +010049 };
Marek Beliskoc2e138b2014-05-08 22:16:51 +020050
Marek Beliskof6ae9412015-05-07 21:35:05 +020051 /* GSM audio */
52 sound_telephony {
53 compatible = "simple-audio-card";
54 simple-audio-card,name = "GTA04 voice";
55 simple-audio-card,bitclock-master = <&telephony_link_master>;
56 simple-audio-card,frame-master = <&telephony_link_master>;
57 simple-audio-card,format = "i2s";
Andreas Kemnade910958b2017-04-28 12:27:35 +020058 simple-audio-card,bitclock-inversion;
59 simple-audio-card,frame-inversion;
Marek Beliskof6ae9412015-05-07 21:35:05 +020060 simple-audio-card,cpu {
61 sound-dai = <&mcbsp4>;
62 };
63
64 telephony_link_master: simple-audio-card,codec {
65 sound-dai = <&gtm601_codec>;
66 };
67 };
68
69 gtm601_codec: gsm_codec {
70 compatible = "option,gtm601";
71 #sound-dai-cells = <0>;
72 };
73
Marek Beliskoc2e138b2014-05-08 22:16:51 +020074 spi_lcd {
75 compatible = "spi-gpio";
76 #address-cells = <0x1>;
77 #size-cells = <0x0>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&spi_gpio_pins>;
80
Javier Martinez Canillas3a637e02015-10-06 11:03:39 +020081 gpio-sck = <&gpio1 12 GPIO_ACTIVE_HIGH>;
82 gpio-miso = <&gpio1 18 GPIO_ACTIVE_HIGH>;
83 gpio-mosi = <&gpio1 20 GPIO_ACTIVE_HIGH>;
84 cs-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
Marek Beliskoc2e138b2014-05-08 22:16:51 +020085 num-chipselects = <1>;
86
87 /* lcd panel */
88 lcd: td028ttec1@0 {
89 compatible = "toppoly,td028ttec1";
90 reg = <0>;
91 spi-max-frequency = <100000>;
92 spi-cpol;
93 spi-cpha;
94
95 label = "lcd";
96 port {
97 lcd_in: endpoint {
98 remote-endpoint = <&dpi_out>;
99 };
100 };
101 };
102 };
Marek Belisko1520a132014-07-22 21:30:18 +0200103
Marek Belisko28a1b402016-05-17 21:48:47 +0200104 backlight {
105 compatible = "pwm-backlight";
H. Nikolaus Schaller3868b422016-09-05 11:16:38 +0200106 pwms = <&pwm11 0 12000000 0>;
Marek Belisko28a1b402016-05-17 21:48:47 +0200107 pwm-names = "backlight";
108 brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>;
109 default-brightness-level = <9>; /* => 90 */
110 pinctrl-names = "default";
111 pinctrl-0 = <&backlight_pins>;
112 };
113
Javier Martinez Canillas314fdd52016-06-27 15:20:51 -0400114 pwm11: dmtimer-pwm {
Marek Belisko28a1b402016-05-17 21:48:47 +0200115 compatible = "ti,omap-dmtimer-pwm";
116 ti,timers = <&timer11>;
117 #pwm-cells = <3>;
118 };
119
Marek Belisko1520a132014-07-22 21:30:18 +0200120 hsusb2_phy: hsusb2_phy {
121 compatible = "usb-nop-xceiv";
122 reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
123 };
Marek Belisko7300bff2014-12-03 22:33:22 +0100124
Javier Martinez Canillas314fdd52016-06-27 15:20:51 -0400125 tv0: connector {
Marek Belisko7300bff2014-12-03 22:33:22 +0100126 compatible = "svideo-connector";
127 label = "tv";
128
129 port {
130 tv_connector_in: endpoint {
131 remote-endpoint = <&opa_out>;
132 };
133 };
134 };
135
136 tv_amp: opa362 {
137 compatible = "ti,opa362";
Javier Martinez Canillas3a637e02015-10-06 11:03:39 +0200138 enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
Marek Belisko7300bff2014-12-03 22:33:22 +0100139
140 ports {
141 #address-cells = <1>;
142 #size-cells = <0>;
143
144 port@0 {
145 reg = <0>;
Javier Martinez Canillas314fdd52016-06-27 15:20:51 -0400146 opa_in: endpoint {
Marek Belisko7300bff2014-12-03 22:33:22 +0100147 remote-endpoint = <&venc_out>;
148 };
149 };
150
151 port@1 {
152 reg = <1>;
Javier Martinez Canillas314fdd52016-06-27 15:20:51 -0400153 opa_out: endpoint {
Marek Belisko7300bff2014-12-03 22:33:22 +0100154 remote-endpoint = <&tv_connector_in>;
155 };
156 };
157 };
158 };
H. Nikolaus Schallerc2df98c02016-05-17 21:48:51 +0200159
160 wifi_pwrseq: wifi_pwrseq {
161 compatible = "mmc-pwrseq-simple";
162 reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>; /* W2CBW003 reset through tca6507 */
163 };
Marek Beliskoadfe1472013-08-15 22:43:05 +0200164};
165
166&omap3_pmx_core {
Marek Belisko1520a132014-07-22 21:30:18 +0200167 pinctrl-names = "default";
168 pinctrl-0 = <
169 &hsusb2_pins
170 >;
171
172 hsusb2_pins: pinmux_hsusb2_pins {
173 pinctrl-single,pins = <
174 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
175 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
176 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
177 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
178 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
179 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
180 >;
181 };
182
Marek Beliskoadfe1472013-08-15 22:43:05 +0200183 uart1_pins: pinmux_uart1_pins {
184 pinctrl-single,pins = <
Marek Belisko021fe932014-10-17 22:32:03 +0200185 OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
186 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */
Marek Beliskoadfe1472013-08-15 22:43:05 +0200187 >;
188 };
189
190 uart2_pins: pinmux_uart2_pins {
191 pinctrl-single,pins = <
Marek Belisko021fe932014-10-17 22:32:03 +0200192 OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
193 OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
Marek Beliskoadfe1472013-08-15 22:43:05 +0200194 >;
195 };
196
197 uart3_pins: pinmux_uart3_pins {
198 pinctrl-single,pins = <
Marek Belisko021fe932014-10-17 22:32:03 +0200199 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */
200 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */
Marek Beliskoadfe1472013-08-15 22:43:05 +0200201 >;
202 };
203
204 mmc1_pins: pinmux_mmc1_pins {
205 pinctrl-single,pins = <
Marek Belisko021fe932014-10-17 22:32:03 +0200206 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
207 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
208 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
209 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
210 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
211 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
Marek Beliskoadfe1472013-08-15 22:43:05 +0200212 >;
213 };
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200214
Marek Belisko28a1b402016-05-17 21:48:47 +0200215 backlight_pins: backlight_pins_pimnux {
216 pinctrl-single,pins = <
217 OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3) /* gpt11/gpio57 */
218 >;
219 };
220
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200221 dss_dpi_pins: pinmux_dss_dpi_pins {
222 pinctrl-single,pins = <
Marek Belisko021fe932014-10-17 22:32:03 +0200223 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
224 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
225 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
226 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
227 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
228 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
229 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
230 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
231 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
232 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
233 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
234 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
235 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
236 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
237 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
238 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
239 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
240 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
241 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
242 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
243 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
244 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
245 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
246 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
247 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
248 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
249 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
250 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
251 >;
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200252 };
Marek Belisko3221dfb2015-04-28 22:54:27 +0200253
254 hdq_pins: hdq_pins {
255 pinctrl-single,pins = <
256 OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
257 >;
258 };
H. Nikolaus Schalleree327112016-05-17 21:48:48 +0200259
260 bma180_pins: pinmux_bma180_pins {
261 pinctrl-single,pins = <
262 OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
263 >;
264 };
H. Nikolaus Schallerf6cbf612016-05-17 21:48:49 +0200265
266 itg3200_pins: pinmux_itg3200_pins {
267 pinctrl-single,pins = <
268 OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
269 >;
270 };
H. Nikolaus Schallere14927e2016-05-17 21:48:50 +0200271
272 hmc5843_pins: pinmux_hmc5843_pins {
273 pinctrl-single,pins = <
274 OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
275 >;
276 };
Marek Belisko6c402f82014-07-22 21:30:17 +0200277};
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200278
Marek Belisko6c402f82014-07-22 21:30:17 +0200279&omap3_pmx_core2 {
Marek Belisko1520a132014-07-22 21:30:18 +0200280 pinctrl-names = "default";
281 pinctrl-0 = <
282 &hsusb2_2_pins
283 >;
284
285 hsusb2_2_pins: pinmux_hsusb2_2_pins {
286 pinctrl-single,pins = <
287 OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
288 OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
289 OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
290 OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
291 OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
292 OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
293 >;
294 };
295
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200296 spi_gpio_pins: spi_gpio_pinmux {
Marek Belisko6c402f82014-07-22 21:30:17 +0200297 pinctrl-single,pins = <
298 OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */
299 OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */
300 OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */
301 OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200302 >;
303 };
Marek Beliskoadfe1472013-08-15 22:43:05 +0200304};
305
306&i2c1 {
307 clock-frequency = <2600000>;
308
309 twl: twl@48 {
310 reg = <0x48>;
311 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
312 interrupt-parent = <&intc>;
NeilBrown6764f642014-03-01 14:58:52 +0100313
H. Nikolaus Schaller2a88a0b2015-01-22 21:38:08 +0100314 twl_audio: audio {
315 compatible = "ti,twl4030-audio";
H. Nikolaus Schaller85f534e2015-01-22 21:38:10 +0100316 ti,enable-vibra = <1>;
H. Nikolaus Schaller2a88a0b2015-01-22 21:38:08 +0100317 codec {
Marek Belisko2a2130c2015-01-22 21:38:13 +0100318 ti,ramp_delay_value = <3>;
H. Nikolaus Schaller2a88a0b2015-01-22 21:38:08 +0100319 };
NeilBrown6764f642014-03-01 14:58:52 +0100320 };
H. Nikolaus Schaller23c0ff52015-01-22 21:38:12 +0100321
322 twl_power: power {
323 compatible = "ti,twl4030-power";
324 ti,use_poweroff;
325 };
NeilBrown6764f642014-03-01 14:58:52 +0100326 };
Marek Beliskoadfe1472013-08-15 22:43:05 +0200327};
328
329#include "twl4030.dtsi"
330#include "twl4030_omap3.dtsi"
331
332&i2c2 {
333 clock-frequency = <400000>;
334
335 /* pressure sensor */
336 bmp085@77 {
337 compatible = "bosch,bmp085";
338 reg = <0x77>;
Marek Beliskod26794c2013-12-21 16:12:23 +0100339 interrupt-parent = <&gpio4>;
NeilBrownce9edf52015-01-22 21:38:14 +0100340 interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */
Marek Beliskoadfe1472013-08-15 22:43:05 +0200341 };
342
NeilBrown24d0bb82014-03-01 14:58:54 +0100343 /* accelerometer */
344 bma180@41 {
345 compatible = "bosch,bma180";
346 reg = <0x41>;
H. Nikolaus Schalleree327112016-05-17 21:48:48 +0200347 pinctrl-names = "default";
348 pintcrl-0 = <&bma180_pins>;
Marek Belisko75fb2c12015-01-22 21:38:11 +0100349 interrupt-parent = <&gpio4>;
NeilBrownce9edf52015-01-22 21:38:14 +0100350 interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
NeilBrown24d0bb82014-03-01 14:58:54 +0100351 };
352
NeilBrownc4aa13f2015-01-22 21:38:16 +0100353 /* gyroscope */
354 itg3200@68 {
355 compatible = "invensense,itg3200";
356 reg = <0x68>;
H. Nikolaus Schallerf6cbf612016-05-17 21:48:49 +0200357 pinctrl-names = "default";
358 pinctrl-0 = <&itg3200_pins>;
NeilBrownc4aa13f2015-01-22 21:38:16 +0100359 interrupt-parent = <&gpio2>;
H. Nikolaus Schallerf6cbf612016-05-17 21:48:49 +0200360 interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
NeilBrownc4aa13f2015-01-22 21:38:16 +0100361 };
362
H. Nikolaus Schallerc2df98c02016-05-17 21:48:51 +0200363 /* leds + gpios */
364 tca6507: tca6507@45 {
Marek Beliskoadfe1472013-08-15 22:43:05 +0200365 compatible = "ti,tca6507";
366 #address-cells = <1>;
367 #size-cells = <0>;
368 reg = <0x45>;
369
Marek Beliskoe51c6be2014-07-22 21:30:16 +0200370 gpio-controller;
371 #gpio-cells = <2>;
372
Marek Beliskoadfe1472013-08-15 22:43:05 +0200373 gta04_led0: red_aux@0 {
374 label = "gta04:red:aux";
375 reg = <0x0>;
376 };
377
378 gta04_led1: green_aux@1 {
379 label = "gta04:green:aux";
380 reg = <0x1>;
381 };
382
383 gta04_led3: red_power@3 {
384 label = "gta04:red:power";
385 reg = <0x3>;
386 linux,default-trigger = "default-on";
387 };
388
389 gta04_led4: green_power@4 {
390 label = "gta04:green:power";
391 reg = <0x4>;
392 };
Marek Beliskoe51c6be2014-07-22 21:30:16 +0200393
394 wifi_reset: wifi_reset@6 {
395 reg = <0x6>;
396 compatible = "gpio";
397 };
Marek Beliskoadfe1472013-08-15 22:43:05 +0200398 };
NeilBrown32f2c392014-03-01 14:58:49 +0100399
400 /* compass aka magnetometer */
401 hmc5843@1e {
Marek Belisko9edc57a2014-07-22 21:59:08 +0200402 compatible = "honeywell,hmc5883l";
NeilBrown32f2c392014-03-01 14:58:49 +0100403 reg = <0x1e>;
H. Nikolaus Schallere14927e2016-05-17 21:48:50 +0200404 pinctrl-names = "default";
405 pinctrl-0 = <&hmc5843_pins>;
406 interrupt-parent = <&gpio4>;
407 interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* gpio112 */
NeilBrown32f2c392014-03-01 14:58:49 +0100408 };
Marek Belisko9cbc03b2014-03-01 14:58:50 +0100409
410 /* touchscreen */
411 tsc2007@48 {
412 compatible = "ti,tsc2007";
413 reg = <0x48>;
414 interrupt-parent = <&gpio6>;
NeilBrownce9edf52015-01-22 21:38:14 +0100415 interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
Marek Belisko9cbc03b2014-03-01 14:58:50 +0100416 gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;
417 ti,x-plate-ohms = <600>;
418 };
H. Nikolaus Schaller4393dd42016-06-04 14:05:55 +0200419
420 /* RFID EEPROM */
421 m24lr64@50 {
422 compatible = "at,24c64";
423 reg = <0x50>;
424 };
Marek Beliskoadfe1472013-08-15 22:43:05 +0200425};
426
427&i2c3 {
428 clock-frequency = <100000>;
429};
430
431&usb_otg_hs {
432 interface-type = <0>;
433 usb-phy = <&usb2_phy>;
Roger Quadrosd2afcf02013-10-07 16:28:13 +0300434 phys = <&usb2_phy>;
435 phy-names = "usb2-phy";
Marek Beliskoadfe1472013-08-15 22:43:05 +0200436 mode = <3>;
437 power = <50>;
438};
439
Marek Belisko1520a132014-07-22 21:30:18 +0200440&usbhshost {
441 port2-mode = "ehci-phy";
442};
443
444&usbhsehci {
445 phys = <0 &hsusb2_phy>;
446};
447
Marek Beliskoadfe1472013-08-15 22:43:05 +0200448&mmc1 {
449 pinctrl-names = "default";
450 pinctrl-0 = <&mmc1_pins>;
451 vmmc-supply = <&vmmc1>;
Marek Beliskoadfe1472013-08-15 22:43:05 +0200452 bus-width = <4>;
Marek Belisko2d6ac292014-01-25 22:28:57 +0100453 ti,non-removable;
Marek Beliskoadfe1472013-08-15 22:43:05 +0200454};
455
456&mmc2 {
NeilBrown5a13ba62014-03-01 14:58:53 +0100457 vmmc-supply = <&vaux4>;
458 bus-width = <4>;
459 ti,non-removable;
NeilBrowne45eebf2015-01-22 21:38:15 +0100460 cap-power-off-card;
H. Nikolaus Schallerc2df98c02016-05-17 21:48:51 +0200461 mmc-pwrseq = <&wifi_pwrseq>;
Marek Beliskoadfe1472013-08-15 22:43:05 +0200462};
463
464&mmc3 {
465 status = "disabled";
466};
467
NeilBrown1e1e8cb2015-01-22 21:38:19 +0100468&twl_keypad {
469 status = "disabled";
470};
471
Marek Beliskoadfe1472013-08-15 22:43:05 +0200472&uart1 {
473 pinctrl-names = "default";
474 pinctrl-0 = <&uart1_pins>;
475};
476
477&uart2 {
478 pinctrl-names = "default";
479 pinctrl-0 = <&uart2_pins>;
480};
481
482&uart3 {
483 pinctrl-names = "default";
484 pinctrl-0 = <&uart3_pins>;
485};
486
NeilBrown8bdc9e92014-03-01 14:58:51 +0100487&charger {
H. Nikolaus Schaller55f0f0e2015-01-22 21:38:07 +0100488 ti,bb-uvolt = <3200000>;
489 ti,bb-uamp = <150>;
NeilBrown8bdc9e92014-03-01 14:58:51 +0100490};
NeilBrown5a13ba62014-03-01 14:58:53 +0100491
Marek Belisko4318bad2014-07-22 21:30:20 +0200492/* spare */
493&vaux1 {
494 regulator-min-microvolt = <2500000>;
495 regulator-max-microvolt = <3000000>;
496};
497
498/* sensors */
499&vaux2 {
500 regulator-min-microvolt = <2800000>;
501 regulator-max-microvolt = <2800000>;
502 regulator-always-on;
503};
504
505/* camera */
506&vaux3 {
507 regulator-min-microvolt = <2500000>;
508 regulator-max-microvolt = <2500000>;
509};
510
511/* WLAN/BT */
NeilBrown5a13ba62014-03-01 14:58:53 +0100512&vaux4 {
513 regulator-min-microvolt = <2800000>;
514 regulator-max-microvolt = <3150000>;
515};
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200516
Marek Belisko4318bad2014-07-22 21:30:20 +0200517/* GPS LNA */
518&vsim {
519 regulator-min-microvolt = <2800000>;
520 regulator-max-microvolt = <3150000>;
521};
522
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200523&dss {
524 pinctrl-names = "default";
525 pinctrl-0 = < &dss_dpi_pins >;
526
527 status = "okay";
NeilBrown01ca6d52015-01-22 21:38:17 +0100528 vdds_dsi-supply = <&vpll2>;
Marek Beliskoc2e138b2014-05-08 22:16:51 +0200529
530 port {
531 dpi_out: endpoint {
532 remote-endpoint = <&lcd_in>;
533 data-lines = <24>;
534 };
535 };
536};
Marek Belisko2618a182014-07-22 21:30:14 +0200537
Marek Belisko7300bff2014-12-03 22:33:22 +0100538&venc {
539 status = "okay";
540
541 vdda-supply = <&vdac>;
542
543 port {
544 venc_out: endpoint {
545 remote-endpoint = <&opa_in>;
546 ti,channels = <2>;
547 ti,invert-polarity;
548 };
549 };
550};
551
Marek Belisko2618a182014-07-22 21:30:14 +0200552&gpmc {
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700553 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
Marek Belisko2618a182014-07-22 21:30:14 +0200554
555 nand@0,0 {
Roger Quadros44e47162016-02-23 18:37:25 +0200556 compatible = "ti,omap2-nand";
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700557 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
Roger Quadros44e47162016-02-23 18:37:25 +0200558 interrupt-parent = <&gpmc>;
559 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
560 <1 IRQ_TYPE_NONE>; /* termcount */
Marek Belisko2618a182014-07-22 21:30:14 +0200561 nand-bus-width = <16>;
562 ti,nand-ecc-opt = "bch8";
563
564 gpmc,sync-clk-ps = <0>;
565 gpmc,cs-on-ns = <0>;
566 gpmc,cs-rd-off-ns = <44>;
567 gpmc,cs-wr-off-ns = <44>;
568 gpmc,adv-on-ns = <6>;
569 gpmc,adv-rd-off-ns = <34>;
570 gpmc,adv-wr-off-ns = <44>;
571 gpmc,we-off-ns = <40>;
572 gpmc,oe-off-ns = <54>;
573 gpmc,access-ns = <64>;
574 gpmc,rd-cycle-ns = <82>;
575 gpmc,wr-cycle-ns = <82>;
576 gpmc,wr-access-ns = <40>;
577 gpmc,wr-data-mux-bus-ns = <0>;
578 gpmc,device-width = <2>;
579
580 #address-cells = <1>;
581 #size-cells = <1>;
582
583 x-loader@0 {
584 label = "X-Loader";
585 reg = <0 0x80000>;
586 };
587
588 bootloaders@80000 {
589 label = "U-Boot";
590 reg = <0x80000 0x1e0000>;
591 };
592
593 bootloaders_env@260000 {
594 label = "U-Boot Env";
595 reg = <0x260000 0x20000>;
596 };
597
598 kernel@280000 {
599 label = "Kernel";
600 reg = <0x280000 0x400000>;
601 };
602
603 filesystem@680000 {
604 label = "File System";
605 reg = <0x680000 0xf980000>;
606 };
607 };
608};
H. Nikolaus Schaller98fd3962015-01-22 21:38:09 +0100609
610&mcbsp2 {
611 status = "okay";
612};
Marek Belisko3221dfb2015-04-28 22:54:27 +0200613
614&hdqw1w {
615 pinctrl-names = "default";
616 pinctrl-0 = <&hdq_pins>;
617};
Marek Beliskof6ae9412015-05-07 21:35:05 +0200618
619&mcbsp4 {
620 status = "okay";
621};