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 device_type = "memory";
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>;
129 mcasp0_pins: pinmux_mcasp0_pins {
130 pinctrl-single,bits = <
131 /* AHCLKX AFSX ACLKX */
132 0x00 0x00101010 0x00f0f0f0
134 0x04 0x00000110 0x00000ff0
138 nand_pins: nand_pins {
139 pinctrl-single,bits = <
140 /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[3] */
141 0x1c 0x10110010 0xf0ff00f0
143 * EMA_D[0], EMA_D[1], EMA_D[2],
144 * EMA_D[3], EMA_D[4], EMA_D[5],
147 0x24 0x11111111 0xffffffff
149 * EMA_D[8], EMA_D[9], EMA_D[10],
150 * EMA_D[11], EMA_D[12], EMA_D[13],
151 * EMA_D[14], EMA_D[15]
153 0x20 0x11111111 0xffffffff
154 /* EMA_A[1], EMA_A[2] */
155 0x30 0x01100000 0x0ff00000
161 pinctrl-names = "default";
162 pinctrl-0 = <&serial2_rxtx_pins>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&mdio_pins>;
185 bus_freq = <2200000>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&mii_pins>;
196 max-frequency = <50000000>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&mmc0_pins>;
200 cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&i2c0_pins>;
207 clock-frequency = <100000>;
210 tlv320aic3106: tlv320aic3106@18 {
211 #sound-dai-cells = <0>;
212 compatible = "ti,tlv320aic3106";
219 #sound-dai-cells = <0>;
220 pinctrl-names = "default";
221 pinctrl-0 = <&mcasp0_pins>;
224 op-mode = <0>; /* DAVINCI_MCASP_IIS_MODE */
226 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
249 pinctrl-names = "default";
250 pinctrl-0 = <&nand_pins>;
253 #address-cells = <2>;
258 ti,cs-chipselect = <3>;
261 compatible = "ti,davinci-nand";
262 #address-cells = <1>;
264 reg = <0 0x02000000 0x02000000
265 1 0x00000000 0x00008000>;
267 ti,davinci-chipselect = <1>;
268 ti,davinci-mask-ale = <0>;
269 ti,davinci-mask-cle = <0>;
270 ti,davinci-mask-chipsel = <0>;
272 ti,davinci-nand-buswidth = <16>;
273 ti,davinci-ecc-mode = "hw";
274 ti,davinci-ecc-bits = <4>;
275 ti,davinci-nand-use-bbt;
278 * The OMAP-L132/L138 Bootloader doc SPRAB41E reads:
279 * "To boot from NAND Flash, the AIS should be written
280 * to NAND block 1 (NAND block 0 is not used by default)".
281 * The same doc mentions that for ROM "Silicon Revision 2.1",
282 * "Updated NAND boot mode to offer boot from block 0 or block 1".
283 * However the limitaion is left here by default for compatibility
284 * with older silicon and because it needs new boot pin settings
285 * not possible in stock LCDK.
288 compatible = "fixed-partitions";
289 #address-cells = <1>;
293 label = "u-boot env";
297 /* The LCDK defaults to booting from this partition */
299 reg = <0x020000 0x080000>;
302 label = "free space";
320 pinctrl-names = "default";
321 pinctrl-0 = <&lcd_pins>;
324 lcdc_out_vga: endpoint {
325 remote-endpoint = <&vga_bridge_in>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&vpif_capture_pins>;
337 memory-region = <&dsp_memory_region>;