| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [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 | /dts-v1/; |
| 9 | |
| Anthoine Bourgeois | ab00639 | 2015-08-04 22:53:26 +0200 | [diff] [blame] | 10 | #include <dt-bindings/input/input.h> |
| 11 | |
| Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 12 | #include "omap34xx.dtsi" |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 13 | / { |
| 14 | model = "TimLL OMAP3 Devkit8000"; |
| 15 | compatible = "timll,omap3-devkit8000", "ti,omap3"; |
| 16 | |
| 17 | memory { |
| 18 | device_type = "memory"; |
| 19 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 20 | }; |
| 21 | |
| 22 | leds { |
| 23 | compatible = "gpio-leds"; |
| 24 | |
| 25 | heartbeat { |
| 26 | label = "devkit8000::led1"; |
| Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 27 | gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>; /* 186 -> LED1 */ |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 28 | default-state = "on"; |
| 29 | linux,default-trigger = "heartbeat"; |
| 30 | }; |
| 31 | |
| 32 | mmc { |
| 33 | label = "devkit8000::led2"; |
| Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 34 | gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>; /* 163 -> LED2 */ |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 35 | default-state = "on"; |
| 36 | linux,default-trigger = "none"; |
| 37 | }; |
| 38 | |
| 39 | usr { |
| 40 | label = "devkit8000::led3"; |
| Florian Vaussard | 6d624ea | 2013-05-31 14:32:56 +0200 | [diff] [blame] | 41 | gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* 164 -> LED3 */ |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 42 | default-state = "on"; |
| 43 | linux,default-trigger = "usr"; |
| Anthoine Bourgeois | f678790 | 2015-08-04 22:53:27 +0200 | [diff] [blame] | 44 | }; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 45 | |
| Anthoine Bourgeois | f678790 | 2015-08-04 22:53:27 +0200 | [diff] [blame] | 46 | pmu_stat { |
| 47 | label = "devkit8000::pmu_stat"; |
| 48 | gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */ |
| 49 | }; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 50 | }; |
| Anil Kumar | e82be16 | 2013-02-04 20:25:07 +0530 | [diff] [blame] | 51 | |
| 52 | sound { |
| 53 | compatible = "ti,omap-twl4030"; |
| 54 | ti,model = "devkit8000"; |
| 55 | |
| 56 | ti,mcbsp = <&mcbsp2>; |
| Anil Kumar | e82be16 | 2013-02-04 20:25:07 +0530 | [diff] [blame] | 57 | ti,audio-routing = |
| 58 | "Ext Spk", "PREDRIVEL", |
| 59 | "Ext Spk", "PREDRIVER", |
| 60 | "MAINMIC", "Main Mic", |
| 61 | "Main Mic", "Mic Bias 1"; |
| 62 | }; |
| Anthoine Bourgeois | ab00639 | 2015-08-04 22:53:26 +0200 | [diff] [blame] | 63 | |
| 64 | gpio_keys { |
| 65 | compatible = "gpio-keys"; |
| 66 | |
| 67 | user { |
| 68 | label = "user"; |
| 69 | gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; |
| 70 | linux,code = <BTN_EXTRA>; |
| 71 | gpio-key,wakeup; |
| 72 | }; |
| 73 | }; |
| Anthoine Bourgeois | f1022b9 | 2015-08-04 22:53:29 +0200 | [diff] [blame^] | 74 | |
| 75 | tv0: connector@1 { |
| 76 | compatible = "svideo-connector"; |
| 77 | label = "tv"; |
| 78 | |
| 79 | port { |
| 80 | tv_connector_in: endpoint { |
| 81 | remote-endpoint = <&venc_out>; |
| 82 | }; |
| 83 | }; |
| 84 | }; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | &i2c1 { |
| 88 | clock-frequency = <2600000>; |
| 89 | |
| 90 | twl: twl@48 { |
| 91 | reg = <0x48>; |
| 92 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| Anil Kumar | e82be16 | 2013-02-04 20:25:07 +0530 | [diff] [blame] | 93 | |
| 94 | twl_audio: audio { |
| 95 | compatible = "ti,twl4030-audio"; |
| 96 | codec { |
| 97 | }; |
| 98 | }; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 99 | }; |
| 100 | }; |
| 101 | |
| 102 | &i2c2 { |
| 103 | status = "disabled"; |
| 104 | }; |
| 105 | |
| 106 | &i2c3 { |
| 107 | status = "disabled"; |
| 108 | }; |
| 109 | |
| Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 110 | #include "twl4030.dtsi" |
| Kevin Hilman | f968845 | 2013-05-31 14:09:34 -0700 | [diff] [blame] | 111 | #include "twl4030_omap3.dtsi" |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 112 | |
| 113 | &mmc1 { |
| 114 | vmmc-supply = <&vmmc1>; |
| 115 | vmmc_aux-supply = <&vsim>; |
| 116 | bus-width = <8>; |
| 117 | }; |
| 118 | |
| 119 | &mmc2 { |
| 120 | status = "disabled"; |
| 121 | }; |
| 122 | |
| 123 | &mmc3 { |
| 124 | status = "disabled"; |
| 125 | }; |
| 126 | |
| Anthoine Bourgeois | f678790 | 2015-08-04 22:53:27 +0200 | [diff] [blame] | 127 | &twl_gpio { |
| 128 | ti,use-leds; |
| 129 | /* |
| 130 | * pulldowns: |
| 131 | * BIT(1), BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) |
| 132 | * BIT(15), BIT(16), BIT(17) |
| 133 | */ |
| 134 | ti,pulldowns = <0x03a1c6>; |
| 135 | }; |
| 136 | |
| Anthoine Bourgeois | 26fa892 | 2015-08-04 22:53:28 +0200 | [diff] [blame] | 137 | &twl_keypad { |
| 138 | linux,keymap = <MATRIX_KEY(0, 0, KEY_1) |
| 139 | MATRIX_KEY(1, 0, KEY_2) |
| 140 | MATRIX_KEY(2, 0, KEY_3) |
| 141 | MATRIX_KEY(0, 1, KEY_4) |
| 142 | MATRIX_KEY(1, 1, KEY_5) |
| 143 | MATRIX_KEY(2, 1, KEY_6) |
| 144 | MATRIX_KEY(3, 1, KEY_F5) |
| 145 | MATRIX_KEY(0, 2, KEY_7) |
| 146 | MATRIX_KEY(1, 2, KEY_8) |
| 147 | MATRIX_KEY(2, 2, KEY_9) |
| 148 | MATRIX_KEY(3, 2, KEY_F6) |
| 149 | MATRIX_KEY(0, 3, KEY_F7) |
| 150 | MATRIX_KEY(1, 3, KEY_0) |
| 151 | MATRIX_KEY(2, 3, KEY_F8) |
| 152 | MATRIX_KEY(4, 5, KEY_RESERVED) |
| 153 | MATRIX_KEY(4, 4, KEY_VOLUMEUP) |
| 154 | MATRIX_KEY(5, 5, KEY_VOLUMEDOWN) |
| 155 | >; |
| 156 | }; |
| 157 | |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 158 | &wdt2 { |
| 159 | status = "disabled"; |
| 160 | }; |
| 161 | |
| Peter Ujfalusi | 726322c | 2014-01-24 10:19:05 +0200 | [diff] [blame] | 162 | &mcbsp2 { |
| 163 | status = "okay"; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 164 | }; |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 165 | |
| 166 | &gpmc { |
| Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 167 | ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 168 | |
| 169 | nand@0,0 { |
| Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 170 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 171 | nand-bus-width = <16>; |
| Anthoine Bourgeois | ed38c65 | 2015-05-20 10:00:10 -0700 | [diff] [blame] | 172 | gpmc,device-width = <2>; |
| 173 | ti,nand-ecc-opt = "sw"; |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 174 | |
| Aaro Koskinen | 6283513b | 2013-09-21 02:40:14 +0300 | [diff] [blame] | 175 | gpmc,sync-clk-ps = <0>; |
| Florian Vaussard | 4942350 | 2013-05-23 10:11:37 +0200 | [diff] [blame] | 176 | gpmc,cs-on-ns = <0>; |
| 177 | gpmc,cs-rd-off-ns = <44>; |
| 178 | gpmc,cs-wr-off-ns = <44>; |
| 179 | gpmc,adv-on-ns = <6>; |
| 180 | gpmc,adv-rd-off-ns = <34>; |
| 181 | gpmc,adv-wr-off-ns = <44>; |
| 182 | gpmc,we-off-ns = <40>; |
| 183 | gpmc,oe-off-ns = <54>; |
| 184 | gpmc,access-ns = <64>; |
| 185 | gpmc,rd-cycle-ns = <82>; |
| 186 | gpmc,wr-cycle-ns = <82>; |
| 187 | gpmc,wr-access-ns = <40>; |
| 188 | gpmc,wr-data-mux-bus-ns = <0>; |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 189 | |
| 190 | #address-cells = <1>; |
| 191 | #size-cells = <1>; |
| 192 | |
| 193 | x-loader@0 { |
| 194 | label = "X-Loader"; |
| 195 | reg = <0 0x80000>; |
| 196 | }; |
| 197 | |
| 198 | bootloaders@80000 { |
| 199 | label = "U-Boot"; |
| 200 | reg = <0x80000 0x1e0000>; |
| 201 | }; |
| 202 | |
| 203 | bootloaders_env@260000 { |
| 204 | label = "U-Boot Env"; |
| 205 | reg = <0x260000 0x20000>; |
| 206 | }; |
| 207 | |
| 208 | kernel@280000 { |
| 209 | label = "Kernel"; |
| 210 | reg = <0x280000 0x400000>; |
| 211 | }; |
| 212 | |
| 213 | filesystem@680000 { |
| 214 | label = "File System"; |
| 215 | reg = <0x680000 0xf980000>; |
| 216 | }; |
| 217 | }; |
| 218 | }; |
| Anthoine Bourgeois | e04beeb | 2015-05-28 09:49:49 -0700 | [diff] [blame] | 219 | |
| 220 | &gpmc { |
| 221 | ranges = <6 0 0x2c000000 0x1000000>; /* CS6: 16MB for DM9000 */ |
| 222 | |
| 223 | ethernet@0,0 { |
| 224 | compatible = "davicom,dm9000"; |
| 225 | reg = <6 0x000 2 |
| 226 | 6 0x400 2>; /* CS6, offset 0 and 0x400, IO size 2 */ |
| 227 | bank-width = <2>; |
| 228 | interrupt-parent = <&gpio1>; |
| 229 | interrupts = <25 IRQ_TYPE_LEVEL_LOW>; |
| 230 | davicom,no-eeprom; |
| 231 | |
| 232 | gpmc,mux-add-data = <0>; |
| 233 | gpmc,device-width = <1>; |
| 234 | gpmc,wait-pin = <0>; |
| 235 | gpmc,cycle2cycle-samecsen = <1>; |
| 236 | gpmc,cycle2cycle-diffcsen = <1>; |
| 237 | |
| 238 | gpmc,cs-on-ns = <6>; |
| 239 | gpmc,cs-rd-off-ns = <180>; |
| 240 | gpmc,cs-wr-off-ns = <180>; |
| 241 | gpmc,adv-on-ns = <0>; |
| 242 | gpmc,adv-rd-off-ns = <18>; |
| 243 | gpmc,adv-wr-off-ns = <48>; |
| 244 | gpmc,oe-on-ns = <54>; |
| 245 | gpmc,oe-off-ns = <168>; |
| 246 | gpmc,we-on-ns = <54>; |
| 247 | gpmc,we-off-ns = <168>; |
| 248 | gpmc,rd-cycle-ns = <186>; |
| 249 | gpmc,wr-cycle-ns = <186>; |
| 250 | gpmc,access-ns = <144>; |
| 251 | gpmc,page-burst-access-ns = <24>; |
| 252 | gpmc,bus-turnaround-ns = <90>; |
| 253 | gpmc,cycle2cycle-delay-ns = <90>; |
| 254 | gpmc,wait-monitoring-ns = <0>; |
| 255 | gpmc,clk-activation-ns = <0>; |
| 256 | gpmc,wr-data-mux-bus-ns = <0>; |
| 257 | gpmc,wr-access-ns = <0>; |
| 258 | }; |
| 259 | }; |
| Anthoine Bourgeois | f1022b9 | 2015-08-04 22:53:29 +0200 | [diff] [blame^] | 260 | |
| 261 | &venc { |
| 262 | status = "ok"; |
| 263 | |
| 264 | vdda-supply = <&vdac>; |
| 265 | |
| 266 | port { |
| 267 | venc_out: endpoint { |
| 268 | remote-endpoint = <&tv_connector_in>; |
| 269 | ti,channels = <2>; |
| 270 | }; |
| 271 | }; |
| 272 | }; |