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 = "goldelico,gta04", "ti,omap3630", "ti,omap36xx", "ti,omap3"; 15 cpus { 16 cpu@0 { 17 cpu0-supply = <&vcc>; 18 }; 19 }; 20 21 memory@80000000 { 22 device_type = "memory"; 23 reg = <0x80000000 0x20000000>; /* 512 MB */ 24 }; 25 26 chosen { 27 stdout-path = &uart3; 28 }; 29 30 aliases { 31 display0 = &lcd; 32 display1 = &tv0; 33 /delete-property/ mmc2; 34 /delete-property/ mmc3; 35 }; 36 37 ldo_3v3: fixedregulator { 38 compatible = "regulator-fixed"; 39 regulator-name = "ldo_3v3"; 40 regulator-min-microvolt = <3300000>; 41 regulator-max-microvolt = <3300000>; 42 regulator-always-on; 43 }; 44 45 /* fixed 26MHz oscillator */ 46 hfclk_26m: oscillator { 47 #clock-cells = <0>; 48 compatible = "fixed-clock"; 49 clock-frequency = <26000000>; 50 }; 51 52 gpio-keys { 53 compatible = "gpio-keys"; 54 55 aux-button { 56 label = "aux"; 57 linux,code = <KEY_PHONE>; 58 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 59 wakeup-source; 60 }; 61 }; 62 63 antenna-detect { 64 compatible = "gpio-keys"; 65 66 gps_antenna_button: gps-antenna-button { 67 label = "GPS_EXT_ANT"; 68 linux,input-type = <EV_SW>; 69 linux,code = <SW_LINEIN_INSERT>; 70 gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* GPIO144 */ 71 interrupt-parent = <&gpio5>; 72 interrupts = <16 IRQ_TYPE_EDGE_BOTH>; 73 debounce-interval = <10>; 74 wakeup-source; 75 }; 76 }; 77 78 sound { 79 compatible = "ti,omap-twl4030"; 80 ti,model = "gta04"; 81 82 ti,mcbsp = <&mcbsp2>; 83 }; 84 85 /* GSM audio */ 86 sound_telephony { 87 compatible = "simple-audio-card"; 88 simple-audio-card,name = "GTA04 voice"; 89 simple-audio-card,bitclock-master = <&telephony_link_master>; 90 simple-audio-card,frame-master = <&telephony_link_master>; 91 simple-audio-card,format = "i2s"; 92 simple-audio-card,bitclock-inversion; 93 simple-audio-card,frame-inversion; 94 simple-audio-card,cpu { 95 sound-dai = <&mcbsp4>; 96 }; 97 98 telephony_link_master: simple-audio-card,codec { 99 sound-dai = <>m601_codec>; 100 }; 101 }; 102 103 gtm601_codec: gsm_codec { 104 compatible = "option,gtm601"; 105 #sound-dai-cells = <0>; 106 }; 107 108 spi_lcd: spi { 109 compatible = "spi-gpio"; 110 #address-cells = <0x1>; 111 #size-cells = <0x0>; 112 pinctrl-names = "default"; 113 pinctrl-0 = <&spi_gpio_pins>; 114 115 sck-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; 116 miso-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>; 117 mosi-gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>; 118 cs-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 119 num-chipselects = <1>; 120 121 /* lcd panel */ 122 lcd: td028ttec1@0 { 123 compatible = "tpo,td028ttec1"; 124 reg = <0>; 125 spi-max-frequency = <100000>; 126 spi-cpol; 127 spi-cpha; 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: pwm-11 { 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-pins { 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@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: 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@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: 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: 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: 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: 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: 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: 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: 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-pinmux-pins { 298 pinctrl-single,pins = < 299 OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3) /* gpt11/gpio57 */ 300 >; 301 }; 302 303 dss_dpi_pins: 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: 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: bmp085-pins { 349 pinctrl-single,pins = < 350 OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio113 */ 351 >; 352 }; 353 354 bma180_pins: bma180-pins { 355 pinctrl-single,pins = < 356 OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */ 357 >; 358 }; 359 360 itg3200_pins: itg3200-pins { 361 pinctrl-single,pins = < 362 OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */ 363 >; 364 }; 365 366 hmc5843_pins: hmc5843-pins { 367 pinctrl-single,pins = < 368 OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */ 369 >; 370 }; 371 372 penirq_pins: 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: 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: 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: 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: 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: 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 &mcspi3hog_pins 450 >; 451 452 hsusb2_2_pins: 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 mcspi3hog_pins: mcspi3hog-pins { 464 pinctrl-single,pins = < 465 OMAP3630_CORE2_IOPAD(0x25dc, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* etk_d0 */ 466 OMAP3630_CORE2_IOPAD(0x25de, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* etk_d1 */ 467 OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* etk_d2 */ 468 OMAP3630_CORE2_IOPAD(0x25e2, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* etk_d3 */ 469 >; 470 }; 471 472 spi_gpio_pins: spi-gpio-pinmux-pins { 473 pinctrl-single,pins = < 474 OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */ 475 OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */ 476 OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */ 477 OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */ 478 >; 479 }; 480}; 481 482&i2c1 { 483 clock-frequency = <2600000>; 484 485 twl: twl@48 { 486 reg = <0x48>; 487 interrupts = <7>; /* SYS_NIRQ cascaded to intc */ 488 interrupt-parent = <&intc>; 489 490 clocks = <&hfclk_26m>; 491 clock-names = "fck"; 492 493 twl_audio: audio { 494 compatible = "ti,twl4030-audio"; 495 ti,enable-vibra = <1>; 496 codec { 497 ti,ramp_delay_value = <3>; 498 }; 499 }; 500 501 twl_power: power { 502 compatible = "ti,twl4030-power-idle"; 503 ti,system-power-controller; 504 }; 505 }; 506}; 507 508#include "twl4030.dtsi" 509#include "twl4030_omap3.dtsi" 510 511&i2c2 { 512 clock-frequency = <400000>; 513 514 /* pressure sensor */ 515 bmp085@77 { 516 compatible = "bosch,bmp085"; 517 reg = <0x77>; 518 pinctrl-names = "default"; 519 pinctrl-0 = <&bmp085_pins>; 520 interrupt-parent = <&gpio4>; 521 interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */ 522 vdda-supply = <&vio>; 523 vddd-supply = <&vio>; 524 }; 525 526 /* accelerometer */ 527 bma180@41 { 528 compatible = "bosch,bma180"; 529 reg = <0x41>; 530 pinctrl-names = "default"; 531 pinctrl-0 = <&bma180_pins>; 532 interrupt-parent = <&gpio4>; 533 interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */ 534 }; 535 536 /* gyroscope */ 537 itg3200@68 { 538 compatible = "invensense,itg3200"; 539 reg = <0x68>; 540 pinctrl-names = "default"; 541 pinctrl-0 = <&itg3200_pins>; 542 interrupt-parent = <&gpio2>; 543 interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */ 544 }; 545 546 /* leds + gpios */ 547 tca6507: tca6507@45 { 548 compatible = "ti,tca6507"; 549 #address-cells = <1>; 550 #size-cells = <0>; 551 reg = <0x45>; 552 553 gpio-controller; 554 #gpio-cells = <2>; 555 556 gta04_led0: led@0 { 557 label = "gta04:red:aux"; 558 reg = <0x0>; 559 }; 560 561 gta04_led1: led@1 { 562 label = "gta04:green:aux"; 563 reg = <0x1>; 564 }; 565 566 gta04_led3: led@3 { 567 label = "gta04:red:power"; 568 reg = <0x3>; 569 linux,default-trigger = "default-on"; 570 }; 571 572 gta04_led4: led@4 { 573 label = "gta04:green:power"; 574 reg = <0x4>; 575 }; 576 577 wifi_reset: led@6 { 578 /* reference as <&tca_gpios 0 0> since it is currently the only GPIO */ 579 reg = <0x6>; 580 compatible = "gpio"; 581 }; 582 }; 583 584 /* compass aka magnetometer */ 585 hmc5843@1e { 586 compatible = "honeywell,hmc5883l"; 587 reg = <0x1e>; 588 pinctrl-names = "default"; 589 pinctrl-0 = <&hmc5843_pins>; 590 interrupt-parent = <&gpio4>; 591 interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* gpio112 */ 592 }; 593 594 /* touchscreen */ 595 tsc2007@48 { 596 compatible = "ti,tsc2007"; 597 reg = <0x48>; 598 pinctrl-names = "default"; 599 pinctrl-0 = <&penirq_pins>; 600 interrupt-parent = <&gpio6>; 601 interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */ 602 gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* GPIO_160 */ 603 ti,x-plate-ohms = <600>; 604 touchscreen-size-x = <480>; 605 touchscreen-size-y = <640>; 606 touchscreen-max-pressure = <1000>; 607 touchscreen-fuzz-x = <3>; 608 touchscreen-fuzz-y = <8>; 609 touchscreen-fuzz-pressure = <10>; 610 touchscreen-inverted-y; 611 }; 612 613 /* RFID EEPROM */ 614 m24lr64@50 { 615 compatible = "atmel,24c64"; 616 reg = <0x50>; 617 }; 618}; 619 620&i2c3 { 621 clock-frequency = <100000>; 622}; 623 624&mcspi1 { 625 status = "disabled"; 626}; 627 628&mcspi2 { 629 status = "disabled"; 630}; 631 632&mcspi3 { 633 status = "disabled"; 634}; 635 636&mcspi4 { 637 status = "disabled"; 638}; 639 640&usb_otg_hs { 641 interface-type = <0>; 642 usb-phy = <&usb2_phy>; 643 phys = <&usb2_phy>; 644 phy-names = "usb2-phy"; 645 mode = <3>; 646 power = <50>; 647}; 648 649&usbhshost { 650 port2-mode = "ehci-phy"; 651}; 652 653&usbhsehci { 654 phys = <0 &hsusb2_phy>; 655}; 656 657&mmc1 { 658 pinctrl-names = "default"; 659 pinctrl-0 = <&mmc1_pins>; 660 vmmc-supply = <&vmmc1>; 661 bus-width = <4>; 662 ti,non-removable; 663 broken-cd; /* hardware has no CD */ 664}; 665 666&mmc2 { 667 vmmc-supply = <&vaux4>; 668 bus-width = <4>; 669 ti,non-removable; 670 cap-power-off-card; 671 mmc-pwrseq = <&wifi_pwrseq>; 672}; 673 674&mmc3 { 675 status = "disabled"; 676}; 677 678#define BIT(x) (1 << (x)) 679&twl_gpio { 680 /* pullups: BIT(2) */ 681 ti,pullups = <BIT(2)>; 682 /* 683 * pulldowns: 684 * BIT(0), BIT(1), BIT(6), BIT(7), BIT(8), BIT(13) 685 * BIT(15), BIT(16), BIT(17) 686 */ 687 ti,pulldowns = <(BIT(0) | BIT(1) | BIT(6) | BIT(7) | BIT(8) | 688 BIT(13) | BIT(15) | BIT(16) | BIT(17))>; 689}; 690 691&twl_keypad { 692 status = "disabled"; 693}; 694 695&gpio1 { 696 pinctrl-names = "default"; 697 pinctrl-0 = <&gpio1_pins>; 698}; 699 700&uart1 { 701 pinctrl-names = "default"; 702 pinctrl-0 = <&uart1_pins>; 703}; 704 705&uart2 { 706 pinctrl-names = "default"; 707 pinctrl-0 = <&uart2_pins>; 708 gnss: gnss { 709 compatible = "wi2wi,w2sg0004"; 710 pinctrl-names = "default"; 711 pinctrl-0 = <&gps_pins>; 712 sirf,onoff-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; 713 lna-supply = <&vsim>; 714 vcc-supply = <&ldo_3v3>; 715 }; 716}; 717 718&uart3 { 719 pinctrl-names = "default"; 720 pinctrl-0 = <&uart3_pins>; 721 interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>; 722}; 723 724&charger { 725 ti,bb-uvolt = <3200000>; 726 ti,bb-uamp = <150>; 727}; 728 729/* spare */ 730&vaux1 { 731 regulator-min-microvolt = <2500000>; 732 regulator-max-microvolt = <3000000>; 733}; 734 735/* sensors */ 736&vaux2 { 737 regulator-min-microvolt = <2800000>; 738 regulator-max-microvolt = <2800000>; 739 regulator-always-on; /* we should never switch off while vio is on! */ 740}; 741 742/* camera */ 743&vaux3 { 744 regulator-min-microvolt = <2500000>; 745 regulator-max-microvolt = <2500000>; 746}; 747 748/* WLAN/BT */ 749&vaux4 { 750 regulator-min-microvolt = <2800000>; 751 regulator-max-microvolt = <3150000>; 752}; 753 754/* GPS LNA */ 755&vsim { 756 regulator-min-microvolt = <2800000>; 757 regulator-max-microvolt = <3150000>; 758}; 759 760/* Needed to power the DPI pins */ 761 762&vpll2 { 763 regulator-always-on; 764}; 765 766&dss { 767 pinctrl-names = "default"; 768 pinctrl-0 = < &dss_dpi_pins >; 769 770 status = "okay"; 771 vdds_dsi-supply = <&vpll2>; 772 773 port { 774 dpi_out: endpoint { 775 remote-endpoint = <&lcd_in>; 776 data-lines = <24>; 777 }; 778 }; 779}; 780 781&venc { 782 status = "okay"; 783 784 vdda-supply = <&vdac>; 785 786 port { 787 venc_out: endpoint { 788 remote-endpoint = <&opa_in>; 789 ti,channels = <1>; 790 ti,invert-polarity; 791 }; 792 }; 793}; 794 795&gpmc { 796 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ 797 798 nand@0,0 { 799 compatible = "ti,omap2-nand"; 800 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ 801 interrupt-parent = <&gpmc>; 802 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ 803 <1 IRQ_TYPE_NONE>; /* termcount */ 804 ti,nand-ecc-opt = "ham1"; 805 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */ 806 nand-bus-width = <16>; 807 #address-cells = <1>; 808 #size-cells = <1>; 809 810 gpmc,device-width = <2>; 811 gpmc,cs-on-ns = <0>; 812 gpmc,cs-rd-off-ns = <44>; 813 gpmc,cs-wr-off-ns = <44>; 814 gpmc,adv-on-ns = <6>; 815 gpmc,adv-rd-off-ns = <34>; 816 gpmc,adv-wr-off-ns = <44>; 817 gpmc,oe-off-ns = <54>; 818 gpmc,we-off-ns = <40>; 819 gpmc,access-ns = <64>; 820 gpmc,rd-cycle-ns = <82>; 821 gpmc,wr-cycle-ns = <82>; 822 gpmc,wr-access-ns = <40>; 823 gpmc,wr-data-mux-bus-ns = <0>; 824 gpmc,sync-clk-ps = <0>; 825 826 x-loader@0 { 827 label = "X-Loader"; 828 reg = <0 0x80000>; 829 }; 830 831 bootloaders@80000 { 832 label = "U-Boot"; 833 reg = <0x80000 0x1c0000>; 834 }; 835 836 bootloaders_env@240000 { 837 label = "U-Boot Env"; 838 reg = <0x240000 0x40000>; 839 }; 840 841 kernel@280000 { 842 label = "Kernel"; 843 reg = <0x280000 0x600000>; 844 }; 845 846 filesystem@880000 { 847 label = "File System"; 848 reg = <0x880000 0>; /* 0 = MTDPART_SIZ_FULL */ 849 }; 850 }; 851}; 852 853&mcbsp1 { /* FM Transceiver PCM */ 854 status = "okay"; 855 #sound-dai-cells = <0>; 856 pinctrl-names = "default"; 857 pinctrl-0 = <&mcbsp1_pins>; 858}; 859 860&mcbsp2 { /* TPS65950 I2S */ 861 status = "okay"; 862 pinctrl-names = "default"; 863 pinctrl-0 = <&mcbsp2_pins>; 864}; 865 866&mcbsp3 { /* Bluetooth PCM */ 867 status = "okay"; 868 #sound-dai-cells = <0>; 869 pinctrl-names = "default"; 870 pinctrl-0 = <&mcbsp3_pins>; 871}; 872 873&mcbsp4 { /* GSM voice PCM */ 874 status = "okay"; 875 #sound-dai-cells = <0>; 876 pinctrl-names = "default"; 877 pinctrl-0 = <&mcbsp4_pins>; 878}; 879 880&hdqw1w { 881 pinctrl-names = "default"; 882 pinctrl-0 = <&hdq_pins>; 883}; 884 885/* image signal processor within OMAP3 SoC */ 886&isp { 887 ports { 888 port@0 { 889 reg = <0>; 890 parallel_ep: endpoint { 891 ti,isp-clock-divisor = <1>; 892 ti,strobe-mode; 893 bus-width = <8>;/* Used data lines */ 894 data-shift = <2>; /* Lines 9:2 are used */ 895 hsync-active = <0>; /* Active low */ 896 vsync-active = <1>; /* Active high */ 897 data-active = <1>;/* Active high */ 898 pclk-sample = <1>;/* Falling */ 899 }; 900 }; 901 /* port@1 and port@2 are not used by GTA04 */ 902 }; 903}; 904