]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/omap3-devkit8000.dts
ARM: dts: omap3-devkit8000: Add S-video output support
[karo-tx-linux.git] / arch / arm / boot / dts / omap3-devkit8000.dts
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
10 #include <dt-bindings/input/input.h>
11
12 #include "omap34xx.dtsi"
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";
27                         gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>;   /* 186 -> LED1 */
28                         default-state = "on";
29                         linux,default-trigger = "heartbeat";
30                 };
31
32                 mmc {
33                         label = "devkit8000::led2";
34                         gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;    /* 163 -> LED2 */
35                         default-state = "on";
36                         linux,default-trigger = "none";
37                 };
38
39                 usr {
40                         label = "devkit8000::led3";
41                         gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>;    /* 164 -> LED3 */
42                         default-state = "on";
43                         linux,default-trigger = "usr";
44                 };
45
46                 pmu_stat {
47                         label = "devkit8000::pmu_stat";
48                         gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
49                 };
50         };
51
52         sound {
53                 compatible = "ti,omap-twl4030";
54                 ti,model = "devkit8000";
55
56                 ti,mcbsp = <&mcbsp2>;
57                 ti,audio-routing =
58                         "Ext Spk", "PREDRIVEL",
59                         "Ext Spk", "PREDRIVER",
60                         "MAINMIC", "Main Mic",
61                         "Main Mic", "Mic Bias 1";
62         };
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         };
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         };
85 };
86
87 &i2c1 {
88         clock-frequency = <2600000>;
89
90         twl: twl@48 {
91                 reg = <0x48>;
92                 interrupts = <7>;       /* SYS_NIRQ cascaded to intc */
93
94                 twl_audio: audio {
95                         compatible = "ti,twl4030-audio";
96                         codec {
97                         };
98                 };
99         };
100 };
101
102 &i2c2 {
103         status = "disabled";
104 };
105
106 &i2c3 {
107         status = "disabled";
108 };
109
110 #include "twl4030.dtsi"
111 #include "twl4030_omap3.dtsi"
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
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
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
158 &wdt2 {
159         status = "disabled";
160 };
161
162 &mcbsp2 {
163         status = "okay";
164 };
165
166 &gpmc {
167         ranges = <0 0 0x30000000 0x1000000>;       /* CS0: 16MB for NAND */
168
169         nand@0,0 {
170                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
171                 nand-bus-width = <16>;
172                 gpmc,device-width = <2>;
173                 ti,nand-ecc-opt = "sw";
174
175                 gpmc,sync-clk-ps = <0>;
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>;
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 };
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 };
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 };