Linux Audio

Check our new training course

Loading...
v5.14.15
  1// SPDX-License-Identifier: GPL-2.0-only
  2/*
  3 * Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
  4 *
  5 * Based on omap3-beagle-xm.dts
  6 */
  7/dts-v1/;
  8
  9#include "omap36xx.dtsi"
 10#include <dt-bindings/input/input.h>
 11
 12/ {
 13	model = "OMAP3 GTA04";
 14	compatible = "ti,omap3-gta04", "ti,omap3630", "ti,omap36xx", "ti,omap3";
 15
 16	cpus {
 17		cpu@0 {
 18			cpu0-supply = <&vcc>;
 19		};
 20	};
 21
 22	memory@80000000 {
 23		device_type = "memory";
 24		reg = <0x80000000 0x20000000>; /* 512 MB */
 25	};
 26
 27	chosen {
 28		stdout-path = &uart3;
 29	};
 30
 31	aliases {
 32		display0 = &lcd;
 33		display1 = &tv0;
 34	};
 35
 36	ldo_3v3: fixedregulator {
 37		compatible = "regulator-fixed";
 38		regulator-name = "ldo_3v3";
 39		regulator-min-microvolt = <3300000>;
 40		regulator-max-microvolt = <3300000>;
 41		regulator-always-on;
 42	};
 43
 44	/* fixed 26MHz oscillator */
 45	hfclk_26m: oscillator {
 46		#clock-cells = <0>;
 47		compatible = "fixed-clock";
 48		clock-frequency = <26000000>;
 49	};
 50
 51	gpio-keys {
 52		compatible = "gpio-keys";
 53
 54		aux-button {
 55			label = "aux";
 56			linux,code = <KEY_PHONE>;
 57			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
 58			wakeup-source;
 59		};
 60	};
 61
 62	antenna-detect {
 63		compatible = "gpio-keys";
 64
 65		gps_antenna_button: gps-antenna-button {
 66			label = "GPS_EXT_ANT";
 67			linux,input-type = <EV_SW>;
 68			linux,code = <SW_LINEIN_INSERT>;
 69			gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* GPIO144 */
 70			interrupt-parent = <&gpio5>;
 71			interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
 72			debounce-interval = <10>;
 73			wakeup-source;
 74		};
 75	};
 76
 77	sound {
 78		compatible = "ti,omap-twl4030";
 79		ti,model = "gta04";
 80
 81		ti,mcbsp = <&mcbsp2>;
 82	};
 83
 84	/* GSM audio */
 85	sound_telephony {
 86		compatible = "simple-audio-card";
 87		simple-audio-card,name = "GTA04 voice";
 88		simple-audio-card,bitclock-master = <&telephony_link_master>;
 89		simple-audio-card,frame-master = <&telephony_link_master>;
 90		simple-audio-card,format = "i2s";
 91		simple-audio-card,bitclock-inversion;
 92		simple-audio-card,frame-inversion;
 93		simple-audio-card,cpu {
 94			sound-dai = <&mcbsp4>;
 95		};
 96
 97		telephony_link_master: simple-audio-card,codec {
 98			sound-dai = <&gtm601_codec>;
 99		};
100	};
101
102	gtm601_codec: gsm_codec {
103		compatible = "option,gtm601";
104		#sound-dai-cells = <0>;
105	};
106
107	spi_lcd: spi_lcd {
108		compatible = "spi-gpio";
109		#address-cells = <0x1>;
110		#size-cells = <0x0>;
111		pinctrl-names = "default";
112		pinctrl-0 = <&spi_gpio_pins>;
113
114		gpio-sck = <&gpio1 12 GPIO_ACTIVE_HIGH>;
115		gpio-miso = <&gpio1 18 GPIO_ACTIVE_HIGH>;
116		gpio-mosi = <&gpio1 20 GPIO_ACTIVE_HIGH>;
117		cs-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
118		num-chipselects = <1>;
119
120		/* lcd panel */
121		lcd: td028ttec1@0 {
122			compatible = "tpo,td028ttec1";
123			reg = <0>;
124			spi-max-frequency = <100000>;
125			spi-cpol;
126			spi-cpha;
 
127
128			backlight= <&backlight>;
129			label = "lcd";
130			port {
131				lcd_in: endpoint {
132					remote-endpoint = <&dpi_out>;
133				};
134			};
135		};
136	};
137
138	backlight: backlight {
139		compatible = "pwm-backlight";
140		pwms = <&pwm11 0 12000000 0>;
141		pwm-names = "backlight";
142		brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>;
143		default-brightness-level = <9>;	/* => 90 */
144		pinctrl-names = "default";
145		pinctrl-0 = <&backlight_pins>;
146	};
147
148	pwm11: dmtimer-pwm {
149		compatible = "ti,omap-dmtimer-pwm";
150		ti,timers = <&timer11>;
151		#pwm-cells = <3>;
152		ti,clock-source = <0x01>;
153	};
154
155	hsusb2_phy: hsusb2_phy {
156		compatible = "usb-nop-xceiv";
157		reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
158		#phy-cells = <0>;
159	};
160
161	tv0: connector {
162		compatible = "composite-video-connector";
163		label = "tv";
164
165		port {
166			tv_connector_in: endpoint {
167				remote-endpoint = <&opa_out>;
168			};
169		};
170	};
171
172	tv_amp: opa362 {
173		compatible = "ti,opa362";
174		enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;	/* GPIO_23 to enable video out amplifier */
175
176		ports {
177			#address-cells = <1>;
178			#size-cells = <0>;
179
180			port@0 {
181				reg = <0>;
182				opa_in: endpoint {
183					remote-endpoint = <&venc_out>;
184				};
185			};
186
187			port@1 {
188				reg = <1>;
189				opa_out: endpoint {
190					remote-endpoint = <&tv_connector_in>;
191				};
192			};
193		};
194	};
195
196	wifi_pwrseq: wifi_pwrseq {
197		compatible = "mmc-pwrseq-simple";
198		reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;	/* W2CBW003 reset through tca6507 */
199	};
200
201	/* devconf0 setup for mcbsp1 clock pins */
202	pinmux_mcbsp1@48002274 {
203		compatible = "pinctrl-single";
204		reg = <0x48002274 4>;   /* CONTROL_DEVCONF0 */
205		#address-cells = <1>;
206		#size-cells = <0>;
207		pinctrl-single,bit-per-mux;
208		pinctrl-single,register-width = <32>;
209		pinctrl-single,function-mask = <0x7>;	/* MCBSP1 CLK pinmux */
210		#pinctrl-cells = <2>;
211		pinctrl-names = "default";
212		pinctrl-0 = <&mcbsp1_devconf0_pins>;
213		mcbsp1_devconf0_pins: pinmux_mcbsp1_devconf0_pins {
214			/*                   offset bits mask */
215			pinctrl-single,bits = <0x00 0x08 0x1c>;	/* set MCBSP1_CLKR */
216		};
217	};
218
219	/* devconf1 setup for tvout pins */
220	pinmux_tv_out@480022d8 {
221		compatible = "pinctrl-single";
222		reg = <0x480022d8 4>;	/* CONTROL_DEVCONF1 */
223		#address-cells = <1>;
224		#size-cells = <0>;
225		pinctrl-single,bit-per-mux;
226		pinctrl-single,register-width = <32>;
227		pinctrl-single,function-mask = <0x81>;	/* TV out pin control */
228		#pinctrl-cells = <2>;
229		pinctrl-names = "default";
230		pinctrl-0 = <&tv_acbias_devconf1_pins>;
231		tv_acbias_devconf1_pins: pinmux_tv_acbias_devconf1_pins {
232			/*			offset	bits	mask */
233			pinctrl-single,bits = <0x00 0x40800 0x40800>;	/* set TVOUTBYPASS and TVOUTACEN */
234		};
235	};
236};
237
238&omap3_pmx_wkup {
239	gpio1_pins: pinmux_gpio1_pins {
240		pinctrl-single,pins = <
241			OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */
242			OMAP3_WKUP_IOPAD(0x2a1a, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_clkout.gpio_10 */
243		>;
244	};
245};
246
247&omap3_pmx_core {
248	pinctrl-names = "default";
249	pinctrl-0 = <
250			&hsusb2_pins
251	>;
252
253	hsusb2_pins: pinmux_hsusb2_pins {
254		pinctrl-single,pins = <
255			OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi1_cs3.hsusb2_data2 */
256			OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_clk.hsusb2_data7 */
257			OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_simo.hsusb2_data4 */
258			OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_somi.hsusb2_data5 */
259			OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs0.hsusb2_data6 */
260			OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs1.hsusb2_data3 */
261		>;
262	};
263
264	uart1_pins: pinmux_uart1_pins {
265		pinctrl-single,pins = <
266			OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0)		/* uart1_rx.uart1_rx */
267			OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0)		/* uart1_tx.uart1_tx */
268		>;
269	};
270
271	uart2_pins: pinmux_uart2_pins {
272		pinctrl-single,pins = <
273			OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)		/* uart2_rx.uart2_rx */
274			OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)		/* uart2_tx.uart2_tx */
275		>;
276	};
277
278	uart3_pins: pinmux_uart3_pins {
279		pinctrl-single,pins = <
280			OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)		/* uart3_rx.uart3_rx */
281			OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)		/* uart3_tx.uart3_tx */
282		>;
283	};
284
285	mmc1_pins: pinmux_mmc1_pins {
286		pinctrl-single,pins = <
287			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_clk.sdmmc1_clk */
288			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_cmd.sdmmc1_cmd */
289			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat0.sdmmc1_dat0 */
290			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat1.sdmmc1_dat1 */
291			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat2.sdmmc1_dat2 */
292			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat3.sdmmc1_dat3 */
293		>;
294	};
295
296	backlight_pins: backlight_pins_pinmux {
297		pinctrl-single,pins = <
298			OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3)		/* gpt11/gpio57 */
299		>;
300	};
301
302	dss_dpi_pins: pinmux_dss_dpi_pins {
303		pinctrl-single,pins = <
304			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   /* dss_pclk.dss_pclk */
305			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)   /* dss_hsync.dss_hsync */
306			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)   /* dss_vsync.dss_vsync */
307			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)   /* dss_acbias.dss_acbias */
308			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   /* dss_data0.dss_data0 */
309			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   /* dss_data1.dss_data1 */
310			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   /* dss_data2.dss_data2 */
311			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   /* dss_data3.dss_data3 */
312			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   /* dss_data4.dss_data4 */
313			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   /* dss_data5.dss_data5 */
314			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)   /* dss_data6.dss_data6 */
315			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)   /* dss_data7.dss_data7 */
316			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)   /* dss_data8.dss_data8 */
317			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)   /* dss_data9.dss_data9 */
318			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)   /* dss_data10.dss_data10 */
319			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)   /* dss_data11.dss_data11 */
320			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)   /* dss_data12.dss_data12 */
321			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)   /* dss_data13.dss_data13 */
322			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)   /* dss_data14.dss_data14 */
323			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)   /* dss_data15.dss_data15 */
324			OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)   /* dss_data16.dss_data16 */
325			OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)   /* dss_data17.dss_data17 */
326			OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0)   /* dss_data18.dss_data18 */
327			OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0)   /* dss_data19.dss_data19 */
328			OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0)   /* dss_data20.dss_data20 */
329			OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0)   /* dss_data21.dss_data21 */
330			OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0)   /* dss_data22.dss_data22 */
331			OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0)   /* dss_data23.dss_data23 */
332		>;
333       };
334
335	gps_pins: pinmux_gps_pins {
336		pinctrl-single,pins = <
337			OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* gpio145 */
338		>;
339	};
340
341	hdq_pins: hdq_pins {
342		pinctrl-single,pins = <
343			OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
344		>;
345	};
346
347	bmp085_pins: pinmux_bmp085_pins {
348		pinctrl-single,pins = <
349			OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio113 */
350		>;
351	};
352
353	bma180_pins: pinmux_bma180_pins {
354		pinctrl-single,pins = <
355			OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
356		>;
357	};
358
359	itg3200_pins: pinmux_itg3200_pins {
360		pinctrl-single,pins = <
361			OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
362		>;
363	};
364
365	hmc5843_pins: pinmux_hmc5843_pins {
366		pinctrl-single,pins = <
367			OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
368		>;
369	};
370
371	penirq_pins: pinmux_penirq_pins {
372		pinctrl-single,pins = <
373			/* here we could enable to wakeup the cpu from suspend by a pen touch */
374			OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio160 */
375		>;
376	};
377
378	camera_pins: pinmux_camera_pins {
379		pinctrl-single,pins = <
380			/* set up parallel camera interface */
381			OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_hs */
382			OMAP3_CORE1_IOPAD(0x210e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_vs */
383			OMAP3_CORE1_IOPAD(0x2110, PIN_OUTPUT | MUX_MODE0) /* cam_xclka */
384			OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_pclk */
385			OMAP3_CORE1_IOPAD(0x2114, PIN_OUTPUT | MUX_MODE4) /* cam_fld = gpio_98 */
386			OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d0 */
387			OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d1 */
388			OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d2 */
389			OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d3 */
390			OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d4 */
391			OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d5 */
392			OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d6 */
393			OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d7 */
394			OMAP3_CORE1_IOPAD(0x2126, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d8 */
395			OMAP3_CORE1_IOPAD(0x2128, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d9 */
396			OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d10 */
397			OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d10 */
398			OMAP3_CORE1_IOPAD(0x212e, PIN_OUTPUT | MUX_MODE0) /* cam_xclkb */
399			OMAP3_CORE1_IOPAD(0x2130, PIN_OUTPUT | MUX_MODE4) /* cam_wen = gpio_167 */
400			OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLDOWN | MUX_MODE4) /* cam_strobe */
401		>;
402	};
403
404	mcbsp1_pins: pinmux_mcbsp1_pins {
405		pinctrl-single,pins = <
406			OMAP3_CORE1_IOPAD(0x218c, PIN_INPUT | MUX_MODE4)	/* mcbsp1_clkr.mcbsp1_clkr - gpio_156 FM interrupt */
407			OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE0)	/* mcbsp1_clkr.mcbsp1_fsr */
408			OMAP3_CORE1_IOPAD(0x2190, PIN_OUTPUT | MUX_MODE0)	/* mcbsp1_dx.mcbsp1_dx */
409			OMAP3_CORE1_IOPAD(0x2192, PIN_INPUT | MUX_MODE0)	/* mcbsp1_dx.mcbsp1_dr */
410			/* mcbsp_clks is used as PENIRQ */
411			/* OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT | MUX_MODE0)	   mcbsp_clks.mcbsp_clks */
412			OMAP3_CORE1_IOPAD(0x2196, PIN_INPUT | MUX_MODE0)	/* mcbsp_clks.mcbsp1_fsx */
413			OMAP3_CORE1_IOPAD(0x2198, PIN_INPUT | MUX_MODE0)	/* mcbsp1_clkx.mcbsp1_clkx */
414		>;
415	};
416
417	mcbsp2_pins: pinmux_mcbsp2_pins {
418		pinctrl-single,pins = <
419			OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)	/* mcbsp2_fsx.mcbsp2_fsx */
420			OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)	/* mcbsp2_fsx.mcbsp2_clkx */
421			OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)	/* mcbsp2_dr.mcbsp2_dr */
422			OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)	/* mcbsp2_dr.mcbsp2_dx */
423		>;
424	};
425
426	mcbsp3_pins: pinmux_mcbsp3_pins {
427		pinctrl-single,pins = <
428			OMAP3_CORE1_IOPAD(0x216c, PIN_OUTPUT | MUX_MODE0)	/* mcbsp3_dx.mcbsp3_dx */
429			OMAP3_CORE1_IOPAD(0x216e, PIN_INPUT | MUX_MODE0)	/* mcbsp3_dx.mcbsp3_dr */
430			OMAP3_CORE1_IOPAD(0x2170, PIN_INPUT | MUX_MODE0)	/* mcbsp3_clkx.mcbsp3_clkx */
431			OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE0)	/* mcbsp3_clkx.mcbsp3_fsx */
432		>;
433	};
434
435	mcbsp4_pins: pinmux_mcbsp4_pins {
436		pinctrl-single,pins = <
437			OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_clkx.mcbsp4_clkx */
438			OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_clkx.mcbsp4_dr */
439			OMAP3_CORE1_IOPAD(0x218a, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_dx.mcbsp4_fsx */
440		>;
441	};
442};
443
444&omap3_pmx_core2 {
445	pinctrl-names = "default";
446	pinctrl-0 = <
447			&hsusb2_2_pins
448	>;
449
450	hsusb2_2_pins: pinmux_hsusb2_2_pins {
451		pinctrl-single,pins = <
452			OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3)		/* etk_d10.hsusb2_clk */
453			OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3)		/* etk_d11.hsusb2_stp */
454			OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d12.hsusb2_dir */
455			OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d13.hsusb2_nxt */
456			OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d14.hsusb2_data0 */
457			OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d15.hsusb2_data1 */
458		>;
459	};
460
461	spi_gpio_pins: spi_gpio_pinmux {
462		pinctrl-single,pins = <
463			OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */
464			OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */
465			OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */
466			OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */
467		>;
468	};
469};
470
471&i2c1 {
472	clock-frequency = <2600000>;
473
474	twl: twl@48 {
475		reg = <0x48>;
476		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
477		interrupt-parent = <&intc>;
478
479		clocks = <&hfclk_26m>;
480		clock-names = "fck";
481
482		twl_audio: audio {
483			compatible = "ti,twl4030-audio";
484			ti,enable-vibra = <1>;
485			codec {
486				ti,ramp_delay_value = <3>;
487			};
488		};
489
490		twl_power: power {
491			compatible = "ti,twl4030-power-idle";
492			ti,system-power-controller;
493		};
494	};
495};
496
497#include "twl4030.dtsi"
498#include "twl4030_omap3.dtsi"
499
500&i2c2 {
501	clock-frequency = <400000>;
502
503	/* pressure sensor */
504	bmp085@77 {
505		compatible = "bosch,bmp085";
506		reg = <0x77>;
507		pinctrl-names = "default";
508		pinctrl-0 = <&bmp085_pins>;
509		interrupt-parent = <&gpio4>;
510		interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */
511	};
512
513	/* accelerometer */
514	bma180@41 {
515		compatible = "bosch,bma180";
516		reg = <0x41>;
517		pinctrl-names = "default";
518		pintcrl-0 = <&bma180_pins>;
519		interrupt-parent = <&gpio4>;
520		interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
521	};
522
523	/* gyroscope */
524	itg3200@68 {
525		compatible = "invensense,itg3200";
526		reg = <0x68>;
527		pinctrl-names = "default";
528		pinctrl-0 = <&itg3200_pins>;
529		interrupt-parent = <&gpio2>;
530		interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
531	};
532
533	/* leds + gpios */
534	tca6507: tca6507@45 {
535		compatible = "ti,tca6507";
536		#address-cells = <1>;
537		#size-cells = <0>;
538		reg = <0x45>;
539
540		gpio-controller;
541		#gpio-cells = <2>;
542
543		gta04_led0: red_aux@0 {
544			label = "gta04:red:aux";
545			reg = <0x0>;
546		};
547
548		gta04_led1: green_aux@1 {
549			label = "gta04:green:aux";
550			reg = <0x1>;
551		};
552
553		gta04_led3: red_power@3 {
554			label = "gta04:red:power";
555			reg = <0x3>;
556			linux,default-trigger = "default-on";
557		};
558
559		gta04_led4: green_power@4 {
560			label = "gta04:green:power";
561			reg = <0x4>;
562		};
563
564		wifi_reset: wifi_reset@6 { /* reference as <&tca_gpios 0 0> since it is currently the only GPIO */
565			reg = <0x6>;
566			compatible = "gpio";
567		};
568	};
569
570	/* compass aka magnetometer */
571	hmc5843@1e {
572		compatible = "honeywell,hmc5883l";
573		reg = <0x1e>;
574		pinctrl-names = "default";
575		pinctrl-0 = <&hmc5843_pins>;
576		interrupt-parent = <&gpio4>;
577		interrupts = <16 IRQ_TYPE_EDGE_FALLING>;	/* gpio112 */
578	};
579
580	/* touchscreen */
581	tsc2007@48 {
582		compatible = "ti,tsc2007";
583		reg = <0x48>;
584		pinctrl-names = "default";
585		pinctrl-0 = <&penirq_pins>;
586		interrupt-parent = <&gpio6>;
587		interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
588		gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;	/* GPIO_160 */
589		ti,x-plate-ohms = <600>;
590		touchscreen-size-x = <480>;
591		touchscreen-size-y = <640>;
592		touchscreen-max-pressure = <1000>;
593		touchscreen-fuzz-x = <3>;
594		touchscreen-fuzz-y = <8>;
595		touchscreen-fuzz-pressure = <10>;
596		touchscreen-inverted-y;
597	};
598
599	/* RFID EEPROM */
600	m24lr64@50 {
601		compatible = "atmel,24c64";
602		reg = <0x50>;
603	};
604};
605
606&i2c3 {
607	clock-frequency = <100000>;
608};
609
610&usb_otg_hs {
611	interface-type = <0>;
612	usb-phy = <&usb2_phy>;
613	phys = <&usb2_phy>;
614	phy-names = "usb2-phy";
615	mode = <3>;
616	power = <50>;
617};
618
619&usbhshost {
620	port2-mode = "ehci-phy";
621};
622
623&usbhsehci {
624	phys = <0 &hsusb2_phy>;
625};
626
627&mmc1 {
628	pinctrl-names = "default";
629	pinctrl-0 = <&mmc1_pins>;
630	vmmc-supply = <&vmmc1>;
631	bus-width = <4>;
632	ti,non-removable;
633	broken-cd;	/* hardware has no CD */
634};
635
636&mmc2 {
637	vmmc-supply = <&vaux4>;
638	bus-width = <4>;
639	ti,non-removable;
640	cap-power-off-card;
641	mmc-pwrseq = <&wifi_pwrseq>;
642};
643
644&mmc3 {
645	status = "disabled";
646};
647
648#define BIT(x) (1 << (x))
649&twl_gpio {
650	/* pullups: BIT(2) */
651	ti,pullups = <BIT(2)>;
652	/*
653	 * pulldowns:
654	 * BIT(0),  BIT(1), BIT(6), BIT(7), BIT(8), BIT(13)
655	 * BIT(15), BIT(16), BIT(17)
656	 */
657	ti,pulldowns = <(BIT(0) | BIT(1) | BIT(6) | BIT(7) | BIT(8) |
658			 BIT(13) | BIT(15) | BIT(16) | BIT(17))>;
659};
660
661&twl_keypad {
662	status = "disabled";
663};
664
665&gpio1 {
666	pinctrl-names = "default";
667	pinctrl-0 = <&gpio1_pins>;
668};
669
670&uart1 {
671	pinctrl-names = "default";
672	pinctrl-0 = <&uart1_pins>;
673};
674
675&uart2 {
676	pinctrl-names = "default";
677	pinctrl-0 = <&uart2_pins>;
678	gnss: gnss {
679		compatible = "wi2wi,w2sg0004";
680		pinctrl-names = "default";
681		pinctrl-0 = <&gps_pins>;
682		sirf,onoff-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
683		lna-supply = <&vsim>;
684		vcc-supply = <&ldo_3v3>;
685	};
686};
687
688&uart3 {
689	pinctrl-names = "default";
690	pinctrl-0 = <&uart3_pins>;
691	interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
692};
693
694&charger {
695	ti,bb-uvolt = <3200000>;
696	ti,bb-uamp = <150>;
697};
698
699/* spare */
700&vaux1 {
701	regulator-min-microvolt = <2500000>;
702	regulator-max-microvolt = <3000000>;
703};
704
705/* sensors */
706&vaux2 {
707	regulator-min-microvolt = <2800000>;
708	regulator-max-microvolt = <2800000>;
709	regulator-always-on;	/* we should never switch off while vio is on! */
710};
711
712/* camera */
713&vaux3 {
714	regulator-min-microvolt = <2500000>;
715	regulator-max-microvolt = <2500000>;
716};
717
718/* WLAN/BT */
719&vaux4 {
720	regulator-min-microvolt = <2800000>;
721	regulator-max-microvolt = <3150000>;
722};
723
724/* GPS LNA */
725&vsim {
726	regulator-min-microvolt = <2800000>;
727	regulator-max-microvolt = <3150000>;
728};
729
730/* Needed to power the DPI pins */
731
732&vpll2 {
733	regulator-always-on;
734};
735
736&dss {
737	pinctrl-names = "default";
738	pinctrl-0 = < &dss_dpi_pins >;
739
740	status = "okay";
741	vdds_dsi-supply = <&vpll2>;
742
743	port {
744		dpi_out: endpoint {
745			remote-endpoint = <&lcd_in>;
746			data-lines = <24>;
747		};
748	};
749};
750
751&venc {
752	status = "okay";
753
754	vdda-supply = <&vdac>;
755
756	port {
757		venc_out: endpoint {
758			remote-endpoint = <&opa_in>;
759			ti,channels = <1>;
760			ti,invert-polarity;
761		};
762	};
763};
764
765&gpmc {
766	ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
767
768	nand@0,0 {
769		compatible = "ti,omap2-nand";
770		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
771		interrupt-parent = <&gpmc>;
772		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
773			     <1 IRQ_TYPE_NONE>;	/* termcount */
774		ti,nand-ecc-opt = "ham1";
775		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
776		nand-bus-width = <16>;
777		#address-cells = <1>;
778		#size-cells = <1>;
779
780		gpmc,device-width = <2>;
781		gpmc,cs-on-ns = <0>;
782		gpmc,cs-rd-off-ns = <44>;
783		gpmc,cs-wr-off-ns = <44>;
784		gpmc,adv-on-ns = <6>;
785		gpmc,adv-rd-off-ns = <34>;
786		gpmc,adv-wr-off-ns = <44>;
787		gpmc,oe-off-ns = <54>;
788		gpmc,we-off-ns = <40>;
789		gpmc,access-ns = <64>;
790		gpmc,rd-cycle-ns = <82>;
791		gpmc,wr-cycle-ns = <82>;
792		gpmc,wr-access-ns = <40>;
793		gpmc,wr-data-mux-bus-ns = <0>;
794		gpmc,sync-clk-ps = <0>;
795
796		x-loader@0 {
797			label = "X-Loader";
798			reg = <0 0x80000>;
799		};
800
801		bootloaders@80000 {
802			label = "U-Boot";
803			reg = <0x80000 0x1c0000>;
804		};
805
806		bootloaders_env@240000 {
807			label = "U-Boot Env";
808			reg = <0x240000 0x40000>;
809		};
810
811		kernel@280000 {
812			label = "Kernel";
813			reg = <0x280000 0x600000>;
814		};
815
816		filesystem@880000 {
817			label = "File System";
818			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
819		};
820	};
821};
822
823&mcbsp1 { /* FM Transceiver PCM */
824	status = "okay";
825	#sound-dai-cells = <0>;
826	pinctrl-names = "default";
827	pinctrl-0 = <&mcbsp1_pins>;
828};
829
830&mcbsp2 { /* TPS65950 I2S */
831	status = "okay";
832	pinctrl-names = "default";
833	pinctrl-0 = <&mcbsp2_pins>;
834};
835
836&mcbsp3 { /* Bluetooth PCM */
837	status = "okay";
838	#sound-dai-cells = <0>;
839	pinctrl-names = "default";
840	pinctrl-0 = <&mcbsp3_pins>;
841};
842
843&mcbsp4 { /* GSM voice PCM */
844	status = "okay";
845	#sound-dai-cells = <0>;
846	pinctrl-names = "default";
847	pinctrl-0 = <&mcbsp4_pins>;
848};
849
850&hdqw1w {
851        pinctrl-names = "default";
852        pinctrl-0 = <&hdq_pins>;
853};
854
855/* image signal processor within OMAP3 SoC */
856&isp {
857	ports {
858		port@0 {
859			reg = <0>;
860			parallel_ep: endpoint {
861				ti,isp-clock-divisor = <1>;
862				ti,strobe-mode;
863				bus-width = <8>;/* Used data lines */
864				data-shift = <2>; /* Lines 9:2 are used */
865				hsync-active = <0>; /* Active low */
866				vsync-active = <1>; /* Active high */
867				data-active = <1>;/* Active high */
868				pclk-sample = <1>;/* Falling */
869			};
870		};
871		/* port@1 and port@2 are not used by GTA04 */
872	};
873};
v5.9
  1// SPDX-License-Identifier: GPL-2.0-only
  2/*
  3 * Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
  4 *
  5 * Based on omap3-beagle-xm.dts
  6 */
  7/dts-v1/;
  8
  9#include "omap36xx.dtsi"
 10#include <dt-bindings/input/input.h>
 11
 12/ {
 13	model = "OMAP3 GTA04";
 14	compatible = "ti,omap3-gta04", "ti,omap3630", "ti,omap36xx", "ti,omap3";
 15
 16	cpus {
 17		cpu@0 {
 18			cpu0-supply = <&vcc>;
 19		};
 20	};
 21
 22	memory@80000000 {
 23		device_type = "memory";
 24		reg = <0x80000000 0x20000000>; /* 512 MB */
 25	};
 26
 27	chosen {
 28		stdout-path = &uart3;
 29	};
 30
 31	aliases {
 32		display0 = &lcd;
 33		display1 = &tv0;
 34	};
 35
 36	ldo_3v3: fixedregulator {
 37		compatible = "regulator-fixed";
 38		regulator-name = "ldo_3v3";
 39		regulator-min-microvolt = <3300000>;
 40		regulator-max-microvolt = <3300000>;
 41		regulator-always-on;
 42	};
 43
 44	/* fixed 26MHz oscillator */
 45	hfclk_26m: oscillator {
 46		#clock-cells = <0>;
 47		compatible = "fixed-clock";
 48		clock-frequency = <26000000>;
 49	};
 50
 51	gpio-keys {
 52		compatible = "gpio-keys";
 53
 54		aux-button {
 55			label = "aux";
 56			linux,code = <KEY_PHONE>;
 57			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
 58			wakeup-source;
 59		};
 60	};
 61
 62	antenna-detect {
 63		compatible = "gpio-keys";
 64
 65		gps_antenna_button: gps-antenna-button {
 66			label = "GPS_EXT_ANT";
 67			linux,input-type = <EV_SW>;
 68			linux,code = <SW_LINEIN_INSERT>;
 69			gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* GPIO144 */
 70			interrupt-parent = <&gpio5>;
 71			interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
 72			debounce-interval = <10>;
 73			wakeup-source;
 74		};
 75	};
 76
 77	sound {
 78		compatible = "ti,omap-twl4030";
 79		ti,model = "gta04";
 80
 81		ti,mcbsp = <&mcbsp2>;
 82	};
 83
 84	/* GSM audio */
 85	sound_telephony {
 86		compatible = "simple-audio-card";
 87		simple-audio-card,name = "GTA04 voice";
 88		simple-audio-card,bitclock-master = <&telephony_link_master>;
 89		simple-audio-card,frame-master = <&telephony_link_master>;
 90		simple-audio-card,format = "i2s";
 91		simple-audio-card,bitclock-inversion;
 92		simple-audio-card,frame-inversion;
 93		simple-audio-card,cpu {
 94			sound-dai = <&mcbsp4>;
 95		};
 96
 97		telephony_link_master: simple-audio-card,codec {
 98			sound-dai = <&gtm601_codec>;
 99		};
100	};
101
102	gtm601_codec: gsm_codec {
103		compatible = "option,gtm601";
104		#sound-dai-cells = <0>;
105	};
106
107	spi_lcd: spi_lcd {
108		compatible = "spi-gpio";
109		#address-cells = <0x1>;
110		#size-cells = <0x0>;
111		pinctrl-names = "default";
112		pinctrl-0 = <&spi_gpio_pins>;
113
114		gpio-sck = <&gpio1 12 GPIO_ACTIVE_HIGH>;
115		gpio-miso = <&gpio1 18 GPIO_ACTIVE_HIGH>;
116		gpio-mosi = <&gpio1 20 GPIO_ACTIVE_HIGH>;
117		cs-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
118		num-chipselects = <1>;
119
120		/* lcd panel */
121		lcd: td028ttec1@0 {
122			compatible = "tpo,td028ttec1";
123			reg = <0>;
124			spi-max-frequency = <100000>;
125			spi-cpol;
126			spi-cpha;
127			spi-cs-high;
128
129			backlight= <&backlight>;
130			label = "lcd";
131			port {
132				lcd_in: endpoint {
133					remote-endpoint = <&dpi_out>;
134				};
135			};
136		};
137	};
138
139	backlight: backlight {
140		compatible = "pwm-backlight";
141		pwms = <&pwm11 0 12000000 0>;
142		pwm-names = "backlight";
143		brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>;
144		default-brightness-level = <9>;	/* => 90 */
145		pinctrl-names = "default";
146		pinctrl-0 = <&backlight_pins>;
147	};
148
149	pwm11: dmtimer-pwm {
150		compatible = "ti,omap-dmtimer-pwm";
151		ti,timers = <&timer11>;
152		#pwm-cells = <3>;
153		ti,clock-source = <0x01>;
154	};
155
156	hsusb2_phy: hsusb2_phy {
157		compatible = "usb-nop-xceiv";
158		reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
159		#phy-cells = <0>;
160	};
161
162	tv0: connector {
163		compatible = "composite-video-connector";
164		label = "tv";
165
166		port {
167			tv_connector_in: endpoint {
168				remote-endpoint = <&opa_out>;
169			};
170		};
171	};
172
173	tv_amp: opa362 {
174		compatible = "ti,opa362";
175		enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;	/* GPIO_23 to enable video out amplifier */
176
177		ports {
178			#address-cells = <1>;
179			#size-cells = <0>;
180
181			port@0 {
182				reg = <0>;
183				opa_in: endpoint {
184					remote-endpoint = <&venc_out>;
185				};
186			};
187
188			port@1 {
189				reg = <1>;
190				opa_out: endpoint {
191					remote-endpoint = <&tv_connector_in>;
192				};
193			};
194		};
195	};
196
197	wifi_pwrseq: wifi_pwrseq {
198		compatible = "mmc-pwrseq-simple";
199		reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;	/* W2CBW003 reset through tca6507 */
200	};
201
202	/* devconf0 setup for mcbsp1 clock pins */
203	pinmux_mcbsp1@48002274 {
204		compatible = "pinctrl-single";
205		reg = <0x48002274 4>;   /* CONTROL_DEVCONF0 */
206		#address-cells = <1>;
207		#size-cells = <0>;
208		pinctrl-single,bit-per-mux;
209		pinctrl-single,register-width = <32>;
210		pinctrl-single,function-mask = <0x7>;	/* MCBSP1 CLK pinmux */
211		#pinctrl-cells = <2>;
212		pinctrl-names = "default";
213		pinctrl-0 = <&mcbsp1_devconf0_pins>;
214		mcbsp1_devconf0_pins: pinmux_mcbsp1_devconf0_pins {
215			/*                   offset bits mask */
216			pinctrl-single,bits = <0x00 0x08 0x1c>;	/* set MCBSP1_CLKR */
217		};
218	};
219
220	/* devconf1 setup for tvout pins */
221	pinmux_tv_out@480022d8 {
222		compatible = "pinctrl-single";
223		reg = <0x480022d8 4>;	/* CONTROL_DEVCONF1 */
224		#address-cells = <1>;
225		#size-cells = <0>;
226		pinctrl-single,bit-per-mux;
227		pinctrl-single,register-width = <32>;
228		pinctrl-single,function-mask = <0x81>;	/* TV out pin control */
229		#pinctrl-cells = <2>;
230		pinctrl-names = "default";
231		pinctrl-0 = <&tv_acbias_devconf1_pins>;
232		tv_acbias_devconf1_pins: pinmux_tv_acbias_devconf1_pins {
233			/*			offset	bits	mask */
234			pinctrl-single,bits = <0x00 0x40800 0x40800>;	/* set TVOUTBYPASS and TVOUTACEN */
235		};
236	};
237};
238
239&omap3_pmx_wkup {
240	gpio1_pins: pinmux_gpio1_pins {
241		pinctrl-single,pins = <
242			OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */
243			OMAP3_WKUP_IOPAD(0x2a1a, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_clkout.gpio_10 */
244		>;
245	};
246};
247
248&omap3_pmx_core {
249	pinctrl-names = "default";
250	pinctrl-0 = <
251			&hsusb2_pins
252	>;
253
254	hsusb2_pins: pinmux_hsusb2_pins {
255		pinctrl-single,pins = <
256			OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi1_cs3.hsusb2_data2 */
257			OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_clk.hsusb2_data7 */
258			OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_simo.hsusb2_data4 */
259			OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_somi.hsusb2_data5 */
260			OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs0.hsusb2_data6 */
261			OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs1.hsusb2_data3 */
262		>;
263	};
264
265	uart1_pins: pinmux_uart1_pins {
266		pinctrl-single,pins = <
267			OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0)		/* uart1_rx.uart1_rx */
268			OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0)		/* uart1_tx.uart1_tx */
269		>;
270	};
271
272	uart2_pins: pinmux_uart2_pins {
273		pinctrl-single,pins = <
274			OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)		/* uart2_rx.uart2_rx */
275			OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)		/* uart2_tx.uart2_tx */
276		>;
277	};
278
279	uart3_pins: pinmux_uart3_pins {
280		pinctrl-single,pins = <
281			OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)		/* uart3_rx.uart3_rx */
282			OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)		/* uart3_tx.uart3_tx */
283		>;
284	};
285
286	mmc1_pins: pinmux_mmc1_pins {
287		pinctrl-single,pins = <
288			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_clk.sdmmc1_clk */
289			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_cmd.sdmmc1_cmd */
290			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat0.sdmmc1_dat0 */
291			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat1.sdmmc1_dat1 */
292			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat2.sdmmc1_dat2 */
293			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat3.sdmmc1_dat3 */
294		>;
295	};
296
297	backlight_pins: backlight_pins_pinmux {
298		pinctrl-single,pins = <
299			OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3)		/* gpt11/gpio57 */
300		>;
301	};
302
303	dss_dpi_pins: pinmux_dss_dpi_pins {
304		pinctrl-single,pins = <
305			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   /* dss_pclk.dss_pclk */
306			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)   /* dss_hsync.dss_hsync */
307			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)   /* dss_vsync.dss_vsync */
308			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)   /* dss_acbias.dss_acbias */
309			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   /* dss_data0.dss_data0 */
310			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   /* dss_data1.dss_data1 */
311			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   /* dss_data2.dss_data2 */
312			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   /* dss_data3.dss_data3 */
313			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   /* dss_data4.dss_data4 */
314			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   /* dss_data5.dss_data5 */
315			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)   /* dss_data6.dss_data6 */
316			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)   /* dss_data7.dss_data7 */
317			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)   /* dss_data8.dss_data8 */
318			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)   /* dss_data9.dss_data9 */
319			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)   /* dss_data10.dss_data10 */
320			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)   /* dss_data11.dss_data11 */
321			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)   /* dss_data12.dss_data12 */
322			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)   /* dss_data13.dss_data13 */
323			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)   /* dss_data14.dss_data14 */
324			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)   /* dss_data15.dss_data15 */
325			OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)   /* dss_data16.dss_data16 */
326			OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)   /* dss_data17.dss_data17 */
327			OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0)   /* dss_data18.dss_data18 */
328			OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0)   /* dss_data19.dss_data19 */
329			OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0)   /* dss_data20.dss_data20 */
330			OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0)   /* dss_data21.dss_data21 */
331			OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0)   /* dss_data22.dss_data22 */
332			OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0)   /* dss_data23.dss_data23 */
333		>;
334       };
335
336	gps_pins: pinmux_gps_pins {
337		pinctrl-single,pins = <
338			OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* gpio145 */
339		>;
340	};
341
342	hdq_pins: hdq_pins {
343		pinctrl-single,pins = <
344			OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
345		>;
346	};
347
348	bmp085_pins: pinmux_bmp085_pins {
349		pinctrl-single,pins = <
350			OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio113 */
351		>;
352	};
353
354	bma180_pins: pinmux_bma180_pins {
355		pinctrl-single,pins = <
356			OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
357		>;
358	};
359
360	itg3200_pins: pinmux_itg3200_pins {
361		pinctrl-single,pins = <
362			OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
363		>;
364	};
365
366	hmc5843_pins: pinmux_hmc5843_pins {
367		pinctrl-single,pins = <
368			OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
369		>;
370	};
371
372	penirq_pins: pinmux_penirq_pins {
373		pinctrl-single,pins = <
374			/* here we could enable to wakeup the cpu from suspend by a pen touch */
375			OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio160 */
376		>;
377	};
378
379	camera_pins: pinmux_camera_pins {
380		pinctrl-single,pins = <
381			/* set up parallel camera interface */
382			OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_hs */
383			OMAP3_CORE1_IOPAD(0x210e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_vs */
384			OMAP3_CORE1_IOPAD(0x2110, PIN_OUTPUT | MUX_MODE0) /* cam_xclka */
385			OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_pclk */
386			OMAP3_CORE1_IOPAD(0x2114, PIN_OUTPUT | MUX_MODE4) /* cam_fld = gpio_98 */
387			OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d0 */
388			OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d1 */
389			OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d2 */
390			OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d3 */
391			OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d4 */
392			OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d5 */
393			OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d6 */
394			OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d7 */
395			OMAP3_CORE1_IOPAD(0x2126, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d8 */
396			OMAP3_CORE1_IOPAD(0x2128, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d9 */
397			OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d10 */
398			OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d10 */
399			OMAP3_CORE1_IOPAD(0x212e, PIN_OUTPUT | MUX_MODE0) /* cam_xclkb */
400			OMAP3_CORE1_IOPAD(0x2130, PIN_OUTPUT | MUX_MODE4) /* cam_wen = gpio_167 */
401			OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLDOWN | MUX_MODE4) /* cam_strobe */
402		>;
403	};
404
405	mcbsp1_pins: pinmux_mcbsp1_pins {
406		pinctrl-single,pins = <
407			OMAP3_CORE1_IOPAD(0x218c, PIN_INPUT | MUX_MODE4)	/* mcbsp1_clkr.mcbsp1_clkr - gpio_156 FM interrupt */
408			OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE0)	/* mcbsp1_clkr.mcbsp1_fsr */
409			OMAP3_CORE1_IOPAD(0x2190, PIN_OUTPUT | MUX_MODE0)	/* mcbsp1_dx.mcbsp1_dx */
410			OMAP3_CORE1_IOPAD(0x2192, PIN_INPUT | MUX_MODE0)	/* mcbsp1_dx.mcbsp1_dr */
411			/* mcbsp_clks is used as PENIRQ */
412			/* OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT | MUX_MODE0)	   mcbsp_clks.mcbsp_clks */
413			OMAP3_CORE1_IOPAD(0x2196, PIN_INPUT | MUX_MODE0)	/* mcbsp_clks.mcbsp1_fsx */
414			OMAP3_CORE1_IOPAD(0x2198, PIN_INPUT | MUX_MODE0)	/* mcbsp1_clkx.mcbsp1_clkx */
415		>;
416	};
417
418	mcbsp2_pins: pinmux_mcbsp2_pins {
419		pinctrl-single,pins = <
420			OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)	/* mcbsp2_fsx.mcbsp2_fsx */
421			OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)	/* mcbsp2_fsx.mcbsp2_clkx */
422			OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)	/* mcbsp2_dr.mcbsp2_dr */
423			OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)	/* mcbsp2_dr.mcbsp2_dx */
424		>;
425	};
426
427	mcbsp3_pins: pinmux_mcbsp3_pins {
428		pinctrl-single,pins = <
429			OMAP3_CORE1_IOPAD(0x216c, PIN_OUTPUT | MUX_MODE0)	/* mcbsp3_dx.mcbsp3_dx */
430			OMAP3_CORE1_IOPAD(0x216e, PIN_INPUT | MUX_MODE0)	/* mcbsp3_dx.mcbsp3_dr */
431			OMAP3_CORE1_IOPAD(0x2170, PIN_INPUT | MUX_MODE0)	/* mcbsp3_clkx.mcbsp3_clkx */
432			OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE0)	/* mcbsp3_clkx.mcbsp3_fsx */
433		>;
434	};
435
436	mcbsp4_pins: pinmux_mcbsp4_pins {
437		pinctrl-single,pins = <
438			OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_clkx.mcbsp4_clkx */
439			OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_clkx.mcbsp4_dr */
440			OMAP3_CORE1_IOPAD(0x218a, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_dx.mcbsp4_fsx */
441		>;
442	};
443};
444
445&omap3_pmx_core2 {
446	pinctrl-names = "default";
447	pinctrl-0 = <
448			&hsusb2_2_pins
449	>;
450
451	hsusb2_2_pins: pinmux_hsusb2_2_pins {
452		pinctrl-single,pins = <
453			OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3)		/* etk_d10.hsusb2_clk */
454			OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3)		/* etk_d11.hsusb2_stp */
455			OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d12.hsusb2_dir */
456			OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d13.hsusb2_nxt */
457			OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d14.hsusb2_data0 */
458			OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d15.hsusb2_data1 */
459		>;
460	};
461
462	spi_gpio_pins: spi_gpio_pinmux {
463		pinctrl-single,pins = <
464			OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */
465			OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */
466			OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */
467			OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */
468		>;
469	};
470};
471
472&i2c1 {
473	clock-frequency = <2600000>;
474
475	twl: twl@48 {
476		reg = <0x48>;
477		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
478		interrupt-parent = <&intc>;
479
480		clocks = <&hfclk_26m>;
481		clock-names = "fck";
482
483		twl_audio: audio {
484			compatible = "ti,twl4030-audio";
485			ti,enable-vibra = <1>;
486			codec {
487				ti,ramp_delay_value = <3>;
488			};
489		};
490
491		twl_power: power {
492			compatible = "ti,twl4030-power";
493			ti,use_poweroff;
494		};
495	};
496};
497
498#include "twl4030.dtsi"
499#include "twl4030_omap3.dtsi"
500
501&i2c2 {
502	clock-frequency = <400000>;
503
504	/* pressure sensor */
505	bmp085@77 {
506		compatible = "bosch,bmp085";
507		reg = <0x77>;
508		pinctrl-names = "default";
509		pinctrl-0 = <&bmp085_pins>;
510		interrupt-parent = <&gpio4>;
511		interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */
512	};
513
514	/* accelerometer */
515	bma180@41 {
516		compatible = "bosch,bma180";
517		reg = <0x41>;
518		pinctrl-names = "default";
519		pintcrl-0 = <&bma180_pins>;
520		interrupt-parent = <&gpio4>;
521		interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
522	};
523
524	/* gyroscope */
525	itg3200@68 {
526		compatible = "invensense,itg3200";
527		reg = <0x68>;
528		pinctrl-names = "default";
529		pinctrl-0 = <&itg3200_pins>;
530		interrupt-parent = <&gpio2>;
531		interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
532	};
533
534	/* leds + gpios */
535	tca6507: tca6507@45 {
536		compatible = "ti,tca6507";
537		#address-cells = <1>;
538		#size-cells = <0>;
539		reg = <0x45>;
540
541		gpio-controller;
542		#gpio-cells = <2>;
543
544		gta04_led0: red_aux@0 {
545			label = "gta04:red:aux";
546			reg = <0x0>;
547		};
548
549		gta04_led1: green_aux@1 {
550			label = "gta04:green:aux";
551			reg = <0x1>;
552		};
553
554		gta04_led3: red_power@3 {
555			label = "gta04:red:power";
556			reg = <0x3>;
557			linux,default-trigger = "default-on";
558		};
559
560		gta04_led4: green_power@4 {
561			label = "gta04:green:power";
562			reg = <0x4>;
563		};
564
565		wifi_reset: wifi_reset@6 { /* reference as <&tca_gpios 0 0> since it is currently the only GPIO */
566			reg = <0x6>;
567			compatible = "gpio";
568		};
569	};
570
571	/* compass aka magnetometer */
572	hmc5843@1e {
573		compatible = "honeywell,hmc5883l";
574		reg = <0x1e>;
575		pinctrl-names = "default";
576		pinctrl-0 = <&hmc5843_pins>;
577		interrupt-parent = <&gpio4>;
578		interrupts = <16 IRQ_TYPE_EDGE_FALLING>;	/* gpio112 */
579	};
580
581	/* touchscreen */
582	tsc2007@48 {
583		compatible = "ti,tsc2007";
584		reg = <0x48>;
585		pinctrl-names = "default";
586		pinctrl-0 = <&penirq_pins>;
587		interrupt-parent = <&gpio6>;
588		interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
589		gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;	/* GPIO_160 */
590		ti,x-plate-ohms = <600>;
591		touchscreen-size-x = <480>;
592		touchscreen-size-y = <640>;
593		touchscreen-max-pressure = <1000>;
594		touchscreen-fuzz-x = <3>;
595		touchscreen-fuzz-y = <8>;
596		touchscreen-fuzz-pressure = <10>;
597		touchscreen-inverted-y;
598	};
599
600	/* RFID EEPROM */
601	m24lr64@50 {
602		compatible = "atmel,24c64";
603		reg = <0x50>;
604	};
605};
606
607&i2c3 {
608	clock-frequency = <100000>;
609};
610
611&usb_otg_hs {
612	interface-type = <0>;
613	usb-phy = <&usb2_phy>;
614	phys = <&usb2_phy>;
615	phy-names = "usb2-phy";
616	mode = <3>;
617	power = <50>;
618};
619
620&usbhshost {
621	port2-mode = "ehci-phy";
622};
623
624&usbhsehci {
625	phys = <0 &hsusb2_phy>;
626};
627
628&mmc1 {
629	pinctrl-names = "default";
630	pinctrl-0 = <&mmc1_pins>;
631	vmmc-supply = <&vmmc1>;
632	bus-width = <4>;
633	ti,non-removable;
634	broken-cd;	/* hardware has no CD */
635};
636
637&mmc2 {
638	vmmc-supply = <&vaux4>;
639	bus-width = <4>;
640	ti,non-removable;
641	cap-power-off-card;
642	mmc-pwrseq = <&wifi_pwrseq>;
643};
644
645&mmc3 {
646	status = "disabled";
647};
648
649#define BIT(x) (1 << (x))
650&twl_gpio {
651	/* pullups: BIT(2) */
652	ti,pullups = <BIT(2)>;
653	/*
654	 * pulldowns:
655	 * BIT(0),  BIT(1), BIT(6), BIT(7), BIT(8), BIT(13)
656	 * BIT(15), BIT(16), BIT(17)
657	 */
658	ti,pulldowns = <(BIT(0) | BIT(1) | BIT(6) | BIT(7) | BIT(8) |
659			 BIT(13) | BIT(15) | BIT(16) | BIT(17))>;
660};
661
662&twl_keypad {
663	status = "disabled";
664};
665
666&gpio1 {
667	pinctrl-names = "default";
668	pinctrl-0 = <&gpio1_pins>;
669};
670
671&uart1 {
672	pinctrl-names = "default";
673	pinctrl-0 = <&uart1_pins>;
674};
675
676&uart2 {
677	pinctrl-names = "default";
678	pinctrl-0 = <&uart2_pins>;
679	gnss: gnss {
680		compatible = "wi2wi,w2sg0004";
681		pinctrl-names = "default";
682		pinctrl-0 = <&gps_pins>;
683		sirf,onoff-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
684		lna-supply = <&vsim>;
685		vcc-supply = <&ldo_3v3>;
686	};
687};
688
689&uart3 {
690	pinctrl-names = "default";
691	pinctrl-0 = <&uart3_pins>;
692	interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
693};
694
695&charger {
696	ti,bb-uvolt = <3200000>;
697	ti,bb-uamp = <150>;
698};
699
700/* spare */
701&vaux1 {
702	regulator-min-microvolt = <2500000>;
703	regulator-max-microvolt = <3000000>;
704};
705
706/* sensors */
707&vaux2 {
708	regulator-min-microvolt = <2800000>;
709	regulator-max-microvolt = <2800000>;
710	regulator-always-on;	/* we should never switch off while vio is on! */
711};
712
713/* camera */
714&vaux3 {
715	regulator-min-microvolt = <2500000>;
716	regulator-max-microvolt = <2500000>;
717};
718
719/* WLAN/BT */
720&vaux4 {
721	regulator-min-microvolt = <2800000>;
722	regulator-max-microvolt = <3150000>;
723};
724
725/* GPS LNA */
726&vsim {
727	regulator-min-microvolt = <2800000>;
728	regulator-max-microvolt = <3150000>;
729};
730
731/* Needed to power the DPI pins */
732
733&vpll2 {
734	regulator-always-on;
735};
736
737&dss {
738	pinctrl-names = "default";
739	pinctrl-0 = < &dss_dpi_pins >;
740
741	status = "okay";
742	vdds_dsi-supply = <&vpll2>;
743
744	port {
745		dpi_out: endpoint {
746			remote-endpoint = <&lcd_in>;
747			data-lines = <24>;
748		};
749	};
750};
751
752&venc {
753	status = "okay";
754
755	vdda-supply = <&vdac>;
756
757	port {
758		venc_out: endpoint {
759			remote-endpoint = <&opa_in>;
760			ti,channels = <1>;
761			ti,invert-polarity;
762		};
763	};
764};
765
766&gpmc {
767	ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
768
769	nand@0,0 {
770		compatible = "ti,omap2-nand";
771		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
772		interrupt-parent = <&gpmc>;
773		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
774			     <1 IRQ_TYPE_NONE>;	/* termcount */
775		ti,nand-ecc-opt = "ham1";
776		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
777		nand-bus-width = <16>;
778		#address-cells = <1>;
779		#size-cells = <1>;
780
781		gpmc,device-width = <2>;
782		gpmc,cs-on-ns = <0>;
783		gpmc,cs-rd-off-ns = <44>;
784		gpmc,cs-wr-off-ns = <44>;
785		gpmc,adv-on-ns = <6>;
786		gpmc,adv-rd-off-ns = <34>;
787		gpmc,adv-wr-off-ns = <44>;
788		gpmc,oe-off-ns = <54>;
789		gpmc,we-off-ns = <40>;
790		gpmc,access-ns = <64>;
791		gpmc,rd-cycle-ns = <82>;
792		gpmc,wr-cycle-ns = <82>;
793		gpmc,wr-access-ns = <40>;
794		gpmc,wr-data-mux-bus-ns = <0>;
795		gpmc,sync-clk-ps = <0>;
796
797		x-loader@0 {
798			label = "X-Loader";
799			reg = <0 0x80000>;
800		};
801
802		bootloaders@80000 {
803			label = "U-Boot";
804			reg = <0x80000 0x1c0000>;
805		};
806
807		bootloaders_env@240000 {
808			label = "U-Boot Env";
809			reg = <0x240000 0x40000>;
810		};
811
812		kernel@280000 {
813			label = "Kernel";
814			reg = <0x280000 0x600000>;
815		};
816
817		filesystem@880000 {
818			label = "File System";
819			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
820		};
821	};
822};
823
824&mcbsp1 { /* FM Transceiver PCM */
825	status = "ok";
826	#sound-dai-cells = <0>;
827	pinctrl-names = "default";
828	pinctrl-0 = <&mcbsp1_pins>;
829};
830
831&mcbsp2 { /* TPS65950 I2S */
832	status = "ok";
833	pinctrl-names = "default";
834	pinctrl-0 = <&mcbsp2_pins>;
835};
836
837&mcbsp3 { /* Bluetooth PCM */
838	status = "ok";
839	#sound-dai-cells = <0>;
840	pinctrl-names = "default";
841	pinctrl-0 = <&mcbsp3_pins>;
842};
843
844&mcbsp4 { /* GSM voice PCM */
845	status = "ok";
846	#sound-dai-cells = <0>;
847	pinctrl-names = "default";
848	pinctrl-0 = <&mcbsp4_pins>;
849};
850
851&hdqw1w {
852        pinctrl-names = "default";
853        pinctrl-0 = <&hdq_pins>;
854};
855
856/* image signal processor within OMAP3 SoC */
857&isp {
858	ports {
859		port@0 {
860			reg = <0>;
861			parallel_ep: endpoint {
862				ti,isp-clock-divisor = <1>;
863				ti,strobe-mode;
864				bus-width = <8>;/* Used data lines */
865				data-shift = <2>; /* Lines 9:2 are used */
866				hsync-active = <0>; /* Active low */
867				vsync-active = <1>; /* Active high */
868				data-active = <1>;/* Active high */
869				pclk-sample = <1>;/* Falling */
870			};
871		};
872		/* port@1 and port@2 are not used by GTA04 */
873	};
874};