dra7-evm.dts 13 KB

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