dra7-evm.dts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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. /dts-v1/;
  9. #include "dra74x.dtsi"
  10. / {
  11. model = "TI DRA742";
  12. compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7";
  13. memory {
  14. device_type = "memory";
  15. reg = <0x80000000 0x60000000>; /* 1536 MB */
  16. };
  17. mmc2_3v3: fixedregulator-mmc2 {
  18. compatible = "regulator-fixed";
  19. regulator-name = "mmc2_3v3";
  20. regulator-min-microvolt = <3300000>;
  21. regulator-max-microvolt = <3300000>;
  22. };
  23. };
  24. &dra7_pmx_core {
  25. i2c1_pins: pinmux_i2c1_pins {
  26. pinctrl-single,pins = <
  27. 0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda */
  28. 0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl */
  29. >;
  30. };
  31. i2c2_pins: pinmux_i2c2_pins {
  32. pinctrl-single,pins = <
  33. 0x408 (PIN_INPUT | MUX_MODE0) /* i2c2_sda */
  34. 0x40c (PIN_INPUT | MUX_MODE0) /* i2c2_scl */
  35. >;
  36. };
  37. i2c3_pins: pinmux_i2c3_pins {
  38. pinctrl-single,pins = <
  39. 0x410 (PIN_INPUT | MUX_MODE0) /* i2c3_sda */
  40. 0x414 (PIN_INPUT | MUX_MODE0) /* i2c3_scl */
  41. >;
  42. };
  43. mcspi1_pins: pinmux_mcspi1_pins {
  44. pinctrl-single,pins = <
  45. 0x3a4 (PIN_INPUT | MUX_MODE0) /* spi2_clk */
  46. 0x3a8 (PIN_INPUT | MUX_MODE0) /* spi2_d1 */
  47. 0x3ac (PIN_INPUT | MUX_MODE0) /* spi2_d0 */
  48. 0x3b0 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs0 */
  49. 0x3b4 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs1 */
  50. 0x3b8 (PIN_INPUT_SLEW | MUX_MODE6) /* spi2_cs2 */
  51. 0x3bc (PIN_INPUT_SLEW | MUX_MODE6) /* spi2_cs3 */
  52. >;
  53. };
  54. mcspi2_pins: pinmux_mcspi2_pins {
  55. pinctrl-single,pins = <
  56. 0x3c0 (PIN_INPUT | MUX_MODE0) /* spi2_sclk */
  57. 0x3c4 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
  58. 0x3c8 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
  59. 0x3cc (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs0 */
  60. >;
  61. };
  62. uart1_pins: pinmux_uart1_pins {
  63. pinctrl-single,pins = <
  64. 0x3e0 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_rxd */
  65. 0x3e4 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_txd */
  66. 0x3e8 (PIN_INPUT | MUX_MODE3) /* uart1_ctsn */
  67. 0x3ec (PIN_INPUT | MUX_MODE3) /* uart1_rtsn */
  68. >;
  69. };
  70. uart2_pins: pinmux_uart2_pins {
  71. pinctrl-single,pins = <
  72. 0x3f0 (PIN_INPUT | MUX_MODE0) /* uart2_rxd */
  73. 0x3f4 (PIN_INPUT | MUX_MODE0) /* uart2_txd */
  74. 0x3f8 (PIN_INPUT | MUX_MODE0) /* uart2_ctsn */
  75. 0x3fc (PIN_INPUT | MUX_MODE0) /* uart2_rtsn */
  76. >;
  77. };
  78. uart3_pins: pinmux_uart3_pins {
  79. pinctrl-single,pins = <
  80. 0x248 (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */
  81. 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
  82. >;
  83. };
  84. qspi1_pins: pinmux_qspi1_pins {
  85. pinctrl-single,pins = <
  86. 0x4c (PIN_INPUT | MUX_MODE1) /* gpmc_a3.qspi1_cs2 */
  87. 0x50 (PIN_INPUT | MUX_MODE1) /* gpmc_a4.qspi1_cs3 */
  88. 0x74 (PIN_INPUT | MUX_MODE1) /* gpmc_a13.qspi1_rtclk */
  89. 0x78 (PIN_INPUT | MUX_MODE1) /* gpmc_a14.qspi1_d3 */
  90. 0x7c (PIN_INPUT | MUX_MODE1) /* gpmc_a15.qspi1_d2 */
  91. 0x80 (PIN_INPUT | MUX_MODE1) /* gpmc_a16.qspi1_d1 */
  92. 0x84 (PIN_INPUT | MUX_MODE1) /* gpmc_a17.qspi1_d0 */
  93. 0x88 (PIN_INPUT | MUX_MODE1) /* qpmc_a18.qspi1_sclk */
  94. 0xb8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */
  95. 0xbc (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs3.qspi1_cs1 */
  96. >;
  97. };
  98. usb1_pins: pinmux_usb1_pins {
  99. pinctrl-single,pins = <
  100. 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
  101. >;
  102. };
  103. usb2_pins: pinmux_usb2_pins {
  104. pinctrl-single,pins = <
  105. 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
  106. >;
  107. };
  108. nand_flash_x16: nand_flash_x16 {
  109. /* On DRA7 EVM, GPMC_WPN and NAND_BOOTn comes from DIP switch
  110. * So NAND flash requires following switch settings:
  111. * SW5.9 (GPMC_WPN) = LOW
  112. * SW5.1 (NAND_BOOTn) = HIGH */
  113. pinctrl-single,pins = <
  114. 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */
  115. 0x4 (PIN_INPUT | MUX_MODE0) /* gpmc_ad1 */
  116. 0x8 (PIN_INPUT | MUX_MODE0) /* gpmc_ad2 */
  117. 0xc (PIN_INPUT | MUX_MODE0) /* gpmc_ad3 */
  118. 0x10 (PIN_INPUT | MUX_MODE0) /* gpmc_ad4 */
  119. 0x14 (PIN_INPUT | MUX_MODE0) /* gpmc_ad5 */
  120. 0x18 (PIN_INPUT | MUX_MODE0) /* gpmc_ad6 */
  121. 0x1c (PIN_INPUT | MUX_MODE0) /* gpmc_ad7 */
  122. 0x20 (PIN_INPUT | MUX_MODE0) /* gpmc_ad8 */
  123. 0x24 (PIN_INPUT | MUX_MODE0) /* gpmc_ad9 */
  124. 0x28 (PIN_INPUT | MUX_MODE0) /* gpmc_ad10 */
  125. 0x2c (PIN_INPUT | MUX_MODE0) /* gpmc_ad11 */
  126. 0x30 (PIN_INPUT | MUX_MODE0) /* gpmc_ad12 */
  127. 0x34 (PIN_INPUT | MUX_MODE0) /* gpmc_ad13 */
  128. 0x38 (PIN_INPUT | MUX_MODE0) /* gpmc_ad14 */
  129. 0x3c (PIN_INPUT | MUX_MODE0) /* gpmc_ad15 */
  130. 0xd8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0 */
  131. 0xcc (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen */
  132. 0xb4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* gpmc_csn0 */
  133. 0xc4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale */
  134. 0xc8 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren */
  135. 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle */
  136. >;
  137. };
  138. };
  139. &i2c1 {
  140. status = "okay";
  141. pinctrl-names = "default";
  142. pinctrl-0 = <&i2c1_pins>;
  143. clock-frequency = <400000>;
  144. tps659038: tps659038@58 {
  145. compatible = "ti,tps659038";
  146. reg = <0x58>;
  147. tps659038_pmic {
  148. compatible = "ti,tps659038-pmic";
  149. regulators {
  150. smps123_reg: smps123 {
  151. /* VDD_MPU */
  152. regulator-name = "smps123";
  153. regulator-min-microvolt = < 850000>;
  154. regulator-max-microvolt = <1250000>;
  155. regulator-always-on;
  156. regulator-boot-on;
  157. };
  158. smps45_reg: smps45 {
  159. /* VDD_DSPEVE */
  160. regulator-name = "smps45";
  161. regulator-min-microvolt = < 850000>;
  162. regulator-max-microvolt = <1150000>;
  163. regulator-boot-on;
  164. };
  165. smps6_reg: smps6 {
  166. /* VDD_GPU - over VDD_SMPS6 */
  167. regulator-name = "smps6";
  168. regulator-min-microvolt = <850000>;
  169. regulator-max-microvolt = <12500000>;
  170. regulator-boot-on;
  171. };
  172. smps7_reg: smps7 {
  173. /* CORE_VDD */
  174. regulator-name = "smps7";
  175. regulator-min-microvolt = <850000>;
  176. regulator-max-microvolt = <1030000>;
  177. regulator-always-on;
  178. regulator-boot-on;
  179. };
  180. smps8_reg: smps8 {
  181. /* VDD_IVAHD */
  182. regulator-name = "smps8";
  183. regulator-min-microvolt = < 850000>;
  184. regulator-max-microvolt = <1250000>;
  185. regulator-boot-on;
  186. };
  187. smps9_reg: smps9 {
  188. /* VDDS1V8 */
  189. regulator-name = "smps9";
  190. regulator-min-microvolt = <1800000>;
  191. regulator-max-microvolt = <1800000>;
  192. regulator-always-on;
  193. regulator-boot-on;
  194. };
  195. ldo1_reg: ldo1 {
  196. /* LDO1_OUT --> SDIO */
  197. regulator-name = "ldo1";
  198. regulator-min-microvolt = <1800000>;
  199. regulator-max-microvolt = <3300000>;
  200. regulator-boot-on;
  201. };
  202. ldo2_reg: ldo2 {
  203. /* VDD_RTCIO */
  204. /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
  205. regulator-name = "ldo2";
  206. regulator-min-microvolt = <3300000>;
  207. regulator-max-microvolt = <3300000>;
  208. regulator-boot-on;
  209. };
  210. ldo3_reg: ldo3 {
  211. /* VDDA_1V8_PHY */
  212. regulator-name = "ldo3";
  213. regulator-min-microvolt = <1800000>;
  214. regulator-max-microvolt = <1800000>;
  215. regulator-always-on;
  216. regulator-boot-on;
  217. };
  218. ldo9_reg: ldo9 {
  219. /* VDD_RTC */
  220. regulator-name = "ldo9";
  221. regulator-min-microvolt = <1050000>;
  222. regulator-max-microvolt = <1050000>;
  223. regulator-boot-on;
  224. };
  225. ldoln_reg: ldoln {
  226. /* VDDA_1V8_PLL */
  227. regulator-name = "ldoln";
  228. regulator-min-microvolt = <1800000>;
  229. regulator-max-microvolt = <1800000>;
  230. regulator-always-on;
  231. regulator-boot-on;
  232. };
  233. ldousb_reg: ldousb {
  234. /* VDDA_3V_USB: VDDA_USBHS33 */
  235. regulator-name = "ldousb";
  236. regulator-min-microvolt = <3300000>;
  237. regulator-max-microvolt = <3300000>;
  238. regulator-boot-on;
  239. };
  240. };
  241. };
  242. };
  243. };
  244. &i2c2 {
  245. status = "okay";
  246. pinctrl-names = "default";
  247. pinctrl-0 = <&i2c2_pins>;
  248. clock-frequency = <400000>;
  249. };
  250. &i2c3 {
  251. status = "okay";
  252. pinctrl-names = "default";
  253. pinctrl-0 = <&i2c3_pins>;
  254. clock-frequency = <3400000>;
  255. };
  256. &mcspi1 {
  257. status = "okay";
  258. pinctrl-names = "default";
  259. pinctrl-0 = <&mcspi1_pins>;
  260. };
  261. &mcspi2 {
  262. status = "okay";
  263. pinctrl-names = "default";
  264. pinctrl-0 = <&mcspi2_pins>;
  265. };
  266. &uart1 {
  267. status = "okay";
  268. pinctrl-names = "default";
  269. pinctrl-0 = <&uart1_pins>;
  270. };
  271. &uart2 {
  272. status = "okay";
  273. pinctrl-names = "default";
  274. pinctrl-0 = <&uart2_pins>;
  275. };
  276. &uart3 {
  277. status = "okay";
  278. pinctrl-names = "default";
  279. pinctrl-0 = <&uart3_pins>;
  280. };
  281. &mmc1 {
  282. status = "okay";
  283. vmmc-supply = <&ldo1_reg>;
  284. bus-width = <4>;
  285. };
  286. &mmc2 {
  287. status = "okay";
  288. vmmc-supply = <&mmc2_3v3>;
  289. bus-width = <8>;
  290. };
  291. &cpu0 {
  292. cpu0-supply = <&smps123_reg>;
  293. };
  294. &qspi {
  295. status = "okay";
  296. pinctrl-names = "default";
  297. pinctrl-0 = <&qspi1_pins>;
  298. spi-max-frequency = <48000000>;
  299. m25p80@0 {
  300. compatible = "s25fl256s1";
  301. spi-max-frequency = <48000000>;
  302. reg = <0>;
  303. spi-tx-bus-width = <1>;
  304. spi-rx-bus-width = <4>;
  305. spi-cpol;
  306. spi-cpha;
  307. #address-cells = <1>;
  308. #size-cells = <1>;
  309. /* MTD partition table.
  310. * The ROM checks the first four physical blocks
  311. * for a valid file to boot and the flash here is
  312. * 64KiB block size.
  313. */
  314. partition@0 {
  315. label = "QSPI.SPL";
  316. reg = <0x00000000 0x000010000>;
  317. };
  318. partition@1 {
  319. label = "QSPI.SPL.backup1";
  320. reg = <0x00010000 0x00010000>;
  321. };
  322. partition@2 {
  323. label = "QSPI.SPL.backup2";
  324. reg = <0x00020000 0x00010000>;
  325. };
  326. partition@3 {
  327. label = "QSPI.SPL.backup3";
  328. reg = <0x00030000 0x00010000>;
  329. };
  330. partition@4 {
  331. label = "QSPI.u-boot";
  332. reg = <0x00040000 0x00100000>;
  333. };
  334. partition@5 {
  335. label = "QSPI.u-boot-spl-os";
  336. reg = <0x00140000 0x00010000>;
  337. };
  338. partition@6 {
  339. label = "QSPI.u-boot-env";
  340. reg = <0x00150000 0x00010000>;
  341. };
  342. partition@7 {
  343. label = "QSPI.u-boot-env.backup1";
  344. reg = <0x00160000 0x0010000>;
  345. };
  346. partition@8 {
  347. label = "QSPI.kernel";
  348. reg = <0x00170000 0x0800000>;
  349. };
  350. partition@9 {
  351. label = "QSPI.file-system";
  352. reg = <0x00970000 0x01690000>;
  353. };
  354. };
  355. };
  356. &usb1 {
  357. dr_mode = "peripheral";
  358. pinctrl-names = "default";
  359. pinctrl-0 = <&usb1_pins>;
  360. };
  361. &usb2 {
  362. dr_mode = "host";
  363. pinctrl-names = "default";
  364. pinctrl-0 = <&usb2_pins>;
  365. };
  366. &elm {
  367. status = "okay";
  368. };
  369. &gpmc {
  370. status = "okay";
  371. pinctrl-names = "default";
  372. pinctrl-0 = <&nand_flash_x16>;
  373. ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
  374. nand@0,0 {
  375. reg = <0 0 4>; /* device IO registers */
  376. ti,nand-ecc-opt = "bch8";
  377. ti,elm-id = <&elm>;
  378. nand-bus-width = <16>;
  379. gpmc,device-width = <2>;
  380. gpmc,sync-clk-ps = <0>;
  381. gpmc,cs-on-ns = <0>;
  382. gpmc,cs-rd-off-ns = <40>;
  383. gpmc,cs-wr-off-ns = <40>;
  384. gpmc,adv-on-ns = <0>;
  385. gpmc,adv-rd-off-ns = <30>;
  386. gpmc,adv-wr-off-ns = <30>;
  387. gpmc,we-on-ns = <5>;
  388. gpmc,we-off-ns = <25>;
  389. gpmc,oe-on-ns = <2>;
  390. gpmc,oe-off-ns = <20>;
  391. gpmc,access-ns = <20>;
  392. gpmc,wr-access-ns = <40>;
  393. gpmc,rd-cycle-ns = <40>;
  394. gpmc,wr-cycle-ns = <40>;
  395. gpmc,wait-pin = <0>;
  396. gpmc,wait-on-read;
  397. gpmc,wait-on-write;
  398. gpmc,bus-turnaround-ns = <0>;
  399. gpmc,cycle2cycle-delay-ns = <0>;
  400. gpmc,clk-activation-ns = <0>;
  401. gpmc,wait-monitoring-ns = <0>;
  402. gpmc,wr-data-mux-bus-ns = <0>;
  403. /* MTD partition table */
  404. /* All SPL-* partitions are sized to minimal length
  405. * which can be independently programmable. For
  406. * NAND flash this is equal to size of erase-block */
  407. #address-cells = <1>;
  408. #size-cells = <1>;
  409. partition@0 {
  410. label = "NAND.SPL";
  411. reg = <0x00000000 0x000020000>;
  412. };
  413. partition@1 {
  414. label = "NAND.SPL.backup1";
  415. reg = <0x00020000 0x00020000>;
  416. };
  417. partition@2 {
  418. label = "NAND.SPL.backup2";
  419. reg = <0x00040000 0x00020000>;
  420. };
  421. partition@3 {
  422. label = "NAND.SPL.backup3";
  423. reg = <0x00060000 0x00020000>;
  424. };
  425. partition@4 {
  426. label = "NAND.u-boot-spl-os";
  427. reg = <0x00080000 0x00040000>;
  428. };
  429. partition@5 {
  430. label = "NAND.u-boot";
  431. reg = <0x000c0000 0x00100000>;
  432. };
  433. partition@6 {
  434. label = "NAND.u-boot-env";
  435. reg = <0x001c0000 0x00020000>;
  436. };
  437. partition@7 {
  438. label = "NAND.u-boot-env";
  439. reg = <0x001e0000 0x00020000>;
  440. };
  441. partition@8 {
  442. label = "NAND.kernel";
  443. reg = <0x00200000 0x00800000>;
  444. };
  445. partition@9 {
  446. label = "NAND.file-system";
  447. reg = <0x00a00000 0x0f600000>;
  448. };
  449. };
  450. };