2 * am335x-cm-t335.dts - Device Tree file for Compulab CM-T335
4 * Copyright (C) 2014 - 2015 CompuLab Ltd. - http://www.compulab.co.il/
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
13 #include "am33xx.dtsi"
14 #include <dt-bindings/interrupt-controller/irq.h>
17 model = "CompuLab CM-T335";
18 compatible = "compulab,cm-t335", "ti,am33xx";
21 device_type = "memory";
22 reg = <0x80000000 0x8000000>; /* 128 MB */
26 compatible = "gpio-leds";
27 pinctrl-names = "default";
28 pinctrl-0 = <&gpio_led_pins>;
30 label = "cm_t335:green";
31 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; /* gpio2_0 */
32 linux,default-trigger = "heartbeat";
36 /* regulator for mmc */
37 vmmc_fixed: fixedregulator0 {
38 compatible = "regulator-fixed";
39 regulator-name = "vmmc_fixed";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
44 /* Regulator for WiFi */
45 vwlan_fixed: fixedregulator2 {
46 compatible = "regulator-fixed";
47 regulator-name = "vwlan_fixed";
48 gpio = <&gpio0 20 GPIO_ACTIVE_HIGH>; /* gpio0_20 */
54 compatible = "pwm-backlight";
55 pwms = <&ecap0 0 50000 0>;
56 brightness-levels = <0 51 53 56 62 75 101 152 255>;
57 default-brightness-level = <8>;
61 compatible = "simple-audio-card";
62 simple-audio-card,name = "cm-t335";
64 simple-audio-card,widgets =
65 "Microphone", "Mic Jack",
67 "Headphone", "Headphone Jack";
69 simple-audio-card,routing =
70 "Headphone Jack", "LHPOUT",
71 "Headphone Jack", "RHPOUT",
76 simple-audio-card,format = "i2s";
77 simple-audio-card,bitclock-master = <&sound_master>;
78 simple-audio-card,frame-master = <&sound_master>;
80 simple-audio-card,cpu {
81 sound-dai = <&mcasp1>;
84 sound_master: simple-audio-card,codec {
85 sound-dai = <&tlv320aic23>;
86 system-clock-frequency = <12000000>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&bluetooth_pins>;
95 i2c0_pins: pinmux_i2c0_pins {
96 pinctrl-single,pins = <
97 AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLUP, MUX_MODE0)
98 AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT_PULLUP, MUX_MODE0)
102 i2c1_pins: pinmux_i2c1_pins {
103 pinctrl-single,pins = <
104 /* uart0_ctsn.i2c1_sda */
105 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT_PULLUP, MUX_MODE2)
106 /* uart0_rtsn.i2c1_scl */
107 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT_PULLUP, MUX_MODE2)
111 gpio_led_pins: pinmux_gpio_led_pins {
112 pinctrl-single,pins = <
113 /* gpmc_csn3.gpio2_0 */
114 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN3, PIN_OUTPUT, MUX_MODE7)
118 nandflash_pins: pinmux_nandflash_pins {
119 pinctrl-single,pins = <
120 AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE0)
121 AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE0)
122 AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE0)
123 AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE0)
124 AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE0)
125 AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE0)
126 AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE0)
127 AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE0)
128 AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE0)
129 /* gpmc_wpn.gpio0_30 */
130 AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLUP, MUX_MODE7)
131 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN0, PIN_OUTPUT, MUX_MODE0)
132 AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_OUTPUT, MUX_MODE0)
133 AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_OUTPUT, MUX_MODE0)
134 AM33XX_PADCONF(AM335X_PIN_GPMC_WEN, PIN_OUTPUT, MUX_MODE0)
135 AM33XX_PADCONF(AM335X_PIN_GPMC_BEN0_CLE, PIN_OUTPUT, MUX_MODE0)
139 uart0_pins: pinmux_uart0_pins {
140 pinctrl-single,pins = <
141 AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
142 AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
146 uart1_pins: pinmux_uart1_pins {
147 pinctrl-single,pins = <
148 AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
149 AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
150 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
151 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
155 dcan0_pins: pinmux_dcan0_pins {
156 pinctrl-single,pins = <
157 /* uart1_ctsn.dcan0_tx */
158 AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_OUTPUT, MUX_MODE2)
159 /* uart1_rtsn.dcan0_rx */
160 AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT, MUX_MODE2)
164 dcan1_pins: pinmux_dcan1_pins {
165 pinctrl-single,pins = <
166 /* uart1_rxd.dcan1_tx */
167 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_OUTPUT, MUX_MODE2)
168 /* uart1_txd.dcan1_rx */
169 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_INPUT, MUX_MODE2)
173 ecap0_pins: pinmux_ecap0_pins {
174 pinctrl-single,pins = <
175 AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, 0x0, MUX_MODE0)
179 cpsw_default: cpsw_default {
180 pinctrl-single,pins = <
182 /* mii1_tx_en.rgmii1_tctl */
183 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE2)
184 /* mii1_rxdv.rgmii1_rctl */
185 AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE2)
186 /* mii1_txd3.rgmii1_td3 */
187 AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE2)
188 /* mii1_txd2.rgmii1_td2 */
189 AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE2)
190 /* mii1_txd1.rgmii1_td1 */
191 AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_OUTPUT_PULLDOWN, MUX_MODE2)
192 /* mii1_txd0.rgmii1_td0 */
193 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE2)
194 /* mii1_txclk.rgmii1_tclk */
195 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE2)
196 /* mii1_rxclk.rgmii1_rclk */
197 AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE2)
198 /* mii1_rxd3.rgmii1_rd3 */
199 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE2)
200 /* mii1_rxd2.rgmii1_rd2 */
201 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE2)
202 /* mii1_rxd1.rgmii1_rd1 */
203 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE2)
204 /* mii1_rxd0.rgmii1_rd0 */
205 AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE2)
209 cpsw_sleep: cpsw_sleep {
210 pinctrl-single,pins = <
211 /* Slave 1 reset value */
212 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLDOWN, MUX_MODE7)
213 AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE7)
214 AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLDOWN, MUX_MODE7)
215 AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLDOWN, MUX_MODE7)
216 AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
217 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
218 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
219 AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
220 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE7)
221 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE7)
222 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
223 AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
227 davinci_mdio_default: davinci_mdio_default {
228 pinctrl-single,pins = <
229 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0)
230 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0)
234 davinci_mdio_sleep: davinci_mdio_sleep {
235 pinctrl-single,pins = <
236 /* MDIO reset value */
237 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLDOWN, MUX_MODE7)
238 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_INPUT_PULLDOWN, MUX_MODE7)
242 mmc1_pins: pinmux_mmc1_pins {
243 pinctrl-single,pins = <
244 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
245 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
246 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
247 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
248 AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
249 AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
253 spi0_pins: pinmux_spi0_pins {
254 pinctrl-single,pins = <
255 AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT, MUX_MODE0)
256 AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT_PULLUP, MUX_MODE0)
257 AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT, MUX_MODE0)
258 AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_OUTPUT, MUX_MODE0)
259 AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_OUTPUT, MUX_MODE0)
263 /* wl1271 bluetooth */
264 bluetooth_pins: pinmux_bluetooth_pins {
265 pinctrl-single,pins = <
266 /* XDMA_EVENT_INTR0.gpio0_19 - bluetooth enable */
267 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT_PULLUP, MUX_MODE7)
271 /* TLV320AIC23B codec */
272 mcasp1_pins: pinmux_mcasp1_pins {
273 pinctrl-single,pins = <
274 /* MII1_CRS.mcasp1_aclkx */
275 AM33XX_PADCONF(AM335X_PIN_MII1_CRS, PIN_INPUT_PULLDOWN, MUX_MODE4)
276 /* MII1_RX_ER.mcasp1_fsx */
277 AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLDOWN, MUX_MODE4)
278 /* MII1_COL.mcasp1_axr2 */
279 AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT_PULLDOWN, MUX_MODE4)
280 /* RMII1_REF_CLK.mcasp1_axr3 */
281 AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_INPUT_PULLDOWN, MUX_MODE4)
286 wifi_pins: pinmux_wifi_pins {
287 pinctrl-single,pins = <
288 /* EMU1.gpio3_8 - WiFi IRQ */
289 AM33XX_PADCONF(AM335X_PIN_EMU1, PIN_INPUT_PULLUP, MUX_MODE7)
290 /* XDMA_EVENT_INTR1.gpio0_20 - WiFi enable */
291 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_OUTPUT, MUX_MODE7)
297 pinctrl-names = "default";
298 pinctrl-0 = <&uart0_pins>;
303 /* WLS1271 bluetooth */
305 pinctrl-names = "default";
306 pinctrl-0 = <&uart1_pins>;
312 pinctrl-names = "default";
313 pinctrl-0 = <&i2c0_pins>;
316 clock-frequency = <400000>;
317 /* CM-T335 board EEPROM */
319 compatible = "atmel,24c02";
323 /* Real Time Clock */
325 compatible = "emmicro,em3027";
329 tlv320aic23: codec@1a {
330 compatible = "ti,tlv320aic23";
332 #sound-dai-cells= <0>;
362 pinctrl-names = "default";
363 pinctrl-0 = <&ecap0_pins>;
369 pinctrl-names = "default";
370 pinctrl-0 = <&nandflash_pins>;
371 ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */
373 compatible = "ti,omap2-nand";
374 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
375 interrupt-parent = <&gpmc>;
376 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
377 <1 IRQ_TYPE_NONE>; /* termcount */
378 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
379 ti,nand-ecc-opt = "bch8";
381 nand-bus-width = <8>;
382 gpmc,device-width = <1>;
383 gpmc,sync-clk-ps = <0>;
385 gpmc,cs-rd-off-ns = <44>;
386 gpmc,cs-wr-off-ns = <44>;
387 gpmc,adv-on-ns = <6>;
388 gpmc,adv-rd-off-ns = <34>;
389 gpmc,adv-wr-off-ns = <44>;
391 gpmc,we-off-ns = <40>;
393 gpmc,oe-off-ns = <54>;
394 gpmc,access-ns = <64>;
395 gpmc,rd-cycle-ns = <82>;
396 gpmc,wr-cycle-ns = <82>;
397 gpmc,bus-turnaround-ns = <0>;
398 gpmc,cycle2cycle-delay-ns = <0>;
399 gpmc,clk-activation-ns = <0>;
400 gpmc,wr-access-ns = <40>;
401 gpmc,wr-data-mux-bus-ns = <0>;
402 /* MTD partition table */
403 #address-cells = <1>;
407 reg = <0x00000000 0x00200000>;
411 reg = <0x00200000 0x00100000>;
414 label = "uboot environment";
415 reg = <0x00300000 0x00100000>;
419 reg = <0x00400000 0x00100000>;
423 reg = <0x00500000 0x00400000>;
427 reg = <0x00900000 0x00600000>;
431 reg = <0x00F00000 0>;
441 pinctrl-names = "default", "sleep";
442 pinctrl-0 = <&cpsw_default>;
443 pinctrl-1 = <&cpsw_sleep>;
449 pinctrl-names = "default", "sleep";
450 pinctrl-0 = <&davinci_mdio_default>;
451 pinctrl-1 = <&davinci_mdio_sleep>;
454 ethphy0: ethernet-phy@0 {
460 phy-handle = <ðphy0>;
461 phy-mode = "rgmii-txid";
466 vmmc-supply = <&vmmc_fixed>;
468 pinctrl-names = "default";
469 pinctrl-0 = <&mmc1_pins>;
474 pinctrl-names = "default";
475 pinctrl-0 = <&dcan0_pins>;
480 pinctrl-names = "default";
481 pinctrl-0 = <&dcan1_pins>;
484 /* Touschscreen and analog digital converter */
489 ti,x-plate-resistance = <200>;
490 ti,coordinate-readouts = <5>;
491 ti,wire-config = <0x01 0x10 0x23 0x32>;
492 ti,charge-delay = <0x400>;
496 ti,adc-channels = <4 5 6 7>;
502 pinctrl-names = "default";
503 pinctrl-0 = <&mcasp1_pins>;
505 op-mode = <0>; /* MCASP_IIS_MODE */
508 num-serializer = <16>;
509 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
510 0 0 2 1 0 0 0 0 0 0 0 0 0 0 0 0
515 #sound-dai-cells= <0>;
521 pinctrl-names = "default";
522 pinctrl-0 = <&spi0_pins>;
523 ti,pindir-d0-out-d1-in = <1>;
526 compatible = "ti,wl1271";
527 pinctrl-names = "default";
528 pinctrl-0 = <&wifi_pins>;
530 spi-max-frequency = <48000000>;
532 ref-clock-frequency = <38400000>;
533 interrupt-parent = <&gpio3>;
534 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
535 vwlan-supply = <&vwlan_fixed>;