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