2 * Copyright (c) 2016 BayLibre, Inc.
4 * Licensed under GPLv2.
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
12 model = "DA850/AM1808/OMAP-L138 LCDK";
13 compatible = "ti,da850-lcdk", "ti,da850";
21 stdout-path = "serial2:115200n8";
25 /* 128 MB DDR2 SDRAM @ 0xc0000000 */
26 reg = <0xc0000000 0x08000000>;
34 dsp_memory_region: dsp-memory@c3000000 {
35 compatible = "shared-dma-pool";
36 reg = <0xc3000000 0x1000000>;
43 compatible = "simple-audio-card";
44 simple-audio-card,name = "DA850/OMAP-L138 LCDK";
45 simple-audio-card,widgets =
48 simple-audio-card,routing =
53 simple-audio-card,format = "dsp_b";
54 simple-audio-card,bitclock-master = <&link0_codec>;
55 simple-audio-card,frame-master = <&link0_codec>;
56 simple-audio-card,bitclock-inversion;
58 simple-audio-card,cpu {
59 sound-dai = <&mcasp0>;
60 system-clock-frequency = <24576000>;
63 link0_codec: simple-audio-card,codec {
64 sound-dai = <&tlv320aic3106>;
65 system-clock-frequency = <24576000>;
70 compatible = "gpio-keys";
74 label = "GPIO Key USER1";
76 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
80 label = "GPIO Key USER2";
82 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
87 compatible = "ti,ths8135";
98 vga_bridge_in: endpoint {
99 remote-endpoint = <&lcdc_out_vga>;
106 vga_bridge_out: endpoint {
107 remote-endpoint = <&vga_con_in>;
114 compatible = "vga-connector";
116 ddc-i2c-bus = <&i2c0>;
119 vga_con_in: endpoint {
120 remote-endpoint = <&vga_bridge_out>;
127 clock-frequency = <24000000>;
133 mcasp0_pins: pinmux_mcasp0_pins {
134 pinctrl-single,bits = <
135 /* AHCLKX AFSX ACLKX */
136 0x00 0x00101010 0x00f0f0f0
138 0x04 0x00000110 0x00000ff0
142 nand_pins: nand_pins {
143 pinctrl-single,bits = <
144 /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[3] */
145 0x1c 0x10110010 0xf0ff00f0
147 * EMA_D[0], EMA_D[1], EMA_D[2],
148 * EMA_D[3], EMA_D[4], EMA_D[5],
151 0x24 0x11111111 0xffffffff
153 * EMA_D[8], EMA_D[9], EMA_D[10],
154 * EMA_D[11], EMA_D[12], EMA_D[13],
155 * EMA_D[14], EMA_D[15]
157 0x20 0x11111111 0xffffffff
158 /* EMA_A[1], EMA_A[2] */
159 0x30 0x01100000 0x0ff00000
165 pinctrl-names = "default";
166 pinctrl-0 = <&serial2_rxtx_pins>;
184 clock-frequency = <100000000>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&mdio_pins>;
194 bus_freq = <2200000>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&mii_pins>;
205 max-frequency = <50000000>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&mmc0_pins>;
209 cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&i2c0_pins>;
216 clock-frequency = <100000>;
219 tlv320aic3106: tlv320aic3106@18 {
220 #sound-dai-cells = <0>;
221 compatible = "ti,tlv320aic3106";
228 #sound-dai-cells = <0>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&mcasp0_pins>;
233 op-mode = <0>; /* DAVINCI_MCASP_IIS_MODE */
235 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
258 pinctrl-names = "default";
259 pinctrl-0 = <&nand_pins>;
262 #address-cells = <2>;
267 ti,cs-chipselect = <3>;
270 compatible = "ti,davinci-nand";
271 #address-cells = <1>;
273 reg = <0 0x02000000 0x02000000
274 1 0x00000000 0x00008000>;
276 ti,davinci-chipselect = <1>;
277 ti,davinci-mask-ale = <0>;
278 ti,davinci-mask-cle = <0>;
279 ti,davinci-mask-chipsel = <0>;
281 ti,davinci-nand-buswidth = <16>;
282 ti,davinci-ecc-mode = "hw";
283 ti,davinci-ecc-bits = <4>;
284 ti,davinci-nand-use-bbt;
287 * The OMAP-L132/L138 Bootloader doc SPRAB41E reads:
288 * "To boot from NAND Flash, the AIS should be written
289 * to NAND block 1 (NAND block 0 is not used by default)".
290 * The same doc mentions that for ROM "Silicon Revision 2.1",
291 * "Updated NAND boot mode to offer boot from block 0 or block 1".
292 * However the limitaion is left here by default for compatibility
293 * with older silicon and because it needs new boot pin settings
294 * not possible in stock LCDK.
297 compatible = "fixed-partitions";
298 #address-cells = <1>;
302 label = "u-boot env";
306 /* The LCDK defaults to booting from this partition */
308 reg = <0x020000 0x080000>;
311 label = "free space";
329 pinctrl-names = "default";
330 pinctrl-0 = <&lcd_pins>;
333 lcdc_out_vga: endpoint {
334 remote-endpoint = <&vga_bridge_in>;
340 pinctrl-names = "default";
341 pinctrl-0 = <&vpif_capture_pins>;
346 memory-region = <&dsp_memory_region>;