Marek Belisko | adfe1473 | 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 | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 17 | |
| 18 | cpus { |
| 19 | cpu@0 { |
| 20 | cpu0-supply = <&vcc>; |
| 21 | }; |
| 22 | }; |
| 23 | |
| 24 | memory { |
| 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 | adfe1473 | 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 | d8bd6731 | 2014-01-25 22:28:55 +0100 | [diff] [blame] | 39 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 40 | gpio-key,wakeup; |
| 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>; |
| 49 | ti,codec = <&twl_audio>; |
| 50 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 51 | |
| 52 | spi_lcd { |
| 53 | compatible = "spi-gpio"; |
| 54 | #address-cells = <0x1>; |
| 55 | #size-cells = <0x0>; |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&spi_gpio_pins>; |
| 58 | |
| 59 | gpio-sck = <&gpio1 12 0>; |
| 60 | gpio-miso = <&gpio1 18 0>; |
| 61 | gpio-mosi = <&gpio1 20 0>; |
| 62 | cs-gpios = <&gpio1 19 0>; |
| 63 | num-chipselects = <1>; |
| 64 | |
| 65 | /* lcd panel */ |
| 66 | lcd: td028ttec1@0 { |
| 67 | compatible = "toppoly,td028ttec1"; |
| 68 | reg = <0>; |
| 69 | spi-max-frequency = <100000>; |
| 70 | spi-cpol; |
| 71 | spi-cpha; |
| 72 | |
| 73 | label = "lcd"; |
| 74 | port { |
| 75 | lcd_in: endpoint { |
| 76 | remote-endpoint = <&dpi_out>; |
| 77 | }; |
| 78 | }; |
| 79 | }; |
| 80 | }; |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 81 | |
| 82 | hsusb2_phy: hsusb2_phy { |
| 83 | compatible = "usb-nop-xceiv"; |
| 84 | reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; |
| 85 | }; |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 86 | |
| 87 | tv0: connector@1 { |
| 88 | compatible = "svideo-connector"; |
| 89 | label = "tv"; |
| 90 | |
| 91 | port { |
| 92 | tv_connector_in: endpoint { |
| 93 | remote-endpoint = <&opa_out>; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | tv_amp: opa362 { |
| 99 | compatible = "ti,opa362"; |
| 100 | enable-gpios = <&gpio1 23 0>; |
| 101 | |
| 102 | ports { |
| 103 | #address-cells = <1>; |
| 104 | #size-cells = <0>; |
| 105 | |
| 106 | port@0 { |
| 107 | reg = <0>; |
| 108 | opa_in: endpoint@0 { |
| 109 | remote-endpoint = <&venc_out>; |
| 110 | }; |
| 111 | }; |
| 112 | |
| 113 | port@1 { |
| 114 | reg = <1>; |
| 115 | opa_out: endpoint@0 { |
| 116 | remote-endpoint = <&tv_connector_in>; |
| 117 | }; |
| 118 | }; |
| 119 | }; |
| 120 | }; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 121 | }; |
| 122 | |
| 123 | &omap3_pmx_core { |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 124 | pinctrl-names = "default"; |
| 125 | pinctrl-0 = < |
| 126 | &hsusb2_pins |
| 127 | >; |
| 128 | |
| 129 | hsusb2_pins: pinmux_hsusb2_pins { |
| 130 | pinctrl-single,pins = < |
| 131 | OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ |
| 132 | OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ |
| 133 | OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ |
| 134 | OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ |
| 135 | OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ |
| 136 | OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ |
| 137 | >; |
| 138 | }; |
| 139 | |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 140 | uart1_pins: pinmux_uart1_pins { |
| 141 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 142 | OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */ |
| 143 | OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */ |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 144 | >; |
| 145 | }; |
| 146 | |
| 147 | uart2_pins: pinmux_uart2_pins { |
| 148 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 149 | OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */ |
| 150 | OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */ |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 151 | >; |
| 152 | }; |
| 153 | |
| 154 | uart3_pins: pinmux_uart3_pins { |
| 155 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 156 | OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */ |
| 157 | OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */ |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 158 | >; |
| 159 | }; |
| 160 | |
| 161 | mmc1_pins: pinmux_mmc1_pins { |
| 162 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 163 | OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ |
| 164 | OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ |
| 165 | OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ |
| 166 | OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ |
| 167 | OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ |
| 168 | OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 169 | >; |
| 170 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 171 | |
| 172 | dss_dpi_pins: pinmux_dss_dpi_pins { |
| 173 | pinctrl-single,pins = < |
Marek Belisko | 021fe93 | 2014-10-17 22:32:03 +0200 | [diff] [blame] | 174 | OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */ |
| 175 | OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */ |
| 176 | OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */ |
| 177 | OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */ |
| 178 | OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */ |
| 179 | OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */ |
| 180 | OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */ |
| 181 | OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */ |
| 182 | OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */ |
| 183 | OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */ |
| 184 | OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */ |
| 185 | OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */ |
| 186 | OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */ |
| 187 | OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */ |
| 188 | OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */ |
| 189 | OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */ |
| 190 | OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */ |
| 191 | OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */ |
| 192 | OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */ |
| 193 | OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */ |
| 194 | OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */ |
| 195 | OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */ |
| 196 | OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */ |
| 197 | OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */ |
| 198 | OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */ |
| 199 | OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */ |
| 200 | OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */ |
| 201 | OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */ |
| 202 | >; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 203 | }; |
Marek Belisko | 6c402f8 | 2014-07-22 21:30:17 +0200 | [diff] [blame] | 204 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 205 | |
Marek Belisko | 6c402f8 | 2014-07-22 21:30:17 +0200 | [diff] [blame] | 206 | &omap3_pmx_core2 { |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 207 | pinctrl-names = "default"; |
| 208 | pinctrl-0 = < |
| 209 | &hsusb2_2_pins |
| 210 | >; |
| 211 | |
| 212 | hsusb2_2_pins: pinmux_hsusb2_2_pins { |
| 213 | pinctrl-single,pins = < |
| 214 | OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ |
| 215 | OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ |
| 216 | OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ |
| 217 | OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ |
| 218 | OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ |
| 219 | OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ |
| 220 | >; |
| 221 | }; |
| 222 | |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 223 | spi_gpio_pins: spi_gpio_pinmux { |
Marek Belisko | 6c402f8 | 2014-07-22 21:30:17 +0200 | [diff] [blame] | 224 | pinctrl-single,pins = < |
| 225 | OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */ |
| 226 | OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */ |
| 227 | OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */ |
| 228 | OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */ |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 229 | >; |
| 230 | }; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 231 | }; |
| 232 | |
| 233 | &i2c1 { |
| 234 | clock-frequency = <2600000>; |
| 235 | |
| 236 | twl: twl@48 { |
| 237 | reg = <0x48>; |
| 238 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 239 | interrupt-parent = <&intc>; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 240 | |
H. Nikolaus Schaller | 2a88a0b | 2015-01-22 21:38:08 +0100 | [diff] [blame] | 241 | twl_audio: audio { |
| 242 | compatible = "ti,twl4030-audio"; |
H. Nikolaus Schaller | 85f534e | 2015-01-22 21:38:10 +0100 | [diff] [blame] | 243 | ti,enable-vibra = <1>; |
H. Nikolaus Schaller | 2a88a0b | 2015-01-22 21:38:08 +0100 | [diff] [blame] | 244 | codec { |
Marek Belisko | 2a2130c | 2015-01-22 21:38:13 +0100 | [diff] [blame^] | 245 | ti,ramp_delay_value = <3>; |
H. Nikolaus Schaller | 2a88a0b | 2015-01-22 21:38:08 +0100 | [diff] [blame] | 246 | }; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 247 | }; |
H. Nikolaus Schaller | 23c0ff5 | 2015-01-22 21:38:12 +0100 | [diff] [blame] | 248 | |
| 249 | twl_power: power { |
| 250 | compatible = "ti,twl4030-power"; |
| 251 | ti,use_poweroff; |
| 252 | }; |
NeilBrown | 6764f64 | 2014-03-01 14:58:52 +0100 | [diff] [blame] | 253 | }; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 254 | }; |
| 255 | |
| 256 | #include "twl4030.dtsi" |
| 257 | #include "twl4030_omap3.dtsi" |
| 258 | |
| 259 | &i2c2 { |
| 260 | clock-frequency = <400000>; |
| 261 | |
| 262 | /* pressure sensor */ |
| 263 | bmp085@77 { |
| 264 | compatible = "bosch,bmp085"; |
| 265 | reg = <0x77>; |
Marek Belisko | d26794c | 2013-12-21 16:12:23 +0100 | [diff] [blame] | 266 | interrupt-parent = <&gpio4>; |
| 267 | interrupts = <17 IRQ_TYPE_EDGE_RISING>; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 268 | }; |
| 269 | |
NeilBrown | 24d0bb8 | 2014-03-01 14:58:54 +0100 | [diff] [blame] | 270 | /* accelerometer */ |
| 271 | bma180@41 { |
| 272 | compatible = "bosch,bma180"; |
| 273 | reg = <0x41>; |
Marek Belisko | 75fb2c1 | 2015-01-22 21:38:11 +0100 | [diff] [blame] | 274 | interrupt-parent = <&gpio4>; |
NeilBrown | 24d0bb8 | 2014-03-01 14:58:54 +0100 | [diff] [blame] | 275 | interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; |
| 276 | }; |
| 277 | |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 278 | /* leds */ |
| 279 | tca6507@45 { |
| 280 | compatible = "ti,tca6507"; |
| 281 | #address-cells = <1>; |
| 282 | #size-cells = <0>; |
| 283 | reg = <0x45>; |
| 284 | |
Marek Belisko | e51c6be | 2014-07-22 21:30:16 +0200 | [diff] [blame] | 285 | gpio-controller; |
| 286 | #gpio-cells = <2>; |
| 287 | |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 288 | gta04_led0: red_aux@0 { |
| 289 | label = "gta04:red:aux"; |
| 290 | reg = <0x0>; |
| 291 | }; |
| 292 | |
| 293 | gta04_led1: green_aux@1 { |
| 294 | label = "gta04:green:aux"; |
| 295 | reg = <0x1>; |
| 296 | }; |
| 297 | |
| 298 | gta04_led3: red_power@3 { |
| 299 | label = "gta04:red:power"; |
| 300 | reg = <0x3>; |
| 301 | linux,default-trigger = "default-on"; |
| 302 | }; |
| 303 | |
| 304 | gta04_led4: green_power@4 { |
| 305 | label = "gta04:green:power"; |
| 306 | reg = <0x4>; |
| 307 | }; |
Marek Belisko | e51c6be | 2014-07-22 21:30:16 +0200 | [diff] [blame] | 308 | |
| 309 | wifi_reset: wifi_reset@6 { |
| 310 | reg = <0x6>; |
| 311 | compatible = "gpio"; |
| 312 | }; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 313 | }; |
NeilBrown | 32f2c39 | 2014-03-01 14:58:49 +0100 | [diff] [blame] | 314 | |
| 315 | /* compass aka magnetometer */ |
| 316 | hmc5843@1e { |
Marek Belisko | 9edc57a | 2014-07-22 21:59:08 +0200 | [diff] [blame] | 317 | compatible = "honeywell,hmc5883l"; |
NeilBrown | 32f2c39 | 2014-03-01 14:58:49 +0100 | [diff] [blame] | 318 | reg = <0x1e>; |
| 319 | }; |
Marek Belisko | 9cbc03b | 2014-03-01 14:58:50 +0100 | [diff] [blame] | 320 | |
| 321 | /* touchscreen */ |
| 322 | tsc2007@48 { |
| 323 | compatible = "ti,tsc2007"; |
| 324 | reg = <0x48>; |
| 325 | interrupt-parent = <&gpio6>; |
| 326 | interrupts = <0 IRQ_TYPE_EDGE_FALLING>; |
| 327 | gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; |
| 328 | ti,x-plate-ohms = <600>; |
| 329 | }; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 330 | }; |
| 331 | |
| 332 | &i2c3 { |
| 333 | clock-frequency = <100000>; |
| 334 | }; |
| 335 | |
| 336 | &usb_otg_hs { |
| 337 | interface-type = <0>; |
| 338 | usb-phy = <&usb2_phy>; |
Roger Quadros | d2afcf0 | 2013-10-07 16:28:13 +0300 | [diff] [blame] | 339 | phys = <&usb2_phy>; |
| 340 | phy-names = "usb2-phy"; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 341 | mode = <3>; |
| 342 | power = <50>; |
| 343 | }; |
| 344 | |
Marek Belisko | 1520a13 | 2014-07-22 21:30:18 +0200 | [diff] [blame] | 345 | &usbhshost { |
| 346 | port2-mode = "ehci-phy"; |
| 347 | }; |
| 348 | |
| 349 | &usbhsehci { |
| 350 | phys = <0 &hsusb2_phy>; |
| 351 | }; |
| 352 | |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 353 | &mmc1 { |
| 354 | pinctrl-names = "default"; |
| 355 | pinctrl-0 = <&mmc1_pins>; |
| 356 | vmmc-supply = <&vmmc1>; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 357 | bus-width = <4>; |
Marek Belisko | 2d6ac29 | 2014-01-25 22:28:57 +0100 | [diff] [blame] | 358 | ti,non-removable; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 359 | }; |
| 360 | |
| 361 | &mmc2 { |
NeilBrown | 5a13ba6 | 2014-03-01 14:58:53 +0100 | [diff] [blame] | 362 | vmmc-supply = <&vaux4>; |
| 363 | bus-width = <4>; |
| 364 | ti,non-removable; |
Marek Belisko | adfe1473 | 2013-08-15 22:43:05 +0200 | [diff] [blame] | 365 | }; |
| 366 | |
| 367 | &mmc3 { |
| 368 | status = "disabled"; |
| 369 | }; |
| 370 | |
| 371 | &uart1 { |
| 372 | pinctrl-names = "default"; |
| 373 | pinctrl-0 = <&uart1_pins>; |
| 374 | }; |
| 375 | |
| 376 | &uart2 { |
| 377 | pinctrl-names = "default"; |
| 378 | pinctrl-0 = <&uart2_pins>; |
| 379 | }; |
| 380 | |
| 381 | &uart3 { |
| 382 | pinctrl-names = "default"; |
| 383 | pinctrl-0 = <&uart3_pins>; |
| 384 | }; |
| 385 | |
NeilBrown | 8bdc9e9 | 2014-03-01 14:58:51 +0100 | [diff] [blame] | 386 | &charger { |
H. Nikolaus Schaller | 55f0f0e | 2015-01-22 21:38:07 +0100 | [diff] [blame] | 387 | ti,bb-uvolt = <3200000>; |
| 388 | ti,bb-uamp = <150>; |
NeilBrown | 8bdc9e9 | 2014-03-01 14:58:51 +0100 | [diff] [blame] | 389 | }; |
NeilBrown | 5a13ba6 | 2014-03-01 14:58:53 +0100 | [diff] [blame] | 390 | |
Marek Belisko | 4318bad | 2014-07-22 21:30:20 +0200 | [diff] [blame] | 391 | /* spare */ |
| 392 | &vaux1 { |
| 393 | regulator-min-microvolt = <2500000>; |
| 394 | regulator-max-microvolt = <3000000>; |
| 395 | }; |
| 396 | |
| 397 | /* sensors */ |
| 398 | &vaux2 { |
| 399 | regulator-min-microvolt = <2800000>; |
| 400 | regulator-max-microvolt = <2800000>; |
| 401 | regulator-always-on; |
| 402 | }; |
| 403 | |
| 404 | /* camera */ |
| 405 | &vaux3 { |
| 406 | regulator-min-microvolt = <2500000>; |
| 407 | regulator-max-microvolt = <2500000>; |
| 408 | }; |
| 409 | |
| 410 | /* WLAN/BT */ |
NeilBrown | 5a13ba6 | 2014-03-01 14:58:53 +0100 | [diff] [blame] | 411 | &vaux4 { |
| 412 | regulator-min-microvolt = <2800000>; |
| 413 | regulator-max-microvolt = <3150000>; |
| 414 | }; |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 415 | |
Marek Belisko | 4318bad | 2014-07-22 21:30:20 +0200 | [diff] [blame] | 416 | /* GPS LNA */ |
| 417 | &vsim { |
| 418 | regulator-min-microvolt = <2800000>; |
| 419 | regulator-max-microvolt = <3150000>; |
| 420 | }; |
| 421 | |
Marek Belisko | c2e138b | 2014-05-08 22:16:51 +0200 | [diff] [blame] | 422 | /* Needed to power the DPI pins */ |
| 423 | &vpll2 { |
| 424 | regulator-always-on; |
| 425 | }; |
| 426 | |
| 427 | &dss { |
| 428 | pinctrl-names = "default"; |
| 429 | pinctrl-0 = < &dss_dpi_pins >; |
| 430 | |
| 431 | status = "okay"; |
| 432 | |
| 433 | port { |
| 434 | dpi_out: endpoint { |
| 435 | remote-endpoint = <&lcd_in>; |
| 436 | data-lines = <24>; |
| 437 | }; |
| 438 | }; |
| 439 | }; |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 440 | |
Marek Belisko | 7300bff | 2014-12-03 22:33:22 +0100 | [diff] [blame] | 441 | &venc { |
| 442 | status = "okay"; |
| 443 | |
| 444 | vdda-supply = <&vdac>; |
| 445 | |
| 446 | port { |
| 447 | venc_out: endpoint { |
| 448 | remote-endpoint = <&opa_in>; |
| 449 | ti,channels = <2>; |
| 450 | ti,invert-polarity; |
| 451 | }; |
| 452 | }; |
| 453 | }; |
| 454 | |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 455 | &gpmc { |
Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 456 | ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 457 | |
| 458 | nand@0,0 { |
Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 459 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
Marek Belisko | 2618a18 | 2014-07-22 21:30:14 +0200 | [diff] [blame] | 460 | nand-bus-width = <16>; |
| 461 | ti,nand-ecc-opt = "bch8"; |
| 462 | |
| 463 | gpmc,sync-clk-ps = <0>; |
| 464 | gpmc,cs-on-ns = <0>; |
| 465 | gpmc,cs-rd-off-ns = <44>; |
| 466 | gpmc,cs-wr-off-ns = <44>; |
| 467 | gpmc,adv-on-ns = <6>; |
| 468 | gpmc,adv-rd-off-ns = <34>; |
| 469 | gpmc,adv-wr-off-ns = <44>; |
| 470 | gpmc,we-off-ns = <40>; |
| 471 | gpmc,oe-off-ns = <54>; |
| 472 | gpmc,access-ns = <64>; |
| 473 | gpmc,rd-cycle-ns = <82>; |
| 474 | gpmc,wr-cycle-ns = <82>; |
| 475 | gpmc,wr-access-ns = <40>; |
| 476 | gpmc,wr-data-mux-bus-ns = <0>; |
| 477 | gpmc,device-width = <2>; |
| 478 | |
| 479 | #address-cells = <1>; |
| 480 | #size-cells = <1>; |
| 481 | |
| 482 | x-loader@0 { |
| 483 | label = "X-Loader"; |
| 484 | reg = <0 0x80000>; |
| 485 | }; |
| 486 | |
| 487 | bootloaders@80000 { |
| 488 | label = "U-Boot"; |
| 489 | reg = <0x80000 0x1e0000>; |
| 490 | }; |
| 491 | |
| 492 | bootloaders_env@260000 { |
| 493 | label = "U-Boot Env"; |
| 494 | reg = <0x260000 0x20000>; |
| 495 | }; |
| 496 | |
| 497 | kernel@280000 { |
| 498 | label = "Kernel"; |
| 499 | reg = <0x280000 0x400000>; |
| 500 | }; |
| 501 | |
| 502 | filesystem@680000 { |
| 503 | label = "File System"; |
| 504 | reg = <0x680000 0xf980000>; |
| 505 | }; |
| 506 | }; |
| 507 | }; |
H. Nikolaus Schaller | 98fd396 | 2015-01-22 21:38:09 +0100 | [diff] [blame] | 508 | |
| 509 | &mcbsp2 { |
| 510 | status = "okay"; |
| 511 | }; |