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