am335x-cm-t335.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. /*
  2. * am335x-cm-t335.dts - Device Tree file for Compulab CM-T335
  3. *
  4. * Copyright (C) 2014 - 2015 CompuLab Ltd. - http://www.compulab.co.il/
  5. *
  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.
  9. */
  10. /dts-v1/;
  11. #include "am33xx.dtsi"
  12. #include <dt-bindings/interrupt-controller/irq.h>
  13. / {
  14. model = "CompuLab CM-T335";
  15. compatible = "compulab,cm-t335", "ti,am33xx";
  16. memory@80000000 {
  17. device_type = "memory";
  18. reg = <0x80000000 0x8000000>; /* 128 MB */
  19. };
  20. leds {
  21. compatible = "gpio-leds";
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&gpio_led_pins>;
  24. led0 {
  25. label = "cm_t335:green";
  26. gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; /* gpio2_0 */
  27. linux,default-trigger = "heartbeat";
  28. };
  29. };
  30. /* regulator for mmc */
  31. vmmc_fixed: fixedregulator0 {
  32. compatible = "regulator-fixed";
  33. regulator-name = "vmmc_fixed";
  34. regulator-min-microvolt = <3300000>;
  35. regulator-max-microvolt = <3300000>;
  36. };
  37. /* Regulator for WiFi */
  38. vwlan_fixed: fixedregulator2 {
  39. compatible = "regulator-fixed";
  40. regulator-name = "vwlan_fixed";
  41. gpio = <&gpio0 20 GPIO_ACTIVE_HIGH>; /* gpio0_20 */
  42. enable-active-high;
  43. regulator-boot-off;
  44. };
  45. backlight {
  46. compatible = "pwm-backlight";
  47. pwms = <&ecap0 0 50000 0>;
  48. brightness-levels = <0 51 53 56 62 75 101 152 255>;
  49. default-brightness-level = <8>;
  50. };
  51. sound {
  52. compatible = "simple-audio-card";
  53. simple-audio-card,name = "cm-t335";
  54. simple-audio-card,widgets =
  55. "Microphone", "Mic Jack",
  56. "Line", "Line In",
  57. "Headphone", "Headphone Jack";
  58. simple-audio-card,routing =
  59. "Headphone Jack", "LHPOUT",
  60. "Headphone Jack", "RHPOUT",
  61. "LLINEIN", "Line In",
  62. "RLINEIN", "Line In",
  63. "MICIN", "Mic Jack";
  64. simple-audio-card,format = "i2s";
  65. simple-audio-card,bitclock-master = <&sound_master>;
  66. simple-audio-card,frame-master = <&sound_master>;
  67. simple-audio-card,cpu {
  68. sound-dai = <&mcasp1>;
  69. };
  70. sound_master: simple-audio-card,codec {
  71. sound-dai = <&tlv320aic23>;
  72. system-clock-frequency = <12000000>;
  73. };
  74. };
  75. };
  76. &am33xx_pinmux {
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&bluetooth_pins>;
  79. i2c0_pins: pinmux_i2c0_pins {
  80. pinctrl-single,pins = <
  81. /* i2c0_sda.i2c0_sda */
  82. AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)
  83. /* i2c0_scl.i2c0_scl */
  84. AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)
  85. >;
  86. };
  87. i2c1_pins: pinmux_i2c1_pins {
  88. pinctrl-single,pins = <
  89. /* uart0_ctsn.i2c1_sda */
  90. AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE2)
  91. /* uart0_rtsn.i2c1_scl */
  92. AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE2)
  93. >;
  94. };
  95. gpio_led_pins: pinmux_gpio_led_pins {
  96. pinctrl-single,pins = <
  97. /* gpmc_csn3.gpio2_0 */
  98. AM33XX_IOPAD(0x888, PIN_OUTPUT | MUX_MODE7)
  99. >;
  100. };
  101. nandflash_pins: pinmux_nandflash_pins {
  102. pinctrl-single,pins = <
  103. /* gpmc_ad0.gpmc_ad0 */
  104. AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE0)
  105. /* gpmc_ad1.gpmc_ad1 */
  106. AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE0)
  107. /* gpmc_ad2.gpmc_ad2 */
  108. AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE0)
  109. /* gpmc_ad3.gpmc_ad3 */
  110. AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE0)
  111. /* gpmc_ad4.gpmc_ad4 */
  112. AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE0)
  113. /* gpmc_ad5.gpmc_ad5 */
  114. AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE0)
  115. /* gpmc_ad6.gpmc_ad6 */
  116. AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE0)
  117. /* gpmc_ad7.gpmc_ad7 */
  118. AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE0)
  119. /* gpmc_wait0.gpmc_wait0 */
  120. AM33XX_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0)
  121. /* gpmc_wpn.gpio0_30 */
  122. AM33XX_IOPAD(0x874, PIN_INPUT_PULLUP | MUX_MODE7)
  123. /* gpmc_csn0.gpmc_csn0 */
  124. AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0)
  125. /* gpmc_advn_ale.gpmc_advn_ale */
  126. AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0)
  127. /* gpmc_oen_ren.gpmc_oen_ren */
  128. AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0)
  129. /* gpmc_wen.gpmc_wen */
  130. AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0)
  131. /* gpmc_ben0_cle.gpmc_ben0_cle */
  132. AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0)
  133. >;
  134. };
  135. uart0_pins: pinmux_uart0_pins {
  136. pinctrl-single,pins = <
  137. /* uart0_rxd.uart0_rxd */
  138. AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)
  139. /* uart0_txd.uart0_txd */
  140. AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
  141. >;
  142. };
  143. uart1_pins: pinmux_uart1_pins {
  144. pinctrl-single,pins = <
  145. /* uart1_ctsn.uart1_ctsn */
  146. AM33XX_IOPAD(0x978, PIN_INPUT | MUX_MODE0)
  147. /* uart1_rtsn.uart1_rtsn */
  148. AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
  149. /* uart1_rxd.uart1_rxd */
  150. AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0)
  151. /* uart1_txd.uart1_txd */
  152. AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
  153. >;
  154. };
  155. dcan0_pins: pinmux_dcan0_pins {
  156. pinctrl-single,pins = <
  157. /* uart1_ctsn.dcan0_tx */
  158. AM33XX_IOPAD(0x978, PIN_OUTPUT | MUX_MODE2)
  159. /* uart1_rtsn.dcan0_rx */
  160. AM33XX_IOPAD(0x97C, PIN_INPUT | MUX_MODE2)
  161. >;
  162. };
  163. dcan1_pins: pinmux_dcan1_pins {
  164. pinctrl-single,pins = <
  165. /* uart1_rxd.dcan1_tx */
  166. AM33XX_IOPAD(0x980, PIN_OUTPUT | MUX_MODE2)
  167. /* uart1_txd.dcan1_rx */
  168. AM33XX_IOPAD(0x984, PIN_INPUT | MUX_MODE2)
  169. >;
  170. };
  171. ecap0_pins: pinmux_ecap0_pins {
  172. pinctrl-single,pins = <
  173. /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
  174. AM33XX_IOPAD(0x964, 0x0)
  175. >;
  176. };
  177. cpsw_default: cpsw_default {
  178. pinctrl-single,pins = <
  179. /* Slave 1 */
  180. /* mii1_tx_en.rgmii1_tctl */
  181. AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
  182. /* mii1_rxdv.rgmii1_rctl */
  183. AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2)
  184. /* mii1_txd3.rgmii1_td3 */
  185. AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
  186. /* mii1_txd2.rgmii1_td2 */
  187. AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
  188. /* mii1_txd1.rgmii1_td1 */
  189. AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
  190. /* mii1_txd0.rgmii1_td0 */
  191. AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
  192. /* mii1_txclk.rgmii1_tclk */
  193. AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)
  194. /* mii1_rxclk.rgmii1_rclk */
  195. AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2)
  196. /* mii1_rxd3.rgmii1_rd3 */
  197. AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2)
  198. /* mii1_rxd2.rgmii1_rd2 */
  199. AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2)
  200. /* mii1_rxd1.rgmii1_rd1 */
  201. AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2)
  202. /* mii1_rxd0.rgmii1_rd0 */
  203. AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2)
  204. >;
  205. };
  206. cpsw_sleep: cpsw_sleep {
  207. pinctrl-single,pins = <
  208. /* Slave 1 reset value */
  209. AM33XX_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
  210. AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
  211. AM33XX_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
  212. AM33XX_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
  213. AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
  214. AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
  215. AM33XX_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
  216. AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
  217. AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
  218. AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
  219. AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
  220. AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
  221. >;
  222. };
  223. davinci_mdio_default: davinci_mdio_default {
  224. pinctrl-single,pins = <
  225. /* mdio_data.mdio_data */
  226. AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)
  227. /* mdio_clk.mdio_clk */
  228. AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0)
  229. >;
  230. };
  231. davinci_mdio_sleep: davinci_mdio_sleep {
  232. pinctrl-single,pins = <
  233. /* MDIO reset value */
  234. AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
  235. AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
  236. >;
  237. };
  238. mmc1_pins: pinmux_mmc1_pins {
  239. pinctrl-single,pins = <
  240. /* mmc0_dat3.mmc0_dat3 */
  241. AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0)
  242. /* mmc0_dat2.mmc0_dat2 */
  243. AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0)
  244. /* mmc0_dat1.mmc0_dat1 */
  245. AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0)
  246. /* mmc0_dat0.mmc0_dat0 */
  247. AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0)
  248. /* mmc0_clk.mmc0_clk */
  249. AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)
  250. /* mmc0_cmd.mmc0_cmd */
  251. AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)
  252. >;
  253. };
  254. spi0_pins: pinmux_spi0_pins {
  255. pinctrl-single,pins = <
  256. /* spi0_sclk.spi0_sclk */
  257. AM33XX_IOPAD(0x950, PIN_INPUT | MUX_MODE0)
  258. /* spi0_d0.spi0_d0 */
  259. AM33XX_IOPAD(0x954, PIN_OUTPUT_PULLUP | MUX_MODE0)
  260. /* spi0_d1.spi0_d1 */
  261. AM33XX_IOPAD(0x958, PIN_INPUT | MUX_MODE0)
  262. /* spi0_cs0.spi0_cs0 */
  263. AM33XX_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0)
  264. /* spi0_cs1.spi0_cs1 */
  265. AM33XX_IOPAD(0x960, PIN_OUTPUT | MUX_MODE0)
  266. >;
  267. };
  268. /* wl1271 bluetooth */
  269. bluetooth_pins: pinmux_bluetooth_pins {
  270. pinctrl-single,pins = <
  271. /* XDMA_EVENT_INTR0.gpio0_19 - bluetooth enable */
  272. AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLUP | MUX_MODE7)
  273. >;
  274. };
  275. /* TLV320AIC23B codec */
  276. mcasp1_pins: pinmux_mcasp1_pins {
  277. pinctrl-single,pins = <
  278. /* MII1_CRS.mcasp1_aclkx */
  279. AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE4)
  280. /* MII1_RX_ER.mcasp1_fsx */
  281. AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE4)
  282. /* MII1_COL.mcasp1_axr2 */
  283. AM33XX_IOPAD(0x908, PIN_INPUT_PULLDOWN | MUX_MODE4)
  284. /* RMII1_REF_CLK.mcasp1_axr3 */
  285. AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE4)
  286. >;
  287. };
  288. /* wl1271 WiFi */
  289. wifi_pins: pinmux_wifi_pins {
  290. pinctrl-single,pins = <
  291. /* EMU1.gpio3_8 - WiFi IRQ */
  292. AM33XX_IOPAD(0x9e8, PIN_INPUT_PULLUP | MUX_MODE7)
  293. /* XDMA_EVENT_INTR1.gpio0_20 - WiFi enable */
  294. AM33XX_IOPAD(0x9b4, PIN_OUTPUT | MUX_MODE7)
  295. >;
  296. };
  297. };
  298. &uart0 {
  299. pinctrl-names = "default";
  300. pinctrl-0 = <&uart0_pins>;
  301. status = "okay";
  302. };
  303. /* WLS1271 bluetooth */
  304. &uart1 {
  305. pinctrl-names = "default";
  306. pinctrl-0 = <&uart1_pins>;
  307. status = "okay";
  308. };
  309. &i2c0 {
  310. pinctrl-names = "default";
  311. pinctrl-0 = <&i2c0_pins>;
  312. status = "okay";
  313. clock-frequency = <400000>;
  314. /* CM-T335 board EEPROM */
  315. eeprom: 24c02@50 {
  316. compatible = "atmel,24c02";
  317. reg = <0x50>;
  318. pagesize = <16>;
  319. };
  320. /* Real Time Clock */
  321. ext_rtc: em3027@56 {
  322. compatible = "emmicro,em3027";
  323. reg = <0x56>;
  324. };
  325. /* Audio codec */
  326. tlv320aic23: codec@1a {
  327. compatible = "ti,tlv320aic23";
  328. reg = <0x1a>;
  329. #sound-dai-cells= <0>;
  330. status = "okay";
  331. };
  332. };
  333. &usb {
  334. status = "okay";
  335. };
  336. &usb_ctrl_mod {
  337. status = "okay";
  338. };
  339. &usb0_phy {
  340. status = "okay";
  341. };
  342. &usb0 {
  343. status = "okay";
  344. };
  345. &cppi41dma {
  346. status = "okay";
  347. };
  348. &epwmss0 {
  349. status = "okay";
  350. ecap0: ecap@48300100 {
  351. status = "okay";
  352. pinctrl-names = "default";
  353. pinctrl-0 = <&ecap0_pins>;
  354. };
  355. };
  356. &gpmc {
  357. status = "okay";
  358. pinctrl-names = "default";
  359. pinctrl-0 = <&nandflash_pins>;
  360. ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */
  361. nand@0,0 {
  362. compatible = "ti,omap2-nand";
  363. reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
  364. interrupt-parent = <&gpmc>;
  365. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  366. <1 IRQ_TYPE_NONE>; /* termcount */
  367. rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
  368. ti,nand-ecc-opt = "bch8";
  369. ti,elm-id = <&elm>;
  370. nand-bus-width = <8>;
  371. gpmc,device-width = <1>;
  372. gpmc,sync-clk-ps = <0>;
  373. gpmc,cs-on-ns = <0>;
  374. gpmc,cs-rd-off-ns = <44>;
  375. gpmc,cs-wr-off-ns = <44>;
  376. gpmc,adv-on-ns = <6>;
  377. gpmc,adv-rd-off-ns = <34>;
  378. gpmc,adv-wr-off-ns = <44>;
  379. gpmc,we-on-ns = <0>;
  380. gpmc,we-off-ns = <40>;
  381. gpmc,oe-on-ns = <0>;
  382. gpmc,oe-off-ns = <54>;
  383. gpmc,access-ns = <64>;
  384. gpmc,rd-cycle-ns = <82>;
  385. gpmc,wr-cycle-ns = <82>;
  386. gpmc,bus-turnaround-ns = <0>;
  387. gpmc,cycle2cycle-delay-ns = <0>;
  388. gpmc,clk-activation-ns = <0>;
  389. gpmc,wr-access-ns = <40>;
  390. gpmc,wr-data-mux-bus-ns = <0>;
  391. /* MTD partition table */
  392. #address-cells = <1>;
  393. #size-cells = <1>;
  394. partition@0 {
  395. label = "spl";
  396. reg = <0x00000000 0x00200000>;
  397. };
  398. partition@1 {
  399. label = "uboot";
  400. reg = <0x00200000 0x00100000>;
  401. };
  402. partition@2 {
  403. label = "uboot environment";
  404. reg = <0x00300000 0x00100000>;
  405. };
  406. partition@3 {
  407. label = "dtb";
  408. reg = <0x00400000 0x00100000>;
  409. };
  410. partition@4 {
  411. label = "splash";
  412. reg = <0x00500000 0x00400000>;
  413. };
  414. partition@5 {
  415. label = "linux";
  416. reg = <0x00900000 0x00600000>;
  417. };
  418. partition@6 {
  419. label = "rootfs";
  420. reg = <0x00F00000 0>;
  421. };
  422. };
  423. };
  424. &elm {
  425. status = "okay";
  426. };
  427. &mac {
  428. pinctrl-names = "default", "sleep";
  429. pinctrl-0 = <&cpsw_default>;
  430. pinctrl-1 = <&cpsw_sleep>;
  431. slaves = <1>;
  432. status = "okay";
  433. };
  434. &davinci_mdio {
  435. pinctrl-names = "default", "sleep";
  436. pinctrl-0 = <&davinci_mdio_default>;
  437. pinctrl-1 = <&davinci_mdio_sleep>;
  438. status = "okay";
  439. };
  440. &cpsw_emac0 {
  441. phy_id = <&davinci_mdio>, <0>;
  442. phy-mode = "rgmii-txid";
  443. };
  444. &mmc1 {
  445. status = "okay";
  446. vmmc-supply = <&vmmc_fixed>;
  447. bus-width = <4>;
  448. pinctrl-names = "default";
  449. pinctrl-0 = <&mmc1_pins>;
  450. };
  451. &dcan0 {
  452. status = "okay";
  453. pinctrl-names = "default";
  454. pinctrl-0 = <&dcan0_pins>;
  455. };
  456. &dcan1 {
  457. status = "okay";
  458. pinctrl-names = "default";
  459. pinctrl-0 = <&dcan1_pins>;
  460. };
  461. /* Touschscreen and analog digital converter */
  462. &tscadc {
  463. status = "okay";
  464. tsc {
  465. ti,wires = <4>;
  466. ti,x-plate-resistance = <200>;
  467. ti,coordinate-readouts = <5>;
  468. ti,wire-config = <0x01 0x10 0x23 0x32>;
  469. ti,charge-delay = <0x400>;
  470. };
  471. adc {
  472. ti,adc-channels = <4 5 6 7>;
  473. };
  474. };
  475. /* CPU audio */
  476. &mcasp1 {
  477. pinctrl-names = "default";
  478. pinctrl-0 = <&mcasp1_pins>;
  479. op-mode = <0>; /* MCASP_IIS_MODE */
  480. tdm-slots = <2>;
  481. /* 16 serializers */
  482. num-serializer = <16>;
  483. serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
  484. 0 0 2 1 0 0 0 0 0 0 0 0 0 0 0 0
  485. >;
  486. tx-num-evt = <1>;
  487. rx-num-evt = <1>;
  488. #sound-dai-cells= <0>;
  489. status = "okay";
  490. };
  491. &spi0 {
  492. status = "okay";
  493. pinctrl-names = "default";
  494. pinctrl-0 = <&spi0_pins>;
  495. ti,pindir-d0-out-d1-in = <1>;
  496. /* WLS1271 WiFi */
  497. wlcore: wlcore@1 {
  498. compatible = "ti,wl1271";
  499. pinctrl-names = "default";
  500. pinctrl-0 = <&wifi_pins>;
  501. reg = <1>;
  502. spi-max-frequency = <48000000>;
  503. clock-xtal;
  504. ref-clock-frequency = <38400000>;
  505. interrupt-parent = <&gpio3>;
  506. interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
  507. vwlan-supply = <&vwlan_fixed>;
  508. };
  509. };