Anthoine Bourgeois | 98c6d55 | 2015-08-05 23:47:08 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Author: Anil Kumar <anilk4.v@gmail.com> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #include <dt-bindings/input/input.h> |
| 10 | |
| 11 | #include "omap34xx.dtsi" |
| 12 | / { |
| 13 | memory { |
| 14 | device_type = "memory"; |
| 15 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 16 | }; |
| 17 | |
| 18 | leds { |
| 19 | compatible = "gpio-leds"; |
| 20 | |
| 21 | heartbeat { |
| 22 | label = "devkit8000::led1"; |
| 23 | gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>; /* 186 -> LED1 */ |
| 24 | default-state = "on"; |
| 25 | linux,default-trigger = "heartbeat"; |
| 26 | }; |
| 27 | |
| 28 | mmc { |
| 29 | label = "devkit8000::led2"; |
| 30 | gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>; /* 163 -> LED2 */ |
| 31 | default-state = "on"; |
| 32 | linux,default-trigger = "none"; |
| 33 | }; |
| 34 | |
| 35 | usr { |
| 36 | label = "devkit8000::led3"; |
| 37 | gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* 164 -> LED3 */ |
| 38 | default-state = "on"; |
| 39 | linux,default-trigger = "usr"; |
| 40 | }; |
| 41 | |
| 42 | pmu_stat { |
| 43 | label = "devkit8000::pmu_stat"; |
| 44 | gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */ |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | sound { |
| 49 | compatible = "ti,omap-twl4030"; |
| 50 | ti,model = "devkit8000"; |
| 51 | |
| 52 | ti,mcbsp = <&mcbsp2>; |
| 53 | ti,audio-routing = |
| 54 | "Ext Spk", "PREDRIVEL", |
| 55 | "Ext Spk", "PREDRIVER", |
| 56 | "MAINMIC", "Main Mic", |
| 57 | "Main Mic", "Mic Bias 1"; |
| 58 | }; |
| 59 | |
| 60 | gpio_keys { |
| 61 | compatible = "gpio-keys"; |
| 62 | |
| 63 | user { |
| 64 | label = "user"; |
| 65 | gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; |
| 66 | linux,code = <BTN_EXTRA>; |
Sudeep Holla | 0c4d63b | 2015-10-21 11:10:12 +0100 | [diff] [blame] | 67 | wakeup-source; |
Anthoine Bourgeois | 98c6d55 | 2015-08-05 23:47:08 +0200 | [diff] [blame] | 68 | }; |
| 69 | }; |
| 70 | |
| 71 | tfp410: encoder@0 { |
| 72 | compatible = "ti,tfp410"; |
| 73 | powerdown-gpios = <&twl_gpio 7 GPIO_ACTIVE_LOW>; |
| 74 | |
| 75 | ports { |
| 76 | #address-cells = <1>; |
| 77 | #size-cells = <0>; |
| 78 | |
| 79 | port@0 { |
| 80 | reg = <0>; |
| 81 | |
| 82 | tfp410_in: endpoint@0 { |
| 83 | remote-endpoint = <&dpi_dvi_out>; |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | port@1 { |
| 88 | reg = <1>; |
| 89 | |
| 90 | tfp410_out: endpoint@0 { |
| 91 | remote-endpoint = <&dvi_connector_in>; |
| 92 | }; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | dvi0: connector@0 { |
| 98 | compatible = "dvi-connector"; |
| 99 | label = "dvi"; |
| 100 | |
| 101 | digital; |
| 102 | |
| 103 | ddc-i2c-bus = <&i2c2>; |
| 104 | |
| 105 | port { |
| 106 | dvi_connector_in: endpoint { |
| 107 | remote-endpoint = <&tfp410_out>; |
| 108 | }; |
| 109 | }; |
| 110 | }; |
| 111 | |
| 112 | tv0: connector@1 { |
| 113 | compatible = "svideo-connector"; |
| 114 | label = "tv"; |
| 115 | |
| 116 | port { |
| 117 | tv_connector_in: endpoint { |
| 118 | remote-endpoint = <&venc_out>; |
| 119 | }; |
| 120 | }; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | &i2c1 { |
| 125 | clock-frequency = <2600000>; |
| 126 | |
| 127 | twl: twl@48 { |
| 128 | reg = <0x48>; |
| 129 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 130 | |
| 131 | twl_audio: audio { |
| 132 | compatible = "ti,twl4030-audio"; |
| 133 | codec { |
| 134 | }; |
| 135 | }; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | &i2c2 { |
| 140 | clock-frequency = <400000>; |
| 141 | }; |
| 142 | |
| 143 | &i2c3 { |
| 144 | status = "disabled"; |
| 145 | }; |
| 146 | |
| 147 | #include "twl4030.dtsi" |
| 148 | #include "twl4030_omap3.dtsi" |
| 149 | |
| 150 | &mmc1 { |
| 151 | vmmc-supply = <&vmmc1>; |
| 152 | vmmc_aux-supply = <&vsim>; |
| 153 | bus-width = <8>; |
| 154 | }; |
| 155 | |
| 156 | &mmc2 { |
| 157 | status = "disabled"; |
| 158 | }; |
| 159 | |
| 160 | &mmc3 { |
| 161 | status = "disabled"; |
| 162 | }; |
| 163 | |
| 164 | &twl_gpio { |
| 165 | ti,use-leds; |
| 166 | /* |
| 167 | * pulldowns: |
| 168 | * BIT(1), BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) |
| 169 | * BIT(15), BIT(16), BIT(17) |
| 170 | */ |
| 171 | ti,pulldowns = <0x03a1c6>; |
| 172 | }; |
| 173 | |
| 174 | &twl_keypad { |
| 175 | linux,keymap = <MATRIX_KEY(0, 0, KEY_1) |
| 176 | MATRIX_KEY(1, 0, KEY_2) |
| 177 | MATRIX_KEY(2, 0, KEY_3) |
| 178 | MATRIX_KEY(0, 1, KEY_4) |
| 179 | MATRIX_KEY(1, 1, KEY_5) |
| 180 | MATRIX_KEY(2, 1, KEY_6) |
| 181 | MATRIX_KEY(3, 1, KEY_F5) |
| 182 | MATRIX_KEY(0, 2, KEY_7) |
| 183 | MATRIX_KEY(1, 2, KEY_8) |
| 184 | MATRIX_KEY(2, 2, KEY_9) |
| 185 | MATRIX_KEY(3, 2, KEY_F6) |
| 186 | MATRIX_KEY(0, 3, KEY_F7) |
| 187 | MATRIX_KEY(1, 3, KEY_0) |
| 188 | MATRIX_KEY(2, 3, KEY_F8) |
| 189 | MATRIX_KEY(4, 5, KEY_RESERVED) |
| 190 | MATRIX_KEY(4, 4, KEY_VOLUMEUP) |
| 191 | MATRIX_KEY(5, 5, KEY_VOLUMEDOWN) |
| 192 | >; |
| 193 | }; |
| 194 | |
| 195 | &wdt2 { |
| 196 | status = "disabled"; |
| 197 | }; |
| 198 | |
| 199 | &mcbsp2 { |
| 200 | status = "okay"; |
| 201 | }; |
| 202 | |
| 203 | &gpmc { |
| 204 | ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ |
| 205 | |
| 206 | nand@0,0 { |
| 207 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
| 208 | nand-bus-width = <16>; |
| 209 | gpmc,device-width = <2>; |
| 210 | ti,nand-ecc-opt = "sw"; |
| 211 | |
| 212 | gpmc,sync-clk-ps = <0>; |
| 213 | gpmc,cs-on-ns = <0>; |
| 214 | gpmc,cs-rd-off-ns = <44>; |
| 215 | gpmc,cs-wr-off-ns = <44>; |
| 216 | gpmc,adv-on-ns = <6>; |
| 217 | gpmc,adv-rd-off-ns = <34>; |
| 218 | gpmc,adv-wr-off-ns = <44>; |
| 219 | gpmc,we-off-ns = <40>; |
| 220 | gpmc,oe-off-ns = <54>; |
| 221 | gpmc,access-ns = <64>; |
| 222 | gpmc,rd-cycle-ns = <82>; |
| 223 | gpmc,wr-cycle-ns = <82>; |
| 224 | gpmc,wr-access-ns = <40>; |
| 225 | gpmc,wr-data-mux-bus-ns = <0>; |
| 226 | |
| 227 | #address-cells = <1>; |
| 228 | #size-cells = <1>; |
| 229 | |
| 230 | x-loader@0 { |
| 231 | label = "X-Loader"; |
| 232 | reg = <0 0x80000>; |
| 233 | }; |
| 234 | |
| 235 | bootloaders@80000 { |
| 236 | label = "U-Boot"; |
| 237 | reg = <0x80000 0x1e0000>; |
| 238 | }; |
| 239 | |
| 240 | bootloaders_env@260000 { |
| 241 | label = "U-Boot Env"; |
| 242 | reg = <0x260000 0x20000>; |
| 243 | }; |
| 244 | |
| 245 | kernel@280000 { |
| 246 | label = "Kernel"; |
| 247 | reg = <0x280000 0x400000>; |
| 248 | }; |
| 249 | |
| 250 | filesystem@680000 { |
| 251 | label = "File System"; |
| 252 | reg = <0x680000 0xf980000>; |
| 253 | }; |
| 254 | }; |
| 255 | }; |
| 256 | |
| 257 | &gpmc { |
| 258 | ranges = <6 0 0x2c000000 0x1000000>; /* CS6: 16MB for DM9000 */ |
| 259 | |
| 260 | ethernet@0,0 { |
| 261 | compatible = "davicom,dm9000"; |
| 262 | reg = <6 0x000 2 |
| 263 | 6 0x400 2>; /* CS6, offset 0 and 0x400, IO size 2 */ |
| 264 | bank-width = <2>; |
| 265 | interrupt-parent = <&gpio1>; |
| 266 | interrupts = <25 IRQ_TYPE_LEVEL_LOW>; |
| 267 | davicom,no-eeprom; |
| 268 | |
| 269 | gpmc,mux-add-data = <0>; |
| 270 | gpmc,device-width = <1>; |
| 271 | gpmc,wait-pin = <0>; |
| 272 | gpmc,cycle2cycle-samecsen = <1>; |
| 273 | gpmc,cycle2cycle-diffcsen = <1>; |
| 274 | |
| 275 | gpmc,cs-on-ns = <6>; |
| 276 | gpmc,cs-rd-off-ns = <180>; |
| 277 | gpmc,cs-wr-off-ns = <180>; |
| 278 | gpmc,adv-on-ns = <0>; |
| 279 | gpmc,adv-rd-off-ns = <18>; |
| 280 | gpmc,adv-wr-off-ns = <48>; |
| 281 | gpmc,oe-on-ns = <54>; |
| 282 | gpmc,oe-off-ns = <168>; |
| 283 | gpmc,we-on-ns = <54>; |
| 284 | gpmc,we-off-ns = <168>; |
| 285 | gpmc,rd-cycle-ns = <186>; |
| 286 | gpmc,wr-cycle-ns = <186>; |
| 287 | gpmc,access-ns = <144>; |
| 288 | gpmc,page-burst-access-ns = <24>; |
| 289 | gpmc,bus-turnaround-ns = <90>; |
| 290 | gpmc,cycle2cycle-delay-ns = <90>; |
| 291 | gpmc,wait-monitoring-ns = <0>; |
| 292 | gpmc,clk-activation-ns = <0>; |
| 293 | gpmc,wr-data-mux-bus-ns = <0>; |
| 294 | gpmc,wr-access-ns = <0>; |
| 295 | }; |
| 296 | }; |
| 297 | |
| 298 | &omap3_pmx_core { |
| 299 | dss_dpi_pins: pinmux_dss_dpi_pins { |
| 300 | pinctrl-single,pins = < |
| 301 | OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */ |
| 302 | OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */ |
| 303 | OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */ |
| 304 | OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */ |
| 305 | OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */ |
| 306 | OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */ |
| 307 | OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */ |
| 308 | OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */ |
| 309 | OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */ |
| 310 | OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */ |
| 311 | OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */ |
| 312 | OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */ |
| 313 | OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */ |
| 314 | OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */ |
| 315 | OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */ |
| 316 | OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */ |
| 317 | OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */ |
| 318 | OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */ |
| 319 | OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */ |
| 320 | OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */ |
| 321 | OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */ |
| 322 | OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */ |
| 323 | OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */ |
| 324 | OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */ |
| 325 | OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */ |
| 326 | OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */ |
| 327 | OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */ |
| 328 | OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */ |
| 329 | >; |
| 330 | }; |
| 331 | }; |
| 332 | |
| 333 | &vpll1 { |
| 334 | /* Needed for DSS */ |
| 335 | regulator-name = "vdds_dsi"; |
| 336 | |
| 337 | regulator-min-microvolt = <1800000>; |
| 338 | regulator-max-microvolt = <1800000>; |
| 339 | }; |
| 340 | |
| 341 | &dss { |
| 342 | status = "ok"; |
| 343 | |
| 344 | pinctrl-names = "default"; |
| 345 | pinctrl-0 = <&dss_dpi_pins>; |
| 346 | |
| 347 | vdds_dsi-supply = <&vpll1>; |
| 348 | vdda_dac-supply = <&vdac>; |
| 349 | |
| 350 | port { |
| 351 | dpi_dvi_out: endpoint@0 { |
| 352 | remote-endpoint = <&tfp410_in>; |
| 353 | data-lines = <24>; |
| 354 | }; |
| 355 | }; |
| 356 | }; |
| 357 | |
| 358 | &venc { |
| 359 | status = "ok"; |
| 360 | |
| 361 | vdda-supply = <&vdac>; |
| 362 | |
| 363 | port { |
| 364 | venc_out: endpoint { |
| 365 | remote-endpoint = <&tv_connector_in>; |
| 366 | ti,channels = <2>; |
| 367 | }; |
| 368 | }; |
| 369 | }; |