Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Marek Belisko <marek@goldelico.com> |
| 3 | * |
| 4 | * Based on omap3-beagle-xm.dts |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | /dts-v1/; |
| 11 | |
| 12 | #include "omap36xx.dtsi" |
| 13 | |
| 14 | / { |
| 15 | model = "OMAP3 GTA04"; |
Marek Belisko | ae41a30 | 2014-03-01 14:58:48 +0100 | [diff] [blame] | 16 | compatible = "ti,omap3-gta04", "ti,omap36xx", "ti,omap3"; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 17 | |
| 18 | cpus { |
| 19 | cpu@0 { |
| 20 | cpu0-supply = <&vcc>; |
| 21 | }; |
| 22 | }; |
| 23 | |
Javier Martinez Canillas | 81777ff | 2016-08-31 12:35:27 +0200 | [diff] [blame] | 24 | memory@80000000 { |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 25 | device_type = "memory"; |
| 26 | reg = <0x80000000 0x20000000>; /* 512 MB */ |
| 27 | }; |
| 28 | |
Marek Belisko | 91b8457 | 2014-07-22 21:30:19 +0200 | [diff] [blame] | 29 | aliases { |
| 30 | display0 = &lcd; |
| 31 | }; |
| 32 | |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 33 | gpio-keys { |
| 34 | compatible = "gpio-keys"; |
| 35 | |
| 36 | aux-button { |
| 37 | label = "aux"; |
| 38 | linux,code = <169>; |
NeilBrown | d8bd673 | 2014-01-25 22:28:55 +0100 | [diff] [blame] | 39 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
Sudeep Holla | 0c4d63b | 2015-10-21 11:10:12 +0100 | [diff] [blame] | 40 | wakeup-source; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 41 | }; |
| 42 | }; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 43 | |
| 44 | sound { |
| 45 | compatible = "ti,omap-twl4030"; |
| 46 | ti,model = "gta04"; |
| 47 | |
| 48 | ti,mcbsp = <&mcbsp2>; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 49 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 50 | |
Marek Belisko | f6ae941 | 2015-05-07 21:35:05 +0200 | [diff] [blame] | 51 | /* GSM audio */ |
| 52 | sound_telephony { |
| 53 | compatible = "simple-audio-card"; |
| 54 | simple-audio-card,name = "GTA04 voice"; |
| 55 | simple-audio-card,bitclock-master = <&telephony_link_master>; |
| 56 | simple-audio-card,frame-master = <&telephony_link_master>; |
| 57 | simple-audio-card,format = "i2s"; |
Andreas Kemnade | 910958b | 2017-04-28 12:27:35 +0200 | [diff] [blame^] | 58 | simple-audio-card,bitclock-inversion; |
| 59 | simple-audio-card,frame-inversion; |
Marek Belisko | f6ae941 | 2015-05-07 21:35:05 +0200 | [diff] [blame] | 60 | simple-audio-card,cpu { |
| 61 | sound-dai = <&mcbsp4>; |
| 62 | }; |
| 63 | |
| 64 | telephony_link_master: simple-audio-card,codec { |
| 65 | sound-dai = <>m601_codec>; |
| 66 | }; |
| 67 | }; |
| 68 | |
| 69 | gtm601_codec: gsm_codec { |
| 70 | compatible = "option,gtm601"; |
| 71 | #sound-dai-cells = <0>; |
| 72 | }; |
| 73 | |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 74 | spi_lcd { |
| 75 | compatible = "spi-gpio"; |
| 76 | #address-cells = <0x1>; |
| 77 | #size-cells = <0x0>; |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&spi_gpio_pins>; |
| 80 | |
Javier Martinez Canillas | 3a637e0 | 2015-10-06 11:03:39 +0200 | [diff] [blame] | 81 | gpio-sck = <&gpio1 12 GPIO_ACTIVE_HIGH>; |
| 82 | gpio-miso = <&gpio1 18 GPIO_ACTIVE_HIGH>; |
| 83 | gpio-mosi = <&gpio1 20 GPIO_ACTIVE_HIGH>; |
| 84 | cs-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 85 | num-chipselects = <1>; |
| 86 | |
| 87 | /* lcd panel */ |
| 88 | lcd: td028ttec1@0 { |
| 89 | compatible = "toppoly,td028ttec1"; |
| 90 | reg = <0>; |
| 91 | spi-max-frequency = <100000>; |
| 92 | spi-cpol; |
| 93 | spi-cpha; |
| 94 | |
| 95 | label = "lcd"; |
| 96 | port { |
| 97 | lcd_in: endpoint { |
| 98 | remote-endpoint = <&dpi_out>; |
| 99 | }; |
| 100 | }; |
| 101 | }; |
| 102 | }; |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 103 | |
Marek Belisko | 28a1b40 | 2016-05-17 21:48:47 +0200 | [diff] [blame] | 104 | backlight { |
| 105 | compatible = "pwm-backlight"; |
H. Nikolaus Schaller | 3868b42 | 2016-09-05 11:16:38 +0200 | [diff] [blame] | 106 | pwms = <&pwm11 0 12000000 0>; |
Marek Belisko | 28a1b40 | 2016-05-17 21:48:47 +0200 | [diff] [blame] | 107 | pwm-names = "backlight"; |
| 108 | brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>; |
| 109 | default-brightness-level = <9>; /* => 90 */ |
| 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&backlight_pins>; |
| 112 | }; |
| 113 | |
Javier Martinez Canillas | 314fdd5 | 2016-06-27 15:20:51 -0400 | [diff] [blame] | 114 | pwm11: dmtimer-pwm { |
Marek Belisko | 28a1b40 | 2016-05-17 21:48:47 +0200 | [diff] [blame] | 115 | compatible = "ti,omap-dmtimer-pwm"; |
| 116 | ti,timers = <&timer11>; |
| 117 | #pwm-cells = <3>; |
| 118 | }; |
| 119 | |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 120 | hsusb2_phy: hsusb2_phy { |
| 121 | compatible = "usb-nop-xceiv"; |
| 122 | reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; |
| 123 | }; |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 124 | |
Javier Martinez Canillas | 314fdd5 | 2016-06-27 15:20:51 -0400 | [diff] [blame] | 125 | tv0: connector { |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 126 | compatible = "svideo-connector"; |
| 127 | label = "tv"; |
| 128 | |
| 129 | port { |
| 130 | tv_connector_in: endpoint { |
| 131 | remote-endpoint = <&opa_out>; |
| 132 | }; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | tv_amp: opa362 { |
| 137 | compatible = "ti,opa362"; |
Javier Martinez Canillas | 3a637e0 | 2015-10-06 11:03:39 +0200 | [diff] [blame] | 138 | enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 139 | |
| 140 | ports { |
| 141 | #address-cells = <1>; |
| 142 | #size-cells = <0>; |
| 143 | |
| 144 | port@0 { |
| 145 | reg = <0>; |
Javier Martinez Canillas | 314fdd5 | 2016-06-27 15:20:51 -0400 | [diff] [blame] | 146 | opa_in: endpoint { |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 147 | remote-endpoint = <&venc_out>; |
| 148 | }; |
| 149 | }; |
| 150 | |
| 151 | port@1 { |
| 152 | reg = <1>; |
Javier Martinez Canillas | 314fdd5 | 2016-06-27 15:20:51 -0400 | [diff] [blame] | 153 | opa_out: endpoint { |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 154 | remote-endpoint = <&tv_connector_in>; |
| 155 | }; |
| 156 | }; |
| 157 | }; |
| 158 | }; |
H. Nikolaus Schaller | c2df98c0 | 2016-05-17 21:48:51 +0200 | [diff] [blame] | 159 | |
| 160 | wifi_pwrseq: wifi_pwrseq { |
| 161 | compatible = "mmc-pwrseq-simple"; |
| 162 | reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>; /* W2CBW003 reset through tca6507 */ |
| 163 | }; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 164 | }; |
| 165 | |
| 166 | &omap3_pmx_core { |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 167 | pinctrl-names = "default"; |
| 168 | pinctrl-0 = < |
| 169 | &hsusb2_pins |
| 170 | >; |
| 171 | |
| 172 | hsusb2_pins: pinmux_hsusb2_pins { |
| 173 | pinctrl-single,pins = < |
| 174 | OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ |
| 175 | OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ |
| 176 | OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ |
| 177 | OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ |
| 178 | OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ |
| 179 | OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ |
| 180 | >; |
| 181 | }; |
| 182 | |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 183 | uart1_pins: pinmux_uart1_pins { |
| 184 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 185 | OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */ |
| 186 | OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */ |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 187 | >; |
| 188 | }; |
| 189 | |
| 190 | uart2_pins: pinmux_uart2_pins { |
| 191 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 192 | OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */ |
| 193 | OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */ |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 194 | >; |
| 195 | }; |
| 196 | |
| 197 | uart3_pins: pinmux_uart3_pins { |
| 198 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 199 | OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */ |
| 200 | OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */ |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 201 | >; |
| 202 | }; |
| 203 | |
| 204 | mmc1_pins: pinmux_mmc1_pins { |
| 205 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 206 | OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ |
| 207 | OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ |
| 208 | OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ |
| 209 | OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ |
| 210 | OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ |
| 211 | OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 212 | >; |
| 213 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 214 | |
Marek Belisko | 28a1b40 | 2016-05-17 21:48:47 +0200 | [diff] [blame] | 215 | backlight_pins: backlight_pins_pimnux { |
| 216 | pinctrl-single,pins = < |
| 217 | OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3) /* gpt11/gpio57 */ |
| 218 | >; |
| 219 | }; |
| 220 | |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 221 | dss_dpi_pins: pinmux_dss_dpi_pins { |
| 222 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 223 | OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */ |
| 224 | OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */ |
| 225 | OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */ |
| 226 | OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */ |
| 227 | OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */ |
| 228 | OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */ |
| 229 | OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */ |
| 230 | OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */ |
| 231 | OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */ |
| 232 | OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */ |
| 233 | OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */ |
| 234 | OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */ |
| 235 | OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */ |
| 236 | OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */ |
| 237 | OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */ |
| 238 | OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */ |
| 239 | OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */ |
| 240 | OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */ |
| 241 | OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */ |
| 242 | OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */ |
| 243 | OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */ |
| 244 | OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */ |
| 245 | OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */ |
| 246 | OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */ |
| 247 | OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */ |
| 248 | OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */ |
| 249 | OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */ |
| 250 | OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */ |
| 251 | >; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 252 | }; |
Marek Belisko | 3221dfb | 2015-04-28 22:54:27 +0200 | [diff] [blame] | 253 | |
| 254 | hdq_pins: hdq_pins { |
| 255 | pinctrl-single,pins = < |
| 256 | OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */ |
| 257 | >; |
| 258 | }; |
H. Nikolaus Schaller | ee32711 | 2016-05-17 21:48:48 +0200 | [diff] [blame] | 259 | |
| 260 | bma180_pins: pinmux_bma180_pins { |
| 261 | pinctrl-single,pins = < |
| 262 | OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */ |
| 263 | >; |
| 264 | }; |
H. Nikolaus Schaller | f6cbf61 | 2016-05-17 21:48:49 +0200 | [diff] [blame] | 265 | |
| 266 | itg3200_pins: pinmux_itg3200_pins { |
| 267 | pinctrl-single,pins = < |
| 268 | OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */ |
| 269 | >; |
| 270 | }; |
H. Nikolaus Schaller | e14927e | 2016-05-17 21:48:50 +0200 | [diff] [blame] | 271 | |
| 272 | hmc5843_pins: pinmux_hmc5843_pins { |
| 273 | pinctrl-single,pins = < |
| 274 | OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */ |
| 275 | >; |
| 276 | }; |
Marek Belisko | 6c402f8 | 2014-07-22 21:30:17 +0200 | [diff] [blame] | 277 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 278 | |
Marek Belisko | 6c402f8 | 2014-07-22 21:30:17 +0200 | [diff] [blame] | 279 | &omap3_pmx_core2 { |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 280 | pinctrl-names = "default"; |
| 281 | pinctrl-0 = < |
| 282 | &hsusb2_2_pins |
| 283 | >; |
| 284 | |
| 285 | hsusb2_2_pins: pinmux_hsusb2_2_pins { |
| 286 | pinctrl-single,pins = < |
| 287 | OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ |
| 288 | OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ |
| 289 | OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ |
| 290 | OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ |
| 291 | OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ |
| 292 | OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ |
| 293 | >; |
| 294 | }; |
| 295 | |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 296 | spi_gpio_pins: spi_gpio_pinmux { |
Marek Belisko | 6c402f8 | 2014-07-22 21:30:17 +0200 | [diff] [blame] | 297 | pinctrl-single,pins = < |
| 298 | OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */ |
| 299 | OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */ |
| 300 | OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */ |
| 301 | OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */ |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 302 | >; |
| 303 | }; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 304 | }; |
| 305 | |
| 306 | &i2c1 { |
| 307 | clock-frequency = <2600000>; |
| 308 | |
| 309 | twl: twl@48 { |
| 310 | reg = <0x48>; |
| 311 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 312 | interrupt-parent = <&intc>; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 313 | |
H. Nikolaus Schaller | 2a88a0b | 2015-01-22 21:38:08 +0100 | [diff] [blame] | 314 | twl_audio: audio { |
| 315 | compatible = "ti,twl4030-audio"; |
H. Nikolaus Schaller | 85f534e | 2015-01-22 21:38:10 +0100 | [diff] [blame] | 316 | ti,enable-vibra = <1>; |
H. Nikolaus Schaller | 2a88a0b | 2015-01-22 21:38:08 +0100 | [diff] [blame] | 317 | codec { |
Marek Belisko | 2a2130c | 2015-01-22 21:38:13 +0100 | [diff] [blame] | 318 | ti,ramp_delay_value = <3>; |
H. Nikolaus Schaller | 2a88a0b | 2015-01-22 21:38:08 +0100 | [diff] [blame] | 319 | }; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 320 | }; |
H. Nikolaus Schaller | 23c0ff5 | 2015-01-22 21:38:12 +0100 | [diff] [blame] | 321 | |
| 322 | twl_power: power { |
| 323 | compatible = "ti,twl4030-power"; |
| 324 | ti,use_poweroff; |
| 325 | }; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 326 | }; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 327 | }; |
| 328 | |
| 329 | #include "twl4030.dtsi" |
| 330 | #include "twl4030_omap3.dtsi" |
| 331 | |
| 332 | &i2c2 { |
| 333 | clock-frequency = <400000>; |
| 334 | |
| 335 | /* pressure sensor */ |
| 336 | bmp085@77 { |
| 337 | compatible = "bosch,bmp085"; |
| 338 | reg = <0x77>; |
Marek Belisko | d26794c | 2013-12-21 16:12:23 +0100 | [diff] [blame] | 339 | interrupt-parent = <&gpio4>; |
NeilBrown | ce9edf5 | 2015-01-22 21:38:14 +0100 | [diff] [blame] | 340 | interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */ |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 341 | }; |
| 342 | |
NeilBrown | 24d0bb8 | 2014-03-01 14:58:54 +0100 | [diff] [blame] | 343 | /* accelerometer */ |
| 344 | bma180@41 { |
| 345 | compatible = "bosch,bma180"; |
| 346 | reg = <0x41>; |
H. Nikolaus Schaller | ee32711 | 2016-05-17 21:48:48 +0200 | [diff] [blame] | 347 | pinctrl-names = "default"; |
| 348 | pintcrl-0 = <&bma180_pins>; |
Marek Belisko | 75fb2c1 | 2015-01-22 21:38:11 +0100 | [diff] [blame] | 349 | interrupt-parent = <&gpio4>; |
NeilBrown | ce9edf5 | 2015-01-22 21:38:14 +0100 | [diff] [blame] | 350 | interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */ |
NeilBrown | 24d0bb8 | 2014-03-01 14:58:54 +0100 | [diff] [blame] | 351 | }; |
| 352 | |
NeilBrown | c4aa13f | 2015-01-22 21:38:16 +0100 | [diff] [blame] | 353 | /* gyroscope */ |
| 354 | itg3200@68 { |
| 355 | compatible = "invensense,itg3200"; |
| 356 | reg = <0x68>; |
H. Nikolaus Schaller | f6cbf61 | 2016-05-17 21:48:49 +0200 | [diff] [blame] | 357 | pinctrl-names = "default"; |
| 358 | pinctrl-0 = <&itg3200_pins>; |
NeilBrown | c4aa13f | 2015-01-22 21:38:16 +0100 | [diff] [blame] | 359 | interrupt-parent = <&gpio2>; |
H. Nikolaus Schaller | f6cbf61 | 2016-05-17 21:48:49 +0200 | [diff] [blame] | 360 | interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */ |
NeilBrown | c4aa13f | 2015-01-22 21:38:16 +0100 | [diff] [blame] | 361 | }; |
| 362 | |
H. Nikolaus Schaller | c2df98c0 | 2016-05-17 21:48:51 +0200 | [diff] [blame] | 363 | /* leds + gpios */ |
| 364 | tca6507: tca6507@45 { |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 365 | compatible = "ti,tca6507"; |
| 366 | #address-cells = <1>; |
| 367 | #size-cells = <0>; |
| 368 | reg = <0x45>; |
| 369 | |
Marek Belisko | e51c6be | 2014-07-22 21:30:16 +0200 | [diff] [blame] | 370 | gpio-controller; |
| 371 | #gpio-cells = <2>; |
| 372 | |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 373 | gta04_led0: red_aux@0 { |
| 374 | label = "gta04:red:aux"; |
| 375 | reg = <0x0>; |
| 376 | }; |
| 377 | |
| 378 | gta04_led1: green_aux@1 { |
| 379 | label = "gta04:green:aux"; |
| 380 | reg = <0x1>; |
| 381 | }; |
| 382 | |
| 383 | gta04_led3: red_power@3 { |
| 384 | label = "gta04:red:power"; |
| 385 | reg = <0x3>; |
| 386 | linux,default-trigger = "default-on"; |
| 387 | }; |
| 388 | |
| 389 | gta04_led4: green_power@4 { |
| 390 | label = "gta04:green:power"; |
| 391 | reg = <0x4>; |
| 392 | }; |
Marek Belisko | e51c6be | 2014-07-22 21:30:16 +0200 | [diff] [blame] | 393 | |
| 394 | wifi_reset: wifi_reset@6 { |
| 395 | reg = <0x6>; |
| 396 | compatible = "gpio"; |
| 397 | }; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 398 | }; |
NeilBrown | 32f2c39 | 2014-03-01 14:58:49 +0100 | [diff] [blame] | 399 | |
| 400 | /* compass aka magnetometer */ |
| 401 | hmc5843@1e { |
Marek Belisko | 9edc57a | 2014-07-22 21:59:08 +0200 | [diff] [blame] | 402 | compatible = "honeywell,hmc5883l"; |
NeilBrown | 32f2c39 | 2014-03-01 14:58:49 +0100 | [diff] [blame] | 403 | reg = <0x1e>; |
H. Nikolaus Schaller | e14927e | 2016-05-17 21:48:50 +0200 | [diff] [blame] | 404 | pinctrl-names = "default"; |
| 405 | pinctrl-0 = <&hmc5843_pins>; |
| 406 | interrupt-parent = <&gpio4>; |
| 407 | interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* gpio112 */ |
NeilBrown | 32f2c39 | 2014-03-01 14:58:49 +0100 | [diff] [blame] | 408 | }; |
Marek Belisko | 9cbc03b | 2014-03-01 14:58:50 +0100 | [diff] [blame] | 409 | |
| 410 | /* touchscreen */ |
| 411 | tsc2007@48 { |
| 412 | compatible = "ti,tsc2007"; |
| 413 | reg = <0x48>; |
| 414 | interrupt-parent = <&gpio6>; |
NeilBrown | ce9edf5 | 2015-01-22 21:38:14 +0100 | [diff] [blame] | 415 | interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */ |
Marek Belisko | 9cbc03b | 2014-03-01 14:58:50 +0100 | [diff] [blame] | 416 | gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; |
| 417 | ti,x-plate-ohms = <600>; |
| 418 | }; |
H. Nikolaus Schaller | 4393dd4 | 2016-06-04 14:05:55 +0200 | [diff] [blame] | 419 | |
| 420 | /* RFID EEPROM */ |
| 421 | m24lr64@50 { |
| 422 | compatible = "at,24c64"; |
| 423 | reg = <0x50>; |
| 424 | }; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 425 | }; |
| 426 | |
| 427 | &i2c3 { |
| 428 | clock-frequency = <100000>; |
| 429 | }; |
| 430 | |
| 431 | &usb_otg_hs { |
| 432 | interface-type = <0>; |
| 433 | usb-phy = <&usb2_phy>; |
Roger Quadros | d2afcf0 | 2013-10-07 16:28:13 +0300 | [diff] [blame] | 434 | phys = <&usb2_phy>; |
| 435 | phy-names = "usb2-phy"; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 436 | mode = <3>; |
| 437 | power = <50>; |
| 438 | }; |
| 439 | |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 440 | &usbhshost { |
| 441 | port2-mode = "ehci-phy"; |
| 442 | }; |
| 443 | |
| 444 | &usbhsehci { |
| 445 | phys = <0 &hsusb2_phy>; |
| 446 | }; |
| 447 | |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 448 | &mmc1 { |
| 449 | pinctrl-names = "default"; |
| 450 | pinctrl-0 = <&mmc1_pins>; |
| 451 | vmmc-supply = <&vmmc1>; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 452 | bus-width = <4>; |
Marek Belisko | 2d6ac29 | 2014-01-25 22:28:57 +0100 | [diff] [blame] | 453 | ti,non-removable; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 454 | }; |
| 455 | |
| 456 | &mmc2 { |
NeilBrown | 5a13ba6 | 2014-03-01 14:58:53 +0100 | [diff] [blame] | 457 | vmmc-supply = <&vaux4>; |
| 458 | bus-width = <4>; |
| 459 | ti,non-removable; |
NeilBrown | e45eebf | 2015-01-22 21:38:15 +0100 | [diff] [blame] | 460 | cap-power-off-card; |
H. Nikolaus Schaller | c2df98c0 | 2016-05-17 21:48:51 +0200 | [diff] [blame] | 461 | mmc-pwrseq = <&wifi_pwrseq>; |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 462 | }; |
| 463 | |
| 464 | &mmc3 { |
| 465 | status = "disabled"; |
| 466 | }; |
| 467 | |
NeilBrown | 1e1e8cb | 2015-01-22 21:38:19 +0100 | [diff] [blame] | 468 | &twl_keypad { |
| 469 | status = "disabled"; |
| 470 | }; |
| 471 | |
Marek Belisko | adfe147 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 472 | &uart1 { |
| 473 | pinctrl-names = "default"; |
| 474 | pinctrl-0 = <&uart1_pins>; |
| 475 | }; |
| 476 | |
| 477 | &uart2 { |
| 478 | pinctrl-names = "default"; |
| 479 | pinctrl-0 = <&uart2_pins>; |
| 480 | }; |
| 481 | |
| 482 | &uart3 { |
| 483 | pinctrl-names = "default"; |
| 484 | pinctrl-0 = <&uart3_pins>; |
| 485 | }; |
| 486 | |
NeilBrown | 8bdc9e9 | 2014-03-01 14:58:51 +0100 | [diff] [blame] | 487 | &charger { |
H. Nikolaus Schaller | 55f0f0e | 2015-01-22 21:38:07 +0100 | [diff] [blame] | 488 | ti,bb-uvolt = <3200000>; |
| 489 | ti,bb-uamp = <150>; |
NeilBrown | 8bdc9e9 | 2014-03-01 14:58:51 +0100 | [diff] [blame] | 490 | }; |
NeilBrown | 5a13ba6 | 2014-03-01 14:58:53 +0100 | [diff] [blame] | 491 | |
Marek Belisko | 4318bad | 2014-07-22 21:30:20 +0200 | [diff] [blame] | 492 | /* spare */ |
| 493 | &vaux1 { |
| 494 | regulator-min-microvolt = <2500000>; |
| 495 | regulator-max-microvolt = <3000000>; |
| 496 | }; |
| 497 | |
| 498 | /* sensors */ |
| 499 | &vaux2 { |
| 500 | regulator-min-microvolt = <2800000>; |
| 501 | regulator-max-microvolt = <2800000>; |
| 502 | regulator-always-on; |
| 503 | }; |
| 504 | |
| 505 | /* camera */ |
| 506 | &vaux3 { |
| 507 | regulator-min-microvolt = <2500000>; |
| 508 | regulator-max-microvolt = <2500000>; |
| 509 | }; |
| 510 | |
| 511 | /* WLAN/BT */ |
NeilBrown | 5a13ba6 | 2014-03-01 14:58:53 +0100 | [diff] [blame] | 512 | &vaux4 { |
| 513 | regulator-min-microvolt = <2800000>; |
| 514 | regulator-max-microvolt = <3150000>; |
| 515 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 516 | |
Marek Belisko | 4318bad | 2014-07-22 21:30:20 +0200 | [diff] [blame] | 517 | /* GPS LNA */ |
| 518 | &vsim { |
| 519 | regulator-min-microvolt = <2800000>; |
| 520 | regulator-max-microvolt = <3150000>; |
| 521 | }; |
| 522 | |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 523 | &dss { |
| 524 | pinctrl-names = "default"; |
| 525 | pinctrl-0 = < &dss_dpi_pins >; |
| 526 | |
| 527 | status = "okay"; |
NeilBrown | 01ca6d5 | 2015-01-22 21:38:17 +0100 | [diff] [blame] | 528 | vdds_dsi-supply = <&vpll2>; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 529 | |
| 530 | port { |
| 531 | dpi_out: endpoint { |
| 532 | remote-endpoint = <&lcd_in>; |
| 533 | data-lines = <24>; |
| 534 | }; |
| 535 | }; |
| 536 | }; |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 537 | |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 538 | &venc { |
| 539 | status = "okay"; |
| 540 | |
| 541 | vdda-supply = <&vdac>; |
| 542 | |
| 543 | port { |
| 544 | venc_out: endpoint { |
| 545 | remote-endpoint = <&opa_in>; |
| 546 | ti,channels = <2>; |
| 547 | ti,invert-polarity; |
| 548 | }; |
| 549 | }; |
| 550 | }; |
| 551 | |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 552 | &gpmc { |
Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 553 | ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 554 | |
| 555 | nand@0,0 { |
Roger Quadros | 44e4716 | 2016-02-23 18:37:25 +0200 | [diff] [blame] | 556 | compatible = "ti,omap2-nand"; |
Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 557 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
Roger Quadros | 44e4716 | 2016-02-23 18:37:25 +0200 | [diff] [blame] | 558 | interrupt-parent = <&gpmc>; |
| 559 | interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ |
| 560 | <1 IRQ_TYPE_NONE>; /* termcount */ |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 561 | nand-bus-width = <16>; |
| 562 | ti,nand-ecc-opt = "bch8"; |
| 563 | |
| 564 | gpmc,sync-clk-ps = <0>; |
| 565 | gpmc,cs-on-ns = <0>; |
| 566 | gpmc,cs-rd-off-ns = <44>; |
| 567 | gpmc,cs-wr-off-ns = <44>; |
| 568 | gpmc,adv-on-ns = <6>; |
| 569 | gpmc,adv-rd-off-ns = <34>; |
| 570 | gpmc,adv-wr-off-ns = <44>; |
| 571 | gpmc,we-off-ns = <40>; |
| 572 | gpmc,oe-off-ns = <54>; |
| 573 | gpmc,access-ns = <64>; |
| 574 | gpmc,rd-cycle-ns = <82>; |
| 575 | gpmc,wr-cycle-ns = <82>; |
| 576 | gpmc,wr-access-ns = <40>; |
| 577 | gpmc,wr-data-mux-bus-ns = <0>; |
| 578 | gpmc,device-width = <2>; |
| 579 | |
| 580 | #address-cells = <1>; |
| 581 | #size-cells = <1>; |
| 582 | |
| 583 | x-loader@0 { |
| 584 | label = "X-Loader"; |
| 585 | reg = <0 0x80000>; |
| 586 | }; |
| 587 | |
| 588 | bootloaders@80000 { |
| 589 | label = "U-Boot"; |
| 590 | reg = <0x80000 0x1e0000>; |
| 591 | }; |
| 592 | |
| 593 | bootloaders_env@260000 { |
| 594 | label = "U-Boot Env"; |
| 595 | reg = <0x260000 0x20000>; |
| 596 | }; |
| 597 | |
| 598 | kernel@280000 { |
| 599 | label = "Kernel"; |
| 600 | reg = <0x280000 0x400000>; |
| 601 | }; |
| 602 | |
| 603 | filesystem@680000 { |
| 604 | label = "File System"; |
| 605 | reg = <0x680000 0xf980000>; |
| 606 | }; |
| 607 | }; |
| 608 | }; |
H. Nikolaus Schaller | 98fd396 | 2015-01-22 21:38:09 +0100 | [diff] [blame] | 609 | |
| 610 | &mcbsp2 { |
| 611 | status = "okay"; |
| 612 | }; |
Marek Belisko | 3221dfb | 2015-04-28 22:54:27 +0200 | [diff] [blame] | 613 | |
| 614 | &hdqw1w { |
| 615 | pinctrl-names = "default"; |
| 616 | pinctrl-0 = <&hdq_pins>; |
| 617 | }; |
Marek Belisko | f6ae941 | 2015-05-07 21:35:05 +0200 | [diff] [blame] | 618 | |
| 619 | &mcbsp4 { |
| 620 | status = "okay"; |
| 621 | }; |