| 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 | }; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 74 | }; |
| 75 | |
| 76 | &i2c1 { |
| 77 | clock-frequency = <2600000>; |
| 78 | |
| 79 | twl: twl@48 { |
| 80 | reg = <0x48>; |
| 81 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| Anil Kumar | e82be16 | 2013-02-04 20:25:07 +0530 | [diff] [blame] | 82 | |
| 83 | twl_audio: audio { |
| 84 | compatible = "ti,twl4030-audio"; |
| 85 | codec { |
| 86 | }; |
| 87 | }; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 88 | }; |
| 89 | }; |
| 90 | |
| 91 | &i2c2 { |
| 92 | status = "disabled"; |
| 93 | }; |
| 94 | |
| 95 | &i2c3 { |
| 96 | status = "disabled"; |
| 97 | }; |
| 98 | |
| Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 99 | #include "twl4030.dtsi" |
| Kevin Hilman | f968845 | 2013-05-31 14:09:34 -0700 | [diff] [blame] | 100 | #include "twl4030_omap3.dtsi" |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 101 | |
| 102 | &mmc1 { |
| 103 | vmmc-supply = <&vmmc1>; |
| 104 | vmmc_aux-supply = <&vsim>; |
| 105 | bus-width = <8>; |
| 106 | }; |
| 107 | |
| 108 | &mmc2 { |
| 109 | status = "disabled"; |
| 110 | }; |
| 111 | |
| 112 | &mmc3 { |
| 113 | status = "disabled"; |
| 114 | }; |
| 115 | |
| Anthoine Bourgeois | f678790 | 2015-08-04 22:53:27 +0200 | [diff] [blame] | 116 | &twl_gpio { |
| 117 | ti,use-leds; |
| 118 | /* |
| 119 | * pulldowns: |
| 120 | * BIT(1), BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) |
| 121 | * BIT(15), BIT(16), BIT(17) |
| 122 | */ |
| 123 | ti,pulldowns = <0x03a1c6>; |
| 124 | }; |
| 125 | |
| Anthoine Bourgeois | 26fa892 | 2015-08-04 22:53:28 +0200 | [diff] [blame^] | 126 | &twl_keypad { |
| 127 | linux,keymap = <MATRIX_KEY(0, 0, KEY_1) |
| 128 | MATRIX_KEY(1, 0, KEY_2) |
| 129 | MATRIX_KEY(2, 0, KEY_3) |
| 130 | MATRIX_KEY(0, 1, KEY_4) |
| 131 | MATRIX_KEY(1, 1, KEY_5) |
| 132 | MATRIX_KEY(2, 1, KEY_6) |
| 133 | MATRIX_KEY(3, 1, KEY_F5) |
| 134 | MATRIX_KEY(0, 2, KEY_7) |
| 135 | MATRIX_KEY(1, 2, KEY_8) |
| 136 | MATRIX_KEY(2, 2, KEY_9) |
| 137 | MATRIX_KEY(3, 2, KEY_F6) |
| 138 | MATRIX_KEY(0, 3, KEY_F7) |
| 139 | MATRIX_KEY(1, 3, KEY_0) |
| 140 | MATRIX_KEY(2, 3, KEY_F8) |
| 141 | MATRIX_KEY(4, 5, KEY_RESERVED) |
| 142 | MATRIX_KEY(4, 4, KEY_VOLUMEUP) |
| 143 | MATRIX_KEY(5, 5, KEY_VOLUMEDOWN) |
| 144 | >; |
| 145 | }; |
| 146 | |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 147 | &wdt2 { |
| 148 | status = "disabled"; |
| 149 | }; |
| 150 | |
| Peter Ujfalusi | 726322c | 2014-01-24 10:19:05 +0200 | [diff] [blame] | 151 | &mcbsp2 { |
| 152 | status = "okay"; |
| Anil Kumar | 4bfe634 | 2013-03-16 15:29:21 +0530 | [diff] [blame] | 153 | }; |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 154 | |
| 155 | &gpmc { |
| Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 156 | ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 157 | |
| 158 | nand@0,0 { |
| Tony Lindgren | e2c5eb7 | 2014-10-29 17:16:47 -0700 | [diff] [blame] | 159 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 160 | nand-bus-width = <16>; |
| Anthoine Bourgeois | ed38c65 | 2015-05-20 10:00:10 -0700 | [diff] [blame] | 161 | gpmc,device-width = <2>; |
| 162 | ti,nand-ecc-opt = "sw"; |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 163 | |
| Aaro Koskinen | 6283513b | 2013-09-21 02:40:14 +0300 | [diff] [blame] | 164 | gpmc,sync-clk-ps = <0>; |
| Florian Vaussard | 4942350 | 2013-05-23 10:11:37 +0200 | [diff] [blame] | 165 | gpmc,cs-on-ns = <0>; |
| 166 | gpmc,cs-rd-off-ns = <44>; |
| 167 | gpmc,cs-wr-off-ns = <44>; |
| 168 | gpmc,adv-on-ns = <6>; |
| 169 | gpmc,adv-rd-off-ns = <34>; |
| 170 | gpmc,adv-wr-off-ns = <44>; |
| 171 | gpmc,we-off-ns = <40>; |
| 172 | gpmc,oe-off-ns = <54>; |
| 173 | gpmc,access-ns = <64>; |
| 174 | gpmc,rd-cycle-ns = <82>; |
| 175 | gpmc,wr-cycle-ns = <82>; |
| 176 | gpmc,wr-access-ns = <40>; |
| 177 | gpmc,wr-data-mux-bus-ns = <0>; |
| Anil Kumar | 2f3bb9c | 2013-02-15 23:32:25 +0530 | [diff] [blame] | 178 | |
| 179 | #address-cells = <1>; |
| 180 | #size-cells = <1>; |
| 181 | |
| 182 | x-loader@0 { |
| 183 | label = "X-Loader"; |
| 184 | reg = <0 0x80000>; |
| 185 | }; |
| 186 | |
| 187 | bootloaders@80000 { |
| 188 | label = "U-Boot"; |
| 189 | reg = <0x80000 0x1e0000>; |
| 190 | }; |
| 191 | |
| 192 | bootloaders_env@260000 { |
| 193 | label = "U-Boot Env"; |
| 194 | reg = <0x260000 0x20000>; |
| 195 | }; |
| 196 | |
| 197 | kernel@280000 { |
| 198 | label = "Kernel"; |
| 199 | reg = <0x280000 0x400000>; |
| 200 | }; |
| 201 | |
| 202 | filesystem@680000 { |
| 203 | label = "File System"; |
| 204 | reg = <0x680000 0xf980000>; |
| 205 | }; |
| 206 | }; |
| 207 | }; |
| Anthoine Bourgeois | e04beeb | 2015-05-28 09:49:49 -0700 | [diff] [blame] | 208 | |
| 209 | &gpmc { |
| 210 | ranges = <6 0 0x2c000000 0x1000000>; /* CS6: 16MB for DM9000 */ |
| 211 | |
| 212 | ethernet@0,0 { |
| 213 | compatible = "davicom,dm9000"; |
| 214 | reg = <6 0x000 2 |
| 215 | 6 0x400 2>; /* CS6, offset 0 and 0x400, IO size 2 */ |
| 216 | bank-width = <2>; |
| 217 | interrupt-parent = <&gpio1>; |
| 218 | interrupts = <25 IRQ_TYPE_LEVEL_LOW>; |
| 219 | davicom,no-eeprom; |
| 220 | |
| 221 | gpmc,mux-add-data = <0>; |
| 222 | gpmc,device-width = <1>; |
| 223 | gpmc,wait-pin = <0>; |
| 224 | gpmc,cycle2cycle-samecsen = <1>; |
| 225 | gpmc,cycle2cycle-diffcsen = <1>; |
| 226 | |
| 227 | gpmc,cs-on-ns = <6>; |
| 228 | gpmc,cs-rd-off-ns = <180>; |
| 229 | gpmc,cs-wr-off-ns = <180>; |
| 230 | gpmc,adv-on-ns = <0>; |
| 231 | gpmc,adv-rd-off-ns = <18>; |
| 232 | gpmc,adv-wr-off-ns = <48>; |
| 233 | gpmc,oe-on-ns = <54>; |
| 234 | gpmc,oe-off-ns = <168>; |
| 235 | gpmc,we-on-ns = <54>; |
| 236 | gpmc,we-off-ns = <168>; |
| 237 | gpmc,rd-cycle-ns = <186>; |
| 238 | gpmc,wr-cycle-ns = <186>; |
| 239 | gpmc,access-ns = <144>; |
| 240 | gpmc,page-burst-access-ns = <24>; |
| 241 | gpmc,bus-turnaround-ns = <90>; |
| 242 | gpmc,cycle2cycle-delay-ns = <90>; |
| 243 | gpmc,wait-monitoring-ns = <0>; |
| 244 | gpmc,clk-activation-ns = <0>; |
| 245 | gpmc,wr-data-mux-bus-ns = <0>; |
| 246 | gpmc,wr-access-ns = <0>; |
| 247 | }; |
| 248 | }; |