am43x-epos-evm.dts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. /*
  2. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /* AM43x EPOS EVM */
  9. /dts-v1/;
  10. #include "am4372.dtsi"
  11. #include <dt-bindings/pinctrl/am43xx.h>
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/pwm/pwm.h>
  14. / {
  15. model = "TI AM43x EPOS EVM";
  16. compatible = "ti,am43x-epos-evm","ti,am4372","ti,am43";
  17. aliases {
  18. display0 = &lcd0;
  19. };
  20. vmmcsd_fixed: fixedregulator-sd {
  21. compatible = "regulator-fixed";
  22. regulator-name = "vmmcsd_fixed";
  23. regulator-min-microvolt = <3300000>;
  24. regulator-max-microvolt = <3300000>;
  25. enable-active-high;
  26. };
  27. lcd0: display {
  28. compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
  29. label = "lcd";
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&lcd_pins>;
  32. /*
  33. * SelLCDorHDMI, LOW to select HDMI. This is not really the
  34. * panel's enable GPIO, but we don't have HDMI driver support nor
  35. * support to switch between two displays, so using this gpio as
  36. * panel's enable should be safe.
  37. */
  38. enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  39. panel-timing {
  40. clock-frequency = <33000000>;
  41. hactive = <800>;
  42. vactive = <480>;
  43. hfront-porch = <210>;
  44. hback-porch = <16>;
  45. hsync-len = <30>;
  46. vback-porch = <10>;
  47. vfront-porch = <22>;
  48. vsync-len = <13>;
  49. hsync-active = <0>;
  50. vsync-active = <0>;
  51. de-active = <1>;
  52. pixelclk-active = <1>;
  53. };
  54. port {
  55. lcd_in: endpoint {
  56. remote-endpoint = <&dpi_out>;
  57. };
  58. };
  59. };
  60. am43xx_pinmux: pinmux@44e10800 {
  61. cpsw_default: cpsw_default {
  62. pinctrl-single,pins = <
  63. /* Slave 1 */
  64. 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_crs.rmii1_crs */
  65. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxerr.rmii1_rxerr */
  66. 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txen.rmii1_txen */
  67. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxdv.rmii1_rxdv */
  68. 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd1.rmii1_txd1 */
  69. 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd0.rmii1_txd0 */
  70. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd1.rmii1_rxd1 */
  71. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd0.rmii1_rxd0 */
  72. 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii1_refclk.rmii1_refclk */
  73. >;
  74. };
  75. cpsw_sleep: cpsw_sleep {
  76. pinctrl-single,pins = <
  77. /* Slave 1 reset value */
  78. 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  79. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  80. 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  81. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  82. 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  83. 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  84. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  85. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  86. 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  87. >;
  88. };
  89. davinci_mdio_default: davinci_mdio_default {
  90. pinctrl-single,pins = <
  91. /* MDIO */
  92. 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
  93. 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  94. >;
  95. };
  96. davinci_mdio_sleep: davinci_mdio_sleep {
  97. pinctrl-single,pins = <
  98. /* MDIO reset value */
  99. 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  100. 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  101. >;
  102. };
  103. i2c0_pins: pinmux_i2c0_pins {
  104. pinctrl-single,pins = <
  105. 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
  106. 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
  107. >;
  108. };
  109. nand_flash_x8: nand_flash_x8 {
  110. pinctrl-single,pins = <
  111. 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.SELQSPIorNAND/GPIO */
  112. 0x0 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
  113. 0x4 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
  114. 0x8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
  115. 0xc (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
  116. 0x10 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
  117. 0x14 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
  118. 0x18 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
  119. 0x1c (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
  120. 0x70 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
  121. 0x74 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpmc_wpn */
  122. 0x7c (PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
  123. 0x90 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
  124. 0x94 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
  125. 0x98 (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
  126. 0x9c (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
  127. >;
  128. };
  129. ecap0_pins: backlight_pins {
  130. pinctrl-single,pins = <
  131. 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
  132. >;
  133. };
  134. i2c2_pins: pinmux_i2c2_pins {
  135. pinctrl-single,pins = <
  136. 0x1c0 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE8) /* i2c2_sda.i2c2_sda */
  137. 0x1c4 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE8) /* i2c2_scl.i2c2_scl */
  138. >;
  139. };
  140. spi0_pins: pinmux_spi0_pins {
  141. pinctrl-single,pins = <
  142. 0x150 (PIN_INPUT | MUX_MODE0) /* spi0_clk.spi0_clk */
  143. 0x154 (PIN_OUTPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */
  144. 0x158 (PIN_INPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */
  145. 0x15c (PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
  146. >;
  147. };
  148. spi1_pins: pinmux_spi1_pins {
  149. pinctrl-single,pins = <
  150. 0x190 (PIN_INPUT | MUX_MODE3) /* mcasp0_aclkx.spi1_clk */
  151. 0x194 (PIN_OUTPUT | MUX_MODE3) /* mcasp0_fsx.spi1_d0 */
  152. 0x198 (PIN_INPUT | MUX_MODE3) /* mcasp0_axr0.spi1_d1 */
  153. 0x19c (PIN_OUTPUT | MUX_MODE3) /* mcasp0_ahclkr.spi1_cs0 */
  154. >;
  155. };
  156. mmc1_pins: pinmux_mmc1_pins {
  157. pinctrl-single,pins = <
  158. 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
  159. >;
  160. };
  161. qspi1_default: qspi1_default {
  162. pinctrl-single,pins = <
  163. 0x7c (PIN_INPUT_PULLUP | MUX_MODE3)
  164. 0x88 (PIN_INPUT_PULLUP | MUX_MODE2)
  165. 0x90 (PIN_INPUT_PULLUP | MUX_MODE3)
  166. 0x94 (PIN_INPUT_PULLUP | MUX_MODE3)
  167. 0x98 (PIN_INPUT_PULLUP | MUX_MODE3)
  168. 0x9c (PIN_INPUT_PULLUP | MUX_MODE3)
  169. >;
  170. };
  171. pixcir_ts_pins: pixcir_ts_pins {
  172. pinctrl-single,pins = <
  173. 0x44 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a1.gpio1_17 */
  174. >;
  175. };
  176. hdq_pins: pinmux_hdq_pins {
  177. pinctrl-single,pins = <
  178. 0x234 (PIN_INPUT_PULLUP | MUX_MODE1) /* cam1_wen.hdq_gpio */
  179. >;
  180. };
  181. dss_pins: dss_pins {
  182. pinctrl-single,pins = <
  183. 0x020 (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */
  184. 0x024 (PIN_OUTPUT_PULLUP | MUX_MODE1)
  185. 0x028 (PIN_OUTPUT_PULLUP | MUX_MODE1)
  186. 0x02C (PIN_OUTPUT_PULLUP | MUX_MODE1)
  187. 0x030 (PIN_OUTPUT_PULLUP | MUX_MODE1)
  188. 0x034 (PIN_OUTPUT_PULLUP | MUX_MODE1)
  189. 0x038 (PIN_OUTPUT_PULLUP | MUX_MODE1)
  190. 0x03C (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */
  191. 0x0A0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
  192. 0x0A4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  193. 0x0A8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  194. 0x0AC (PIN_OUTPUT_PULLUP | MUX_MODE0)
  195. 0x0B0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  196. 0x0B4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  197. 0x0B8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  198. 0x0BC (PIN_OUTPUT_PULLUP | MUX_MODE0)
  199. 0x0C0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  200. 0x0C4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  201. 0x0C8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  202. 0x0CC (PIN_OUTPUT_PULLUP | MUX_MODE0)
  203. 0x0D0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  204. 0x0D4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  205. 0x0D8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
  206. 0x0DC (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
  207. 0x0E0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
  208. 0x0E4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
  209. 0x0E8 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
  210. 0x0EC (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
  211. >;
  212. };
  213. lcd_pins: lcd_pins {
  214. pinctrl-single,pins = <
  215. /* GPMC CLK -> GPIO 2_1 to select LCD / HDMI */
  216. 0x08C (PIN_OUTPUT_PULLUP | MUX_MODE7)
  217. >;
  218. };
  219. };
  220. matrix_keypad: matrix_keypad@0 {
  221. compatible = "gpio-matrix-keypad";
  222. debounce-delay-ms = <5>;
  223. col-scan-delay-us = <2>;
  224. row-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH /* Bank0, pin12 */
  225. &gpio0 13 GPIO_ACTIVE_HIGH /* Bank0, pin13 */
  226. &gpio0 14 GPIO_ACTIVE_HIGH /* Bank0, pin14 */
  227. &gpio0 15 GPIO_ACTIVE_HIGH>; /* Bank0, pin15 */
  228. col-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH /* Bank3, pin9 */
  229. &gpio3 10 GPIO_ACTIVE_HIGH /* Bank3, pin10 */
  230. &gpio2 18 GPIO_ACTIVE_HIGH /* Bank2, pin18 */
  231. &gpio2 19 GPIO_ACTIVE_HIGH>; /* Bank2, pin19 */
  232. linux,keymap = <0x00000201 /* P1 */
  233. 0x01000204 /* P4 */
  234. 0x02000207 /* P7 */
  235. 0x0300020a /* NUMERIC_STAR */
  236. 0x00010202 /* P2 */
  237. 0x01010205 /* P5 */
  238. 0x02010208 /* P8 */
  239. 0x03010200 /* P0 */
  240. 0x00020203 /* P3 */
  241. 0x01020206 /* P6 */
  242. 0x02020209 /* P9 */
  243. 0x0302020b /* NUMERIC_POUND */
  244. 0x00030067 /* UP */
  245. 0x0103006a /* RIGHT */
  246. 0x0203006c /* DOWN */
  247. 0x03030069>; /* LEFT */
  248. };
  249. backlight {
  250. compatible = "pwm-backlight";
  251. pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
  252. brightness-levels = <0 51 53 56 62 75 101 152 255>;
  253. default-brightness-level = <8>;
  254. };
  255. };
  256. &mmc1 {
  257. status = "okay";
  258. vmmc-supply = <&vmmcsd_fixed>;
  259. bus-width = <4>;
  260. pinctrl-names = "default";
  261. pinctrl-0 = <&mmc1_pins>;
  262. cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
  263. };
  264. &mac {
  265. pinctrl-names = "default", "sleep";
  266. pinctrl-0 = <&cpsw_default>;
  267. pinctrl-1 = <&cpsw_sleep>;
  268. status = "okay";
  269. };
  270. &davinci_mdio {
  271. pinctrl-names = "default", "sleep";
  272. pinctrl-0 = <&davinci_mdio_default>;
  273. pinctrl-1 = <&davinci_mdio_sleep>;
  274. status = "okay";
  275. };
  276. &cpsw_emac0 {
  277. phy_id = <&davinci_mdio>, <16>;
  278. phy-mode = "rmii";
  279. };
  280. &cpsw_emac1 {
  281. phy_id = <&davinci_mdio>, <1>;
  282. phy-mode = "rmii";
  283. };
  284. &phy_sel {
  285. rmii-clock-ext;
  286. };
  287. &i2c0 {
  288. status = "okay";
  289. pinctrl-names = "default";
  290. pinctrl-0 = <&i2c0_pins>;
  291. clock-frequency = <400000>;
  292. tps65218: tps65218@24 {
  293. reg = <0x24>;
  294. compatible = "ti,tps65218";
  295. interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */
  296. interrupt-parent = <&gic>;
  297. interrupt-controller;
  298. #interrupt-cells = <2>;
  299. dcdc1: regulator-dcdc1 {
  300. compatible = "ti,tps65218-dcdc1";
  301. regulator-name = "vdd_core";
  302. regulator-min-microvolt = <912000>;
  303. regulator-max-microvolt = <1144000>;
  304. regulator-boot-on;
  305. regulator-always-on;
  306. };
  307. dcdc2: regulator-dcdc2 {
  308. compatible = "ti,tps65218-dcdc2";
  309. regulator-name = "vdd_mpu";
  310. regulator-min-microvolt = <912000>;
  311. regulator-max-microvolt = <1378000>;
  312. regulator-boot-on;
  313. regulator-always-on;
  314. };
  315. dcdc3: regulator-dcdc3 {
  316. compatible = "ti,tps65218-dcdc3";
  317. regulator-name = "vdcdc3";
  318. regulator-min-microvolt = <1350000>;
  319. regulator-max-microvolt = <1350000>;
  320. regulator-boot-on;
  321. regulator-always-on;
  322. };
  323. dcdc5: regulator-dcdc5 {
  324. compatible = "ti,tps65218-dcdc5";
  325. regulator-name = "v1_0bat";
  326. regulator-min-microvolt = <1000000>;
  327. regulator-max-microvolt = <1000000>;
  328. };
  329. dcdc6: regulator-dcdc6 {
  330. compatible = "ti,tps65218-dcdc6";
  331. regulator-name = "v1_8bat";
  332. regulator-min-microvolt = <1800000>;
  333. regulator-max-microvolt = <1800000>;
  334. };
  335. ldo1: regulator-ldo1 {
  336. compatible = "ti,tps65218-ldo1";
  337. regulator-min-microvolt = <1800000>;
  338. regulator-max-microvolt = <1800000>;
  339. regulator-boot-on;
  340. regulator-always-on;
  341. };
  342. };
  343. at24@50 {
  344. compatible = "at24,24c256";
  345. pagesize = <64>;
  346. reg = <0x50>;
  347. };
  348. pixcir_ts@5c {
  349. compatible = "pixcir,pixcir_tangoc";
  350. pinctrl-names = "default";
  351. pinctrl-0 = <&pixcir_ts_pins>;
  352. reg = <0x5c>;
  353. interrupt-parent = <&gpio1>;
  354. interrupts = <17 0>;
  355. attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  356. touchscreen-size-x = <1024>;
  357. touchscreen-size-y = <600>;
  358. };
  359. };
  360. &i2c2 {
  361. pinctrl-names = "default";
  362. pinctrl-0 = <&i2c2_pins>;
  363. status = "okay";
  364. };
  365. &gpio0 {
  366. status = "okay";
  367. };
  368. &gpio1 {
  369. status = "okay";
  370. };
  371. &gpio2 {
  372. status = "okay";
  373. };
  374. &gpio3 {
  375. status = "okay";
  376. };
  377. &elm {
  378. status = "okay";
  379. };
  380. &gpmc {
  381. status = "okay"; /* Disable QSPI when enabling GPMC (NAND) */
  382. pinctrl-names = "default";
  383. pinctrl-0 = <&nand_flash_x8>;
  384. ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */
  385. nand@0,0 {
  386. reg = <0 0 0>; /* CS0, offset 0 */
  387. ti,nand-ecc-opt = "bch16";
  388. ti,elm-id = <&elm>;
  389. nand-bus-width = <8>;
  390. gpmc,device-width = <1>;
  391. gpmc,sync-clk-ps = <0>;
  392. gpmc,cs-on-ns = <0>;
  393. gpmc,cs-rd-off-ns = <40>; /* tCEA + tCHZ + 1 */
  394. gpmc,cs-wr-off-ns = <40>;
  395. gpmc,adv-on-ns = <0>; /* cs-on-ns */
  396. gpmc,adv-rd-off-ns = <25>; /* min( tALH + tALS + 1) */
  397. gpmc,adv-wr-off-ns = <25>; /* min( tALH + tALS + 1) */
  398. gpmc,we-on-ns = <0>; /* cs-on-ns */
  399. gpmc,we-off-ns = <20>; /* we-on-time + tWP + 2 */
  400. gpmc,oe-on-ns = <3>; /* cs-on-ns + tRR + 2 */
  401. gpmc,oe-off-ns = <30>; /* oe-on-ns + tRP + 2 */
  402. gpmc,access-ns = <30>; /* tCEA + 4*/
  403. gpmc,rd-cycle-ns = <40>;
  404. gpmc,wr-cycle-ns = <40>;
  405. gpmc,wait-pin = <0>;
  406. gpmc,bus-turnaround-ns = <0>;
  407. gpmc,cycle2cycle-delay-ns = <0>;
  408. gpmc,clk-activation-ns = <0>;
  409. gpmc,wait-monitoring-ns = <0>;
  410. gpmc,wr-access-ns = <40>;
  411. gpmc,wr-data-mux-bus-ns = <0>;
  412. /* MTD partition table */
  413. /* All SPL-* partitions are sized to minimal length
  414. * which can be independently programmable. For
  415. * NAND flash this is equal to size of erase-block */
  416. #address-cells = <1>;
  417. #size-cells = <1>;
  418. partition@0 {
  419. label = "NAND.SPL";
  420. reg = <0x00000000 0x00040000>;
  421. };
  422. partition@1 {
  423. label = "NAND.SPL.backup1";
  424. reg = <0x00040000 0x00040000>;
  425. };
  426. partition@2 {
  427. label = "NAND.SPL.backup2";
  428. reg = <0x00080000 0x00040000>;
  429. };
  430. partition@3 {
  431. label = "NAND.SPL.backup3";
  432. reg = <0x000C0000 0x00040000>;
  433. };
  434. partition@4 {
  435. label = "NAND.u-boot-spl-os";
  436. reg = <0x00100000 0x00080000>;
  437. };
  438. partition@5 {
  439. label = "NAND.u-boot";
  440. reg = <0x00180000 0x00100000>;
  441. };
  442. partition@6 {
  443. label = "NAND.u-boot-env";
  444. reg = <0x00280000 0x00040000>;
  445. };
  446. partition@7 {
  447. label = "NAND.u-boot-env.backup1";
  448. reg = <0x002C0000 0x00040000>;
  449. };
  450. partition@8 {
  451. label = "NAND.kernel";
  452. reg = <0x00300000 0x00700000>;
  453. };
  454. partition@9 {
  455. label = "NAND.file-system";
  456. reg = <0x00a00000 0x1f600000>;
  457. };
  458. };
  459. };
  460. &epwmss0 {
  461. status = "okay";
  462. };
  463. &ecap0 {
  464. status = "okay";
  465. pinctrl-names = "default";
  466. pinctrl-0 = <&ecap0_pins>;
  467. };
  468. &spi0 {
  469. pinctrl-names = "default";
  470. pinctrl-0 = <&spi0_pins>;
  471. status = "okay";
  472. };
  473. &spi1 {
  474. pinctrl-names = "default";
  475. pinctrl-0 = <&spi1_pins>;
  476. status = "okay";
  477. };
  478. &usb2_phy1 {
  479. status = "okay";
  480. };
  481. &usb1 {
  482. dr_mode = "peripheral";
  483. status = "okay";
  484. };
  485. &usb2_phy2 {
  486. status = "okay";
  487. };
  488. &usb2 {
  489. dr_mode = "host";
  490. status = "okay";
  491. };
  492. &qspi {
  493. status = "disabled"; /* Disable GPMC (NAND) when enabling QSPI */
  494. pinctrl-names = "default";
  495. pinctrl-0 = <&qspi1_default>;
  496. spi-max-frequency = <48000000>;
  497. m25p80@0 {
  498. compatible = "mx66l51235l";
  499. spi-max-frequency = <48000000>;
  500. reg = <0>;
  501. spi-cpol;
  502. spi-cpha;
  503. spi-tx-bus-width = <1>;
  504. spi-rx-bus-width = <4>;
  505. #address-cells = <1>;
  506. #size-cells = <1>;
  507. /* MTD partition table.
  508. * The ROM checks the first 512KiB
  509. * for a valid file to boot(XIP).
  510. */
  511. partition@0 {
  512. label = "QSPI.U_BOOT";
  513. reg = <0x00000000 0x000080000>;
  514. };
  515. partition@1 {
  516. label = "QSPI.U_BOOT.backup";
  517. reg = <0x00080000 0x00080000>;
  518. };
  519. partition@2 {
  520. label = "QSPI.U-BOOT-SPL_OS";
  521. reg = <0x00100000 0x00010000>;
  522. };
  523. partition@3 {
  524. label = "QSPI.U_BOOT_ENV";
  525. reg = <0x00110000 0x00010000>;
  526. };
  527. partition@4 {
  528. label = "QSPI.U-BOOT-ENV.backup";
  529. reg = <0x00120000 0x00010000>;
  530. };
  531. partition@5 {
  532. label = "QSPI.KERNEL";
  533. reg = <0x00130000 0x0800000>;
  534. };
  535. partition@6 {
  536. label = "QSPI.FILESYSTEM";
  537. reg = <0x00930000 0x36D0000>;
  538. };
  539. };
  540. };
  541. &hdq {
  542. status = "okay";
  543. pinctrl-names = "default";
  544. pinctrl-0 = <&hdq_pins>;
  545. };
  546. &dss {
  547. status = "ok";
  548. pinctrl-names = "default";
  549. pinctrl-0 = <&dss_pins>;
  550. port {
  551. dpi_out: endpoint@0 {
  552. remote-endpoint = <&lcd_in>;
  553. data-lines = <24>;
  554. };
  555. };
  556. };