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