dra7-evm.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6. #include "dra74x.dtsi"
  7. #include "dra7-evm-common.dtsi"
  8. #include "dra74x-mmc-iodelay.dtsi"
  9. / {
  10. model = "TI DRA742";
  11. compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7";
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0x0 0x80000000 0x0 0x60000000>; /* 1536 MB */
  15. };
  16. evm_12v0: fixedregulator-evm_12v0 {
  17. /* main supply */
  18. compatible = "regulator-fixed";
  19. regulator-name = "evm_12v0";
  20. regulator-min-microvolt = <12000000>;
  21. regulator-max-microvolt = <12000000>;
  22. regulator-always-on;
  23. regulator-boot-on;
  24. };
  25. evm_1v8_sw: fixedregulator-evm_1v8 {
  26. compatible = "regulator-fixed";
  27. regulator-name = "evm_1v8";
  28. vin-supply = <&smps9_reg>;
  29. regulator-min-microvolt = <1800000>;
  30. regulator-max-microvolt = <1800000>;
  31. };
  32. reserved-memory {
  33. #address-cells = <2>;
  34. #size-cells = <2>;
  35. ranges;
  36. ipu2_memory_region: ipu2-memory@95800000 {
  37. compatible = "shared-dma-pool";
  38. reg = <0x0 0x95800000 0x0 0x3800000>;
  39. reusable;
  40. status = "okay";
  41. };
  42. dsp1_memory_region: dsp1-memory@99000000 {
  43. compatible = "shared-dma-pool";
  44. reg = <0x0 0x99000000 0x0 0x4000000>;
  45. reusable;
  46. status = "okay";
  47. };
  48. ipu1_memory_region: ipu1-memory@9d000000 {
  49. compatible = "shared-dma-pool";
  50. reg = <0x0 0x9d000000 0x0 0x2000000>;
  51. reusable;
  52. status = "okay";
  53. };
  54. dsp2_memory_region: dsp2-memory@9f000000 {
  55. compatible = "shared-dma-pool";
  56. reg = <0x0 0x9f000000 0x0 0x800000>;
  57. reusable;
  58. status = "okay";
  59. };
  60. };
  61. evm_3v3_sd: fixedregulator-sd {
  62. compatible = "regulator-fixed";
  63. regulator-name = "evm_3v3_sd";
  64. regulator-min-microvolt = <3300000>;
  65. regulator-max-microvolt = <3300000>;
  66. enable-active-high;
  67. gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
  68. };
  69. evm_3v3_sw: fixedregulator-evm_3v3_sw {
  70. compatible = "regulator-fixed";
  71. regulator-name = "evm_3v3_sw";
  72. vin-supply = <&sysen1>;
  73. regulator-min-microvolt = <3300000>;
  74. regulator-max-microvolt = <3300000>;
  75. };
  76. aic_dvdd: fixedregulator-aic_dvdd {
  77. /* TPS77018DBVT */
  78. compatible = "regulator-fixed";
  79. regulator-name = "aic_dvdd";
  80. vin-supply = <&evm_3v3_sw>;
  81. regulator-min-microvolt = <1800000>;
  82. regulator-max-microvolt = <1800000>;
  83. };
  84. vsys_3v3: fixedregulator-vsys3v3 {
  85. /* Output of Cntlr A of TPS43351-Q1 on dra7-evm */
  86. compatible = "regulator-fixed";
  87. regulator-name = "vsys_3v3";
  88. regulator-min-microvolt = <3300000>;
  89. regulator-max-microvolt = <3300000>;
  90. vin-supply = <&evm_12v0>;
  91. regulator-always-on;
  92. regulator-boot-on;
  93. };
  94. evm_5v0: fixedregulator-evm_5v0 {
  95. /* Output of Cntlr B of TPS43351-Q1 on dra7-evm */
  96. compatible = "regulator-fixed";
  97. regulator-name = "evm_5v0";
  98. regulator-min-microvolt = <5000000>;
  99. regulator-max-microvolt = <5000000>;
  100. vin-supply = <&evm_12v0>;
  101. regulator-always-on;
  102. regulator-boot-on;
  103. };
  104. evm_3v6: fixedregulator-evm_3v6 {
  105. compatible = "regulator-fixed";
  106. regulator-name = "evm_3v6";
  107. regulator-min-microvolt = <3600000>;
  108. regulator-max-microvolt = <3600000>;
  109. vin-supply = <&evm_5v0>;
  110. regulator-always-on;
  111. regulator-boot-on;
  112. };
  113. vmmcwl_fixed: fixedregulator-mmcwl {
  114. compatible = "regulator-fixed";
  115. regulator-name = "vmmcwl_fixed";
  116. regulator-min-microvolt = <1800000>;
  117. regulator-max-microvolt = <1800000>;
  118. gpio = <&gpio5 8 0>;
  119. startup-delay-us = <70000>;
  120. enable-active-high;
  121. };
  122. vtt_fixed: fixedregulator-vtt {
  123. compatible = "regulator-fixed";
  124. regulator-name = "vtt_fixed";
  125. regulator-min-microvolt = <1350000>;
  126. regulator-max-microvolt = <1350000>;
  127. regulator-always-on;
  128. regulator-boot-on;
  129. enable-active-high;
  130. vin-supply = <&sysen2>;
  131. gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
  132. };
  133. };
  134. &dra7_pmx_core {
  135. dcan1_pins_default: dcan1_pins_default {
  136. pinctrl-single,pins = <
  137. DRA7XX_CORE_IOPAD(0x37d0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
  138. DRA7XX_CORE_IOPAD(0x3818, PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
  139. >;
  140. };
  141. dcan1_pins_sleep: dcan1_pins_sleep {
  142. pinctrl-single,pins = <
  143. DRA7XX_CORE_IOPAD(0x37d0, MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
  144. DRA7XX_CORE_IOPAD(0x3818, MUX_MODE15 | PULL_UP) /* wakeup0.off */
  145. >;
  146. };
  147. };
  148. &i2c1 {
  149. status = "okay";
  150. clock-frequency = <400000>;
  151. tps659038: tps659038@58 {
  152. compatible = "ti,tps659038";
  153. reg = <0x58>;
  154. ti,palmas-override-powerhold;
  155. ti,system-power-controller;
  156. tps659038_pmic {
  157. compatible = "ti,tps659038-pmic";
  158. regulators {
  159. smps123_reg: smps123 {
  160. /* VDD_MPU */
  161. regulator-name = "smps123";
  162. regulator-min-microvolt = < 850000>;
  163. regulator-max-microvolt = <1250000>;
  164. regulator-always-on;
  165. regulator-boot-on;
  166. };
  167. smps45_reg: smps45 {
  168. /* VDD_DSPEVE */
  169. regulator-name = "smps45";
  170. regulator-min-microvolt = < 850000>;
  171. regulator-max-microvolt = <1250000>;
  172. regulator-always-on;
  173. regulator-boot-on;
  174. };
  175. smps6_reg: smps6 {
  176. /* VDD_GPU - over VDD_SMPS6 */
  177. regulator-name = "smps6";
  178. regulator-min-microvolt = <850000>;
  179. regulator-max-microvolt = <1250000>;
  180. regulator-always-on;
  181. regulator-boot-on;
  182. };
  183. smps7_reg: smps7 {
  184. /* CORE_VDD */
  185. regulator-name = "smps7";
  186. regulator-min-microvolt = <850000>;
  187. regulator-max-microvolt = <1150000>;
  188. regulator-always-on;
  189. regulator-boot-on;
  190. };
  191. smps8_reg: smps8 {
  192. /* VDD_IVAHD */
  193. regulator-name = "smps8";
  194. regulator-min-microvolt = < 850000>;
  195. regulator-max-microvolt = <1250000>;
  196. regulator-always-on;
  197. regulator-boot-on;
  198. };
  199. smps9_reg: smps9 {
  200. /* VDDS1V8 */
  201. regulator-name = "smps9";
  202. regulator-min-microvolt = <1800000>;
  203. regulator-max-microvolt = <1800000>;
  204. regulator-always-on;
  205. regulator-boot-on;
  206. };
  207. ldo1_reg: ldo1 {
  208. /* LDO1_OUT --> SDIO */
  209. regulator-name = "ldo1";
  210. regulator-min-microvolt = <1800000>;
  211. regulator-max-microvolt = <3300000>;
  212. regulator-always-on;
  213. regulator-boot-on;
  214. };
  215. ldo2_reg: ldo2 {
  216. /* VDD_RTCIO */
  217. /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
  218. regulator-name = "ldo2";
  219. regulator-min-microvolt = <3300000>;
  220. regulator-max-microvolt = <3300000>;
  221. regulator-always-on;
  222. regulator-boot-on;
  223. };
  224. ldo3_reg: ldo3 {
  225. /* VDDA_1V8_PHY */
  226. regulator-name = "ldo3";
  227. regulator-min-microvolt = <1800000>;
  228. regulator-max-microvolt = <1800000>;
  229. regulator-always-on;
  230. regulator-boot-on;
  231. };
  232. ldo9_reg: ldo9 {
  233. /* VDD_RTC */
  234. regulator-name = "ldo9";
  235. regulator-min-microvolt = <1050000>;
  236. regulator-max-microvolt = <1050000>;
  237. regulator-always-on;
  238. regulator-boot-on;
  239. regulator-allow-bypass;
  240. };
  241. ldoln_reg: ldoln {
  242. /* VDDA_1V8_PLL */
  243. regulator-name = "ldoln";
  244. regulator-min-microvolt = <1800000>;
  245. regulator-max-microvolt = <1800000>;
  246. regulator-always-on;
  247. regulator-boot-on;
  248. };
  249. ldousb_reg: ldousb {
  250. /* VDDA_3V_USB: VDDA_USBHS33 */
  251. regulator-name = "ldousb";
  252. regulator-min-microvolt = <3300000>;
  253. regulator-max-microvolt = <3300000>;
  254. regulator-boot-on;
  255. };
  256. /* REGEN1 is unused */
  257. regen2: regen2 {
  258. /* Needed for PMIC internal resources */
  259. regulator-name = "regen2";
  260. regulator-boot-on;
  261. regulator-always-on;
  262. };
  263. /* REGEN3 is unused */
  264. sysen1: sysen1 {
  265. /* PMIC_REGEN_3V3 */
  266. regulator-name = "sysen1";
  267. regulator-boot-on;
  268. regulator-always-on;
  269. };
  270. sysen2: sysen2 {
  271. /* PMIC_REGEN_DDR */
  272. regulator-name = "sysen2";
  273. regulator-boot-on;
  274. regulator-always-on;
  275. };
  276. };
  277. };
  278. };
  279. pcf_lcd: gpio@20 {
  280. compatible = "nxp,pcf8575";
  281. reg = <0x20>;
  282. gpio-controller;
  283. #gpio-cells = <2>;
  284. interrupt-parent = <&gpio6>;
  285. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  286. interrupt-controller;
  287. #interrupt-cells = <2>;
  288. };
  289. pcf_gpio_21: gpio@21 {
  290. compatible = "nxp,pcf8575";
  291. reg = <0x21>;
  292. lines-initial-states = <0x1408>;
  293. gpio-controller;
  294. #gpio-cells = <2>;
  295. interrupt-parent = <&gpio6>;
  296. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  297. interrupt-controller;
  298. #interrupt-cells = <2>;
  299. };
  300. tlv320aic3106: tlv320aic3106@19 {
  301. #sound-dai-cells = <0>;
  302. compatible = "ti,tlv320aic3106";
  303. reg = <0x19>;
  304. adc-settle-ms = <40>;
  305. ai3x-micbias-vg = <1>; /* 2.0V */
  306. status = "okay";
  307. /* Regulators */
  308. AVDD-supply = <&evm_3v3_sw>;
  309. IOVDD-supply = <&evm_3v3_sw>;
  310. DRVDD-supply = <&evm_3v3_sw>;
  311. DVDD-supply = <&aic_dvdd>;
  312. };
  313. };
  314. &i2c2 {
  315. status = "okay";
  316. clock-frequency = <400000>;
  317. pcf_hdmi: gpio@26 {
  318. compatible = "nxp,pcf8575";
  319. reg = <0x26>;
  320. gpio-controller;
  321. #gpio-cells = <2>;
  322. hdmi-audio-hog {
  323. /* vin6_sel_s0: high: VIN6, low: audio */
  324. gpio-hog;
  325. gpios = <1 GPIO_ACTIVE_HIGH>;
  326. output-low;
  327. line-name = "vin6_sel_s0";
  328. };
  329. };
  330. };
  331. &mmc1 {
  332. status = "okay";
  333. vmmc-supply = <&evm_3v3_sd>;
  334. vqmmc-supply = <&ldo1_reg>;
  335. bus-width = <4>;
  336. /*
  337. * SDCD signal is not being used here - using the fact that GPIO mode
  338. * is always hardwired.
  339. */
  340. cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
  341. pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50-rev11", "sdr104-rev11", "ddr50", "sdr104";
  342. pinctrl-0 = <&mmc1_pins_default>;
  343. pinctrl-1 = <&mmc1_pins_hs>;
  344. pinctrl-2 = <&mmc1_pins_sdr12>;
  345. pinctrl-3 = <&mmc1_pins_sdr25>;
  346. pinctrl-4 = <&mmc1_pins_sdr50>;
  347. pinctrl-5 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr_rev11_conf>;
  348. pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev11_conf>;
  349. pinctrl-7 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr_rev20_conf>;
  350. pinctrl-8 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>;
  351. };
  352. &mmc2 {
  353. status = "okay";
  354. vmmc-supply = <&evm_1v8_sw>;
  355. vqmmc-supply = <&evm_1v8_sw>;
  356. bus-width = <8>;
  357. non-removable;
  358. pinctrl-names = "default", "hs", "ddr_1_8v-rev11", "ddr_1_8v", "hs200_1_8v-rev11", "hs200_1_8v";
  359. pinctrl-0 = <&mmc2_pins_default>;
  360. pinctrl-1 = <&mmc2_pins_hs>;
  361. pinctrl-2 = <&mmc2_pins_ddr_1_8v_rev11 &mmc2_iodelay_ddr_1_8v_rev11_conf>;
  362. pinctrl-3 = <&mmc2_pins_ddr_rev20>;
  363. pinctrl-4 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev11_conf>;
  364. pinctrl-5 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>;
  365. };
  366. &mmc4 {
  367. status = "okay";
  368. vmmc-supply = <&evm_3v6>;
  369. vqmmc-supply = <&vmmcwl_fixed>;
  370. pinctrl-names = "default-rev11", "default", "hs-rev11", "hs", "sdr12-rev11", "sdr12", "sdr25-rev11", "sdr25";
  371. pinctrl-0 = <&mmc4_pins_default &mmc4_iodelay_ds_rev11_conf>;
  372. pinctrl-1 = <&mmc4_pins_default &mmc4_iodelay_ds_rev20_conf>;
  373. pinctrl-2 = <&mmc4_pins_hs &mmc4_iodelay_sdr12_hs_sdr25_rev11_conf>;
  374. pinctrl-3 = <&mmc4_pins_hs &mmc4_iodelay_sdr12_hs_sdr25_rev20_conf>;
  375. pinctrl-4 = <&mmc4_pins_sdr12 &mmc4_iodelay_sdr12_hs_sdr25_rev11_conf>;
  376. pinctrl-5 = <&mmc4_pins_sdr12 &mmc4_iodelay_sdr12_hs_sdr25_rev20_conf>;
  377. pinctrl-6 = <&mmc4_pins_sdr25 &mmc4_iodelay_sdr12_hs_sdr25_rev11_conf>;
  378. pinctrl-7 = <&mmc4_pins_sdr25 &mmc4_iodelay_sdr12_hs_sdr25_rev20_conf>;
  379. };
  380. &cpu0 {
  381. vdd-supply = <&smps123_reg>;
  382. };
  383. &elm {
  384. status = "okay";
  385. };
  386. &gpmc {
  387. /*
  388. * For the existing IOdelay configuration via U-Boot we don't
  389. * support NAND on dra7-evm. Keep it disabled. Enabling it
  390. * requires a different configuration by U-Boot.
  391. */
  392. status = "disabled";
  393. ranges = <0 0 0x08000000 0x01000000>; /* minimum GPMC partition = 16MB */
  394. nand@0,0 {
  395. compatible = "ti,omap2-nand";
  396. reg = <0 0 4>; /* device IO registers */
  397. interrupt-parent = <&gpmc>;
  398. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  399. <1 IRQ_TYPE_NONE>; /* termcount */
  400. rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */
  401. ti,nand-xfer-type = "prefetch-dma";
  402. ti,nand-ecc-opt = "bch8";
  403. ti,elm-id = <&elm>;
  404. nand-bus-width = <16>;
  405. gpmc,device-width = <2>;
  406. gpmc,sync-clk-ps = <0>;
  407. gpmc,cs-on-ns = <0>;
  408. gpmc,cs-rd-off-ns = <80>;
  409. gpmc,cs-wr-off-ns = <80>;
  410. gpmc,adv-on-ns = <0>;
  411. gpmc,adv-rd-off-ns = <60>;
  412. gpmc,adv-wr-off-ns = <60>;
  413. gpmc,we-on-ns = <10>;
  414. gpmc,we-off-ns = <50>;
  415. gpmc,oe-on-ns = <4>;
  416. gpmc,oe-off-ns = <40>;
  417. gpmc,access-ns = <40>;
  418. gpmc,wr-access-ns = <80>;
  419. gpmc,rd-cycle-ns = <80>;
  420. gpmc,wr-cycle-ns = <80>;
  421. gpmc,bus-turnaround-ns = <0>;
  422. gpmc,cycle2cycle-delay-ns = <0>;
  423. gpmc,clk-activation-ns = <0>;
  424. gpmc,wr-data-mux-bus-ns = <0>;
  425. /* MTD partition table */
  426. /* All SPL-* partitions are sized to minimal length
  427. * which can be independently programmable. For
  428. * NAND flash this is equal to size of erase-block */
  429. #address-cells = <1>;
  430. #size-cells = <1>;
  431. partition@0 {
  432. label = "NAND.SPL";
  433. reg = <0x00000000 0x000020000>;
  434. };
  435. partition@1 {
  436. label = "NAND.SPL.backup1";
  437. reg = <0x00020000 0x00020000>;
  438. };
  439. partition@2 {
  440. label = "NAND.SPL.backup2";
  441. reg = <0x00040000 0x00020000>;
  442. };
  443. partition@3 {
  444. label = "NAND.SPL.backup3";
  445. reg = <0x00060000 0x00020000>;
  446. };
  447. partition@4 {
  448. label = "NAND.u-boot-spl-os";
  449. reg = <0x00080000 0x00040000>;
  450. };
  451. partition@5 {
  452. label = "NAND.u-boot";
  453. reg = <0x000c0000 0x00100000>;
  454. };
  455. partition@6 {
  456. label = "NAND.u-boot-env";
  457. reg = <0x001c0000 0x00020000>;
  458. };
  459. partition@7 {
  460. label = "NAND.u-boot-env.backup1";
  461. reg = <0x001e0000 0x00020000>;
  462. };
  463. partition@8 {
  464. label = "NAND.kernel";
  465. reg = <0x00200000 0x00800000>;
  466. };
  467. partition@9 {
  468. label = "NAND.file-system";
  469. reg = <0x00a00000 0x0f600000>;
  470. };
  471. };
  472. };
  473. &usb2_phy1 {
  474. phy-supply = <&ldousb_reg>;
  475. };
  476. &usb2_phy2 {
  477. phy-supply = <&ldousb_reg>;
  478. };
  479. &gpio7_target {
  480. ti,no-reset-on-init;
  481. ti,no-idle-on-init;
  482. };
  483. &mac_sw {
  484. status = "okay";
  485. };
  486. &cpsw_port1 {
  487. phy-handle = <&ethphy0>;
  488. phy-mode = "rgmii";
  489. ti,dual-emac-pvid = <1>;
  490. };
  491. &cpsw_port2 {
  492. phy-handle = <&ethphy1>;
  493. phy-mode = "rgmii";
  494. ti,dual-emac-pvid = <2>;
  495. };
  496. &davinci_mdio_sw {
  497. ethphy0: ethernet-phy@2 {
  498. reg = <2>;
  499. };
  500. ethphy1: ethernet-phy@3 {
  501. reg = <3>;
  502. };
  503. };
  504. &dcan1 {
  505. status = "okay";
  506. pinctrl-names = "default", "sleep", "active";
  507. pinctrl-0 = <&dcan1_pins_sleep>;
  508. pinctrl-1 = <&dcan1_pins_sleep>;
  509. pinctrl-2 = <&dcan1_pins_default>;
  510. };
  511. &ipu2 {
  512. status = "okay";
  513. memory-region = <&ipu2_memory_region>;
  514. };
  515. &ipu1 {
  516. status = "okay";
  517. memory-region = <&ipu1_memory_region>;
  518. };
  519. &dsp1 {
  520. status = "okay";
  521. memory-region = <&dsp1_memory_region>;
  522. };
  523. &dsp2 {
  524. status = "okay";
  525. memory-region = <&dsp2_memory_region>;
  526. };