2 * Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
4 * Based on omap3-beagle-xm.dts
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.
12 #include "omap36xx.dtsi"
15 model = "OMAP3 GTA04";
16 compatible = "ti,omap3-gta04", "ti,omap36xx", "ti,omap3";
25 device_type = "memory";
26 reg = <0x80000000 0x20000000>; /* 512 MB */
34 /* fixed 26MHz oscillator */
35 hfclk_26m: oscillator {
37 compatible = "fixed-clock";
38 clock-frequency = <26000000>;
42 compatible = "gpio-keys";
47 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
53 compatible = "ti,omap-twl4030";
61 compatible = "simple-audio-card";
62 simple-audio-card,name = "GTA04 voice";
63 simple-audio-card,bitclock-master = <&telephony_link_master>;
64 simple-audio-card,frame-master = <&telephony_link_master>;
65 simple-audio-card,format = "i2s";
66 simple-audio-card,bitclock-inversion;
67 simple-audio-card,frame-inversion;
68 simple-audio-card,cpu {
69 sound-dai = <&mcbsp4>;
72 telephony_link_master: simple-audio-card,codec {
73 sound-dai = <>m601_codec>;
77 gtm601_codec: gsm_codec {
78 compatible = "option,gtm601";
79 #sound-dai-cells = <0>;
83 compatible = "spi-gpio";
84 #address-cells = <0x1>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&spi_gpio_pins>;
89 gpio-sck = <&gpio1 12 GPIO_ACTIVE_HIGH>;
90 gpio-miso = <&gpio1 18 GPIO_ACTIVE_HIGH>;
91 gpio-mosi = <&gpio1 20 GPIO_ACTIVE_HIGH>;
92 cs-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
93 num-chipselects = <1>;
97 compatible = "tpo,td028ttec1";
99 spi-max-frequency = <100000>;
106 remote-endpoint = <&dpi_out>;
113 compatible = "pwm-backlight";
114 pwms = <&pwm11 0 12000000 0>;
115 pwm-names = "backlight";
116 brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>;
117 default-brightness-level = <9>; /* => 90 */
118 pinctrl-names = "default";
119 pinctrl-0 = <&backlight_pins>;
123 compatible = "ti,omap-dmtimer-pwm";
124 ti,timers = <&timer11>;
128 hsusb2_phy: hsusb2_phy {
129 compatible = "usb-nop-xceiv";
130 reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
135 compatible = "composite-video-connector";
139 tv_connector_in: endpoint {
140 remote-endpoint = <&opa_out>;
146 compatible = "ti,opa362";
147 enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; /* GPIO_23 to enable video out amplifier */
150 #address-cells = <1>;
156 remote-endpoint = <&venc_out>;
163 remote-endpoint = <&tv_connector_in>;
169 wifi_pwrseq: wifi_pwrseq {
170 compatible = "mmc-pwrseq-simple";
171 reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>; /* W2CBW003 reset through tca6507 */
174 /* devconf1 setup for tvout pins */
175 pinmux_tv_out@480022d8 {
176 compatible = "pinctrl-single";
177 reg = <0x480022d8 4>; /* CONTROL_DEVCONF1 */
178 #address-cells = <1>;
180 pinctrl-single,bit-per-mux;
181 pinctrl-single,register-width = <32>;
182 pinctrl-single,function-mask = <0x81>; /* TV out pin control */
183 #pinctrl-cells = <2>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&tv_acbias_devconf1_pins>;
186 tv_acbias_devconf1_pins: pinmux_tv_acbias_devconf1_pins {
187 /* offset bits mask */
188 pinctrl-single,bits = <0x00 0x40800 0x40800>; /* set TVOUTBYPASS and TVOUTACEN */
194 pinctrl-names = "default";
199 hsusb2_pins: pinmux_hsusb2_pins {
200 pinctrl-single,pins = <
201 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
202 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
203 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
204 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
205 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
206 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
210 uart1_pins: pinmux_uart1_pins {
211 pinctrl-single,pins = <
212 OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
213 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */
217 uart2_pins: pinmux_uart2_pins {
218 pinctrl-single,pins = <
219 OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
220 OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
224 uart3_pins: pinmux_uart3_pins {
225 pinctrl-single,pins = <
226 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */
227 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */
231 mmc1_pins: pinmux_mmc1_pins {
232 pinctrl-single,pins = <
233 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
234 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
235 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
236 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
237 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
238 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
242 backlight_pins: backlight_pins_pinmux {
243 pinctrl-single,pins = <
244 OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3) /* gpt11/gpio57 */
248 dss_dpi_pins: pinmux_dss_dpi_pins {
249 pinctrl-single,pins = <
250 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
251 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
252 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
253 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
254 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
255 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
256 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
257 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
258 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
259 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
260 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
261 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
262 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
263 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
264 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
265 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
266 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
267 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
268 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
269 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
270 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
271 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
272 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
273 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
274 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
275 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
276 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
277 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
282 pinctrl-single,pins = <
283 OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
287 bmp085_pins: pinmux_bmp085_pins {
288 pinctrl-single,pins = <
289 OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio113 */
293 bma180_pins: pinmux_bma180_pins {
294 pinctrl-single,pins = <
295 OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
299 itg3200_pins: pinmux_itg3200_pins {
300 pinctrl-single,pins = <
301 OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
305 hmc5843_pins: pinmux_hmc5843_pins {
306 pinctrl-single,pins = <
307 OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
311 penirq_pins: pinmux_penirq_pins {
312 pinctrl-single,pins = <
313 /* here we could enable to wakeup the cpu from suspend by a pen touch */
314 OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio160 */
320 pinctrl-names = "default";
325 hsusb2_2_pins: pinmux_hsusb2_2_pins {
326 pinctrl-single,pins = <
327 OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
328 OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
329 OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
330 OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
331 OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
332 OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
336 spi_gpio_pins: spi_gpio_pinmux {
337 pinctrl-single,pins = <
338 OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */
339 OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */
340 OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */
341 OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */
347 clock-frequency = <2600000>;
351 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
352 interrupt-parent = <&intc>;
354 clocks = <&hfclk_26m>;
358 compatible = "ti,twl4030-audio";
359 ti,enable-vibra = <1>;
361 ti,ramp_delay_value = <3>;
366 compatible = "ti,twl4030-power";
372 #include "twl4030.dtsi"
373 #include "twl4030_omap3.dtsi"
376 clock-frequency = <400000>;
378 /* pressure sensor */
380 compatible = "bosch,bmp085";
382 pinctrl-names = "default";
383 pinctrl-0 = <&bmp085_pins>;
384 interrupt-parent = <&gpio4>;
385 interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */
390 compatible = "bosch,bma180";
392 pinctrl-names = "default";
393 pintcrl-0 = <&bma180_pins>;
394 interrupt-parent = <&gpio4>;
395 interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
400 compatible = "invensense,itg3200";
402 pinctrl-names = "default";
403 pinctrl-0 = <&itg3200_pins>;
404 interrupt-parent = <&gpio2>;
405 interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
409 tca6507: tca6507@45 {
410 compatible = "ti,tca6507";
411 #address-cells = <1>;
418 gta04_led0: red_aux@0 {
419 label = "gta04:red:aux";
423 gta04_led1: green_aux@1 {
424 label = "gta04:green:aux";
428 gta04_led3: red_power@3 {
429 label = "gta04:red:power";
431 linux,default-trigger = "default-on";
434 gta04_led4: green_power@4 {
435 label = "gta04:green:power";
439 wifi_reset: wifi_reset@6 { /* reference as <&tca_gpios 0 0> since it is currently the only GPIO */
445 /* compass aka magnetometer */
447 compatible = "honeywell,hmc5883l";
449 pinctrl-names = "default";
450 pinctrl-0 = <&hmc5843_pins>;
451 interrupt-parent = <&gpio4>;
452 interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* gpio112 */
457 compatible = "ti,tsc2007";
459 pinctrl-names = "default";
460 pinctrl-0 = <&penirq_pins>;
461 interrupt-parent = <&gpio6>;
462 interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
463 gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* GPIO_160 */
464 ti,x-plate-ohms = <600>;
465 touchscreen-size-x = <480>;
466 touchscreen-size-y = <640>;
467 touchscreen-max-pressure = <1000>;
468 touchscreen-fuzz-x = <3>;
469 touchscreen-fuzz-y = <8>;
470 touchscreen-fuzz-pressure = <10>;
471 touchscreen-inverted-y;
476 compatible = "atmel,24c64";
482 clock-frequency = <100000>;
486 interface-type = <0>;
487 usb-phy = <&usb2_phy>;
489 phy-names = "usb2-phy";
495 port2-mode = "ehci-phy";
499 phys = <0 &hsusb2_phy>;
503 pinctrl-names = "default";
504 pinctrl-0 = <&mmc1_pins>;
505 vmmc-supply = <&vmmc1>;
511 vmmc-supply = <&vaux4>;
515 mmc-pwrseq = <&wifi_pwrseq>;
527 pinctrl-names = "default";
528 pinctrl-0 = <&uart1_pins>;
532 pinctrl-names = "default";
533 pinctrl-0 = <&uart2_pins>;
537 pinctrl-names = "default";
538 pinctrl-0 = <&uart3_pins>;
542 ti,bb-uvolt = <3200000>;
548 regulator-min-microvolt = <2500000>;
549 regulator-max-microvolt = <3000000>;
554 regulator-min-microvolt = <2800000>;
555 regulator-max-microvolt = <2800000>;
556 regulator-always-on; /* we should never switch off while vio is on! */
561 regulator-min-microvolt = <2500000>;
562 regulator-max-microvolt = <2500000>;
567 regulator-min-microvolt = <2800000>;
568 regulator-max-microvolt = <3150000>;
573 regulator-min-microvolt = <2800000>;
574 regulator-max-microvolt = <3150000>;
577 /* Needed to power the DPI pins */
584 pinctrl-names = "default";
585 pinctrl-0 = < &dss_dpi_pins >;
588 vdds_dsi-supply = <&vpll2>;
592 remote-endpoint = <&lcd_in>;
601 vdda-supply = <&vdac>;
603 #address-cells = <1>;
609 remote-endpoint = <&opa_in>;
617 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
620 compatible = "ti,omap2-nand";
621 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
622 interrupt-parent = <&gpmc>;
623 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
624 <1 IRQ_TYPE_NONE>; /* termcount */
625 ti,nand-ecc-opt = "ham1";
626 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
627 nand-bus-width = <16>;
628 #address-cells = <1>;
631 gpmc,device-width = <2>;
633 gpmc,cs-rd-off-ns = <44>;
634 gpmc,cs-wr-off-ns = <44>;
635 gpmc,adv-on-ns = <6>;
636 gpmc,adv-rd-off-ns = <34>;
637 gpmc,adv-wr-off-ns = <44>;
638 gpmc,oe-off-ns = <54>;
639 gpmc,we-off-ns = <40>;
640 gpmc,access-ns = <64>;
641 gpmc,rd-cycle-ns = <82>;
642 gpmc,wr-cycle-ns = <82>;
643 gpmc,wr-access-ns = <40>;
644 gpmc,wr-data-mux-bus-ns = <0>;
645 gpmc,sync-clk-ps = <0>;
654 reg = <0x80000 0x1c0000>;
657 bootloaders_env@240000 {
658 label = "U-Boot Env";
659 reg = <0x240000 0x40000>;
664 reg = <0x280000 0x600000>;
668 label = "File System";
669 reg = <0x880000 0>; /* 0 = MTDPART_SIZ_FULL */
679 pinctrl-names = "default";
680 pinctrl-0 = <&hdq_pins>;