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 /* i2c0_sda.i2c0_sda */
98 AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)
99 /* i2c0_scl.i2c0_scl */
100 AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)
104 i2c1_pins: pinmux_i2c1_pins {
105 pinctrl-single,pins = <
106 /* uart0_ctsn.i2c1_sda */
107 AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE2)
108 /* uart0_rtsn.i2c1_scl */
109 AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE2)
113 gpio_led_pins: pinmux_gpio_led_pins {
114 pinctrl-single,pins = <
115 /* gpmc_csn3.gpio2_0 */
116 AM33XX_IOPAD(0x888, PIN_OUTPUT | MUX_MODE7)
120 nandflash_pins: pinmux_nandflash_pins {
121 pinctrl-single,pins = <
122 /* gpmc_ad0.gpmc_ad0 */
123 AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE0)
124 /* gpmc_ad1.gpmc_ad1 */
125 AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE0)
126 /* gpmc_ad2.gpmc_ad2 */
127 AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE0)
128 /* gpmc_ad3.gpmc_ad3 */
129 AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE0)
130 /* gpmc_ad4.gpmc_ad4 */
131 AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE0)
132 /* gpmc_ad5.gpmc_ad5 */
133 AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE0)
134 /* gpmc_ad6.gpmc_ad6 */
135 AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE0)
136 /* gpmc_ad7.gpmc_ad7 */
137 AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE0)
138 /* gpmc_wait0.gpmc_wait0 */
139 AM33XX_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0)
140 /* gpmc_wpn.gpio0_30 */
141 AM33XX_IOPAD(0x874, PIN_INPUT_PULLUP | MUX_MODE7)
142 /* gpmc_csn0.gpmc_csn0 */
143 AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0)
144 /* gpmc_advn_ale.gpmc_advn_ale */
145 AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0)
146 /* gpmc_oen_ren.gpmc_oen_ren */
147 AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0)
148 /* gpmc_wen.gpmc_wen */
149 AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0)
150 /* gpmc_ben0_cle.gpmc_ben0_cle */
151 AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0)
155 uart0_pins: pinmux_uart0_pins {
156 pinctrl-single,pins = <
157 /* uart0_rxd.uart0_rxd */
158 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)
159 /* uart0_txd.uart0_txd */
160 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
164 uart1_pins: pinmux_uart1_pins {
165 pinctrl-single,pins = <
166 /* uart1_ctsn.uart1_ctsn */
167 AM33XX_IOPAD(0x978, PIN_INPUT | MUX_MODE0)
168 /* uart1_rtsn.uart1_rtsn */
169 AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
170 /* uart1_rxd.uart1_rxd */
171 AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0)
172 /* uart1_txd.uart1_txd */
173 AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
177 dcan0_pins: pinmux_dcan0_pins {
178 pinctrl-single,pins = <
179 /* uart1_ctsn.dcan0_tx */
180 AM33XX_IOPAD(0x978, PIN_OUTPUT | MUX_MODE2)
181 /* uart1_rtsn.dcan0_rx */
182 AM33XX_IOPAD(0x97C, PIN_INPUT | MUX_MODE2)
186 dcan1_pins: pinmux_dcan1_pins {
187 pinctrl-single,pins = <
188 /* uart1_rxd.dcan1_tx */
189 AM33XX_IOPAD(0x980, PIN_OUTPUT | MUX_MODE2)
190 /* uart1_txd.dcan1_rx */
191 AM33XX_IOPAD(0x984, PIN_INPUT | MUX_MODE2)
195 ecap0_pins: pinmux_ecap0_pins {
196 pinctrl-single,pins = <
197 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
198 AM33XX_IOPAD(0x964, 0x0)
202 cpsw_default: cpsw_default {
203 pinctrl-single,pins = <
205 /* mii1_tx_en.rgmii1_tctl */
206 AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
207 /* mii1_rxdv.rgmii1_rctl */
208 AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2)
209 /* mii1_txd3.rgmii1_td3 */
210 AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
211 /* mii1_txd2.rgmii1_td2 */
212 AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
213 /* mii1_txd1.rgmii1_td1 */
214 AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
215 /* mii1_txd0.rgmii1_td0 */
216 AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
217 /* mii1_txclk.rgmii1_tclk */
218 AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
219 /* mii1_rxclk.rgmii1_rclk */
220 AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2)
221 /* mii1_rxd3.rgmii1_rd3 */
222 AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2)
223 /* mii1_rxd2.rgmii1_rd2 */
224 AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2)
225 /* mii1_rxd1.rgmii1_rd1 */
226 AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2)
227 /* mii1_rxd0.rgmii1_rd0 */
228 AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2)
232 cpsw_sleep: cpsw_sleep {
233 pinctrl-single,pins = <
234 /* Slave 1 reset value */
235 AM33XX_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
236 AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
237 AM33XX_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
238 AM33XX_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
239 AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
240 AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
241 AM33XX_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
242 AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
243 AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
244 AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
245 AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
246 AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
250 davinci_mdio_default: davinci_mdio_default {
251 pinctrl-single,pins = <
252 /* mdio_data.mdio_data */
253 AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)
254 /* mdio_clk.mdio_clk */
255 AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0)
259 davinci_mdio_sleep: davinci_mdio_sleep {
260 pinctrl-single,pins = <
261 /* MDIO reset value */
262 AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
263 AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
267 mmc1_pins: pinmux_mmc1_pins {
268 pinctrl-single,pins = <
269 /* mmc0_dat3.mmc0_dat3 */
270 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0)
271 /* mmc0_dat2.mmc0_dat2 */
272 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0)
273 /* mmc0_dat1.mmc0_dat1 */
274 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0)
275 /* mmc0_dat0.mmc0_dat0 */
276 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0)
277 /* mmc0_clk.mmc0_clk */
278 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)
279 /* mmc0_cmd.mmc0_cmd */
280 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)
284 spi0_pins: pinmux_spi0_pins {
285 pinctrl-single,pins = <
286 /* spi0_sclk.spi0_sclk */
287 AM33XX_IOPAD(0x950, PIN_INPUT | MUX_MODE0)
288 /* spi0_d0.spi0_d0 */
289 AM33XX_IOPAD(0x954, PIN_OUTPUT_PULLUP | MUX_MODE0)
290 /* spi0_d1.spi0_d1 */
291 AM33XX_IOPAD(0x958, PIN_INPUT | MUX_MODE0)
292 /* spi0_cs0.spi0_cs0 */
293 AM33XX_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0)
294 /* spi0_cs1.spi0_cs1 */
295 AM33XX_IOPAD(0x960, PIN_OUTPUT | MUX_MODE0)
299 /* wl1271 bluetooth */
300 bluetooth_pins: pinmux_bluetooth_pins {
301 pinctrl-single,pins = <
302 /* XDMA_EVENT_INTR0.gpio0_19 - bluetooth enable */
303 AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLUP | MUX_MODE7)
307 /* TLV320AIC23B codec */
308 mcasp1_pins: pinmux_mcasp1_pins {
309 pinctrl-single,pins = <
310 /* MII1_CRS.mcasp1_aclkx */
311 AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE4)
312 /* MII1_RX_ER.mcasp1_fsx */
313 AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE4)
314 /* MII1_COL.mcasp1_axr2 */
315 AM33XX_IOPAD(0x908, PIN_INPUT_PULLDOWN | MUX_MODE4)
316 /* RMII1_REF_CLK.mcasp1_axr3 */
317 AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE4)
322 wifi_pins: pinmux_wifi_pins {
323 pinctrl-single,pins = <
324 /* EMU1.gpio3_8 - WiFi IRQ */
325 AM33XX_IOPAD(0x9e8, PIN_INPUT_PULLUP | MUX_MODE7)
326 /* XDMA_EVENT_INTR1.gpio0_20 - WiFi enable */
327 AM33XX_IOPAD(0x9b4, PIN_OUTPUT | MUX_MODE7)
333 pinctrl-names = "default";
334 pinctrl-0 = <&uart0_pins>;
339 /* WLS1271 bluetooth */
341 pinctrl-names = "default";
342 pinctrl-0 = <&uart1_pins>;
348 pinctrl-names = "default";
349 pinctrl-0 = <&i2c0_pins>;
352 clock-frequency = <400000>;
353 /* CM-T335 board EEPROM */
355 compatible = "atmel,24c02";
359 /* Real Time Clock */
361 compatible = "emmicro,em3027";
365 tlv320aic23: codec@1a {
366 compatible = "ti,tlv320aic23";
368 #sound-dai-cells= <0>;
396 ecap0: ecap@48300100 {
398 pinctrl-names = "default";
399 pinctrl-0 = <&ecap0_pins>;
405 pinctrl-names = "default";
406 pinctrl-0 = <&nandflash_pins>;
407 ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */
409 compatible = "ti,omap2-nand";
410 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
411 interrupt-parent = <&gpmc>;
412 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
413 <1 IRQ_TYPE_NONE>; /* termcount */
414 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
415 ti,nand-ecc-opt = "bch8";
417 nand-bus-width = <8>;
418 gpmc,device-width = <1>;
419 gpmc,sync-clk-ps = <0>;
421 gpmc,cs-rd-off-ns = <44>;
422 gpmc,cs-wr-off-ns = <44>;
423 gpmc,adv-on-ns = <6>;
424 gpmc,adv-rd-off-ns = <34>;
425 gpmc,adv-wr-off-ns = <44>;
427 gpmc,we-off-ns = <40>;
429 gpmc,oe-off-ns = <54>;
430 gpmc,access-ns = <64>;
431 gpmc,rd-cycle-ns = <82>;
432 gpmc,wr-cycle-ns = <82>;
433 gpmc,bus-turnaround-ns = <0>;
434 gpmc,cycle2cycle-delay-ns = <0>;
435 gpmc,clk-activation-ns = <0>;
436 gpmc,wr-access-ns = <40>;
437 gpmc,wr-data-mux-bus-ns = <0>;
438 /* MTD partition table */
439 #address-cells = <1>;
443 reg = <0x00000000 0x00200000>;
447 reg = <0x00200000 0x00100000>;
450 label = "uboot environment";
451 reg = <0x00300000 0x00100000>;
455 reg = <0x00400000 0x00100000>;
459 reg = <0x00500000 0x00400000>;
463 reg = <0x00900000 0x00600000>;
467 reg = <0x00F00000 0>;
477 pinctrl-names = "default", "sleep";
478 pinctrl-0 = <&cpsw_default>;
479 pinctrl-1 = <&cpsw_sleep>;
485 pinctrl-names = "default", "sleep";
486 pinctrl-0 = <&davinci_mdio_default>;
487 pinctrl-1 = <&davinci_mdio_sleep>;
492 phy_id = <&davinci_mdio>, <0>;
493 phy-mode = "rgmii-txid";
498 vmmc-supply = <&vmmc_fixed>;
500 pinctrl-names = "default";
501 pinctrl-0 = <&mmc1_pins>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&dcan0_pins>;
512 pinctrl-names = "default";
513 pinctrl-0 = <&dcan1_pins>;
516 /* Touschscreen and analog digital converter */
521 ti,x-plate-resistance = <200>;
522 ti,coordinate-readouts = <5>;
523 ti,wire-config = <0x01 0x10 0x23 0x32>;
524 ti,charge-delay = <0x400>;
528 ti,adc-channels = <4 5 6 7>;
534 pinctrl-names = "default";
535 pinctrl-0 = <&mcasp1_pins>;
537 op-mode = <0>; /* MCASP_IIS_MODE */
540 num-serializer = <16>;
541 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
542 0 0 2 1 0 0 0 0 0 0 0 0 0 0 0 0
547 #sound-dai-cells= <0>;
553 pinctrl-names = "default";
554 pinctrl-0 = <&spi0_pins>;
555 ti,pindir-d0-out-d1-in = <1>;
558 compatible = "ti,wl1271";
559 pinctrl-names = "default";
560 pinctrl-0 = <&wifi_pins>;
562 spi-max-frequency = <48000000>;
564 ref-clock-frequency = <38400000>;
565 interrupt-parent = <&gpio3>;
566 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
567 vwlan-supply = <&vwlan_fixed>;