dra7-evm.dts 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  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. chosen {
  15. stdout-path = &uart1;
  16. tick-timer = &timer2;
  17. };
  18. memory {
  19. device_type = "memory";
  20. reg = <0x80000000 0x60000000>; /* 1536 MB */
  21. };
  22. mmc2_3v3: fixedregulator-mmc2 {
  23. compatible = "regulator-fixed";
  24. regulator-name = "mmc2_3v3";
  25. regulator-min-microvolt = <3300000>;
  26. regulator-max-microvolt = <3300000>;
  27. };
  28. extcon_usb1: extcon_usb1 {
  29. compatible = "linux,extcon-usb-gpio";
  30. id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
  31. };
  32. extcon_usb2: extcon_usb2 {
  33. compatible = "linux,extcon-usb-gpio";
  34. id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
  35. };
  36. vtt_fixed: fixedregulator-vtt {
  37. compatible = "regulator-fixed";
  38. regulator-name = "vtt_fixed";
  39. regulator-min-microvolt = <1350000>;
  40. regulator-max-microvolt = <1350000>;
  41. regulator-always-on;
  42. regulator-boot-on;
  43. enable-active-high;
  44. gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
  45. };
  46. };
  47. &dra7_pmx_core {
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&vtt_pin>;
  50. vtt_pin: pinmux_vtt_pin {
  51. pinctrl-single,pins = <
  52. 0x3b4 (PIN_OUTPUT | MUX_MODE14) /* spi1_cs1.gpio7_11 */
  53. >;
  54. };
  55. i2c1_pins: pinmux_i2c1_pins {
  56. pinctrl-single,pins = <
  57. 0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda */
  58. 0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl */
  59. >;
  60. };
  61. i2c2_pins: pinmux_i2c2_pins {
  62. pinctrl-single,pins = <
  63. 0x408 (PIN_INPUT | MUX_MODE0) /* i2c2_sda */
  64. 0x40c (PIN_INPUT | MUX_MODE0) /* i2c2_scl */
  65. >;
  66. };
  67. i2c3_pins: pinmux_i2c3_pins {
  68. pinctrl-single,pins = <
  69. 0x288 (PIN_INPUT | MUX_MODE9) /* gpio6_14.i2c3_sda */
  70. 0x28c (PIN_INPUT | MUX_MODE9) /* gpio6_15.i2c3_scl */
  71. >;
  72. };
  73. mcspi1_pins: pinmux_mcspi1_pins {
  74. pinctrl-single,pins = <
  75. 0x3a4 (PIN_INPUT | MUX_MODE0) /* spi1_sclk */
  76. 0x3a8 (PIN_INPUT | MUX_MODE0) /* spi1_d1 */
  77. 0x3ac (PIN_INPUT | MUX_MODE0) /* spi1_d0 */
  78. 0x3b0 (PIN_INPUT_SLEW | MUX_MODE0) /* spi1_cs0 */
  79. 0x3b8 (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs2.hdmi1_hpd */
  80. 0x3bc (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs3.hdmi1_cec */
  81. >;
  82. };
  83. mcspi2_pins: pinmux_mcspi2_pins {
  84. pinctrl-single,pins = <
  85. 0x3c0 (PIN_INPUT | MUX_MODE0) /* spi2_sclk */
  86. 0x3c4 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
  87. 0x3c8 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
  88. 0x3cc (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs0 */
  89. >;
  90. };
  91. uart1_pins: pinmux_uart1_pins {
  92. pinctrl-single,pins = <
  93. 0x3e0 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_rxd */
  94. 0x3e4 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_txd */
  95. 0x3e8 (PIN_INPUT | MUX_MODE3) /* uart1_ctsn */
  96. 0x3ec (PIN_INPUT | MUX_MODE3) /* uart1_rtsn */
  97. >;
  98. };
  99. uart2_pins: pinmux_uart2_pins {
  100. pinctrl-single,pins = <
  101. 0x3f0 (PIN_INPUT | MUX_MODE0) /* uart2_rxd */
  102. 0x3f4 (PIN_INPUT | MUX_MODE0) /* uart2_txd */
  103. 0x3f8 (PIN_INPUT | MUX_MODE0) /* uart2_ctsn */
  104. 0x3fc (PIN_INPUT | MUX_MODE0) /* uart2_rtsn */
  105. >;
  106. };
  107. uart3_pins: pinmux_uart3_pins {
  108. pinctrl-single,pins = <
  109. 0x248 (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */
  110. 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
  111. >;
  112. };
  113. qspi1_pins: pinmux_qspi1_pins {
  114. pinctrl-single,pins = <
  115. 0x4c (PIN_INPUT | MUX_MODE1) /* gpmc_a3.qspi1_cs2 */
  116. 0x50 (PIN_INPUT | MUX_MODE1) /* gpmc_a4.qspi1_cs3 */
  117. 0x74 (PIN_INPUT | MUX_MODE1) /* gpmc_a13.qspi1_rtclk */
  118. 0x78 (PIN_INPUT | MUX_MODE1) /* gpmc_a14.qspi1_d3 */
  119. 0x7c (PIN_INPUT | MUX_MODE1) /* gpmc_a15.qspi1_d2 */
  120. 0x80 (PIN_INPUT | MUX_MODE1) /* gpmc_a16.qspi1_d1 */
  121. 0x84 (PIN_INPUT | MUX_MODE1) /* gpmc_a17.qspi1_d0 */
  122. 0x88 (PIN_INPUT | MUX_MODE1) /* qpmc_a18.qspi1_sclk */
  123. 0xb8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */
  124. 0xbc (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs3.qspi1_cs1 */
  125. >;
  126. };
  127. usb1_pins: pinmux_usb1_pins {
  128. pinctrl-single,pins = <
  129. 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
  130. >;
  131. };
  132. usb2_pins: pinmux_usb2_pins {
  133. pinctrl-single,pins = <
  134. 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
  135. >;
  136. };
  137. nand_flash_x16: nand_flash_x16 {
  138. /* On DRA7 EVM, GPMC_WPN and NAND_BOOTn comes from DIP switch
  139. * So NAND flash requires following switch settings:
  140. * SW5.9 (GPMC_WPN) = LOW
  141. * SW5.1 (NAND_BOOTn) = HIGH */
  142. pinctrl-single,pins = <
  143. 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */
  144. 0x4 (PIN_INPUT | MUX_MODE0) /* gpmc_ad1 */
  145. 0x8 (PIN_INPUT | MUX_MODE0) /* gpmc_ad2 */
  146. 0xc (PIN_INPUT | MUX_MODE0) /* gpmc_ad3 */
  147. 0x10 (PIN_INPUT | MUX_MODE0) /* gpmc_ad4 */
  148. 0x14 (PIN_INPUT | MUX_MODE0) /* gpmc_ad5 */
  149. 0x18 (PIN_INPUT | MUX_MODE0) /* gpmc_ad6 */
  150. 0x1c (PIN_INPUT | MUX_MODE0) /* gpmc_ad7 */
  151. 0x20 (PIN_INPUT | MUX_MODE0) /* gpmc_ad8 */
  152. 0x24 (PIN_INPUT | MUX_MODE0) /* gpmc_ad9 */
  153. 0x28 (PIN_INPUT | MUX_MODE0) /* gpmc_ad10 */
  154. 0x2c (PIN_INPUT | MUX_MODE0) /* gpmc_ad11 */
  155. 0x30 (PIN_INPUT | MUX_MODE0) /* gpmc_ad12 */
  156. 0x34 (PIN_INPUT | MUX_MODE0) /* gpmc_ad13 */
  157. 0x38 (PIN_INPUT | MUX_MODE0) /* gpmc_ad14 */
  158. 0x3c (PIN_INPUT | MUX_MODE0) /* gpmc_ad15 */
  159. 0xd8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0 */
  160. 0xcc (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen */
  161. 0xb4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* gpmc_csn0 */
  162. 0xc4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale */
  163. 0xc8 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren */
  164. 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle */
  165. >;
  166. };
  167. cpsw_default: cpsw_default {
  168. pinctrl-single,pins = <
  169. /* Slave 1 */
  170. 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txc.rgmii0_txc */
  171. 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txctl.rgmii0_txctl */
  172. 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_td3.rgmii0_txd3 */
  173. 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd2.rgmii0_txd2 */
  174. 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd1.rgmii0_txd1 */
  175. 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii0_txd0.rgmii0_txd0 */
  176. 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxc.rgmii0_rxc */
  177. 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxctl.rgmii0_rxctl */
  178. 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd3.rgmii0_rxd3 */
  179. 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd2.rgmii0_rxd2 */
  180. 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd1.rgmii0_rxd1 */
  181. 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii0_rxd0.rgmii0_rxd0 */
  182. /* Slave 2 */
  183. 0x198 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d12.rgmii1_txc */
  184. 0x19c (PIN_OUTPUT | MUX_MODE3) /* vin2a_d13.rgmii1_tctl */
  185. 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d14.rgmii1_td3 */
  186. 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d15.rgmii1_td2 */
  187. 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* vin2a_d16.rgmii1_td1 */
  188. 0x1ac (PIN_OUTPUT | MUX_MODE3) /* vin2a_d17.rgmii1_td0 */
  189. 0x1b0 (PIN_INPUT | MUX_MODE3) /* vin2a_d18.rgmii1_rclk */
  190. 0x1b4 (PIN_INPUT | MUX_MODE3) /* vin2a_d19.rgmii1_rctl */
  191. 0x1b8 (PIN_INPUT | MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
  192. 0x1bc (PIN_INPUT | MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
  193. 0x1c0 (PIN_INPUT | MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
  194. 0x1c4 (PIN_INPUT | MUX_MODE3) /* vin2a_d23.rgmii1_rd0 */
  195. >;
  196. };
  197. cpsw_sleep: cpsw_sleep {
  198. pinctrl-single,pins = <
  199. /* Slave 1 */
  200. 0x250 (MUX_MODE15)
  201. 0x254 (MUX_MODE15)
  202. 0x258 (MUX_MODE15)
  203. 0x25c (MUX_MODE15)
  204. 0x260 (MUX_MODE15)
  205. 0x264 (MUX_MODE15)
  206. 0x268 (MUX_MODE15)
  207. 0x26c (MUX_MODE15)
  208. 0x270 (MUX_MODE15)
  209. 0x274 (MUX_MODE15)
  210. 0x278 (MUX_MODE15)
  211. 0x27c (MUX_MODE15)
  212. /* Slave 2 */
  213. 0x198 (MUX_MODE15)
  214. 0x19c (MUX_MODE15)
  215. 0x1a0 (MUX_MODE15)
  216. 0x1a4 (MUX_MODE15)
  217. 0x1a8 (MUX_MODE15)
  218. 0x1ac (MUX_MODE15)
  219. 0x1b0 (MUX_MODE15)
  220. 0x1b4 (MUX_MODE15)
  221. 0x1b8 (MUX_MODE15)
  222. 0x1bc (MUX_MODE15)
  223. 0x1c0 (MUX_MODE15)
  224. 0x1c4 (MUX_MODE15)
  225. >;
  226. };
  227. davinci_mdio_default: davinci_mdio_default {
  228. pinctrl-single,pins = <
  229. 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_d.mdio_d */
  230. 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  231. >;
  232. };
  233. davinci_mdio_sleep: davinci_mdio_sleep {
  234. pinctrl-single,pins = <
  235. 0x23c (MUX_MODE15)
  236. 0x240 (MUX_MODE15)
  237. >;
  238. };
  239. dcan1_pins_default: dcan1_pins_default {
  240. pinctrl-single,pins = <
  241. 0x3d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
  242. 0x418 (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
  243. >;
  244. };
  245. dcan1_pins_sleep: dcan1_pins_sleep {
  246. pinctrl-single,pins = <
  247. 0x3d0 (MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
  248. 0x418 (MUX_MODE15 | PULL_UP) /* wakeup0.off */
  249. >;
  250. };
  251. };
  252. &i2c1 {
  253. status = "okay";
  254. pinctrl-names = "default";
  255. pinctrl-0 = <&i2c1_pins>;
  256. clock-frequency = <400000>;
  257. tps659038: tps659038@58 {
  258. compatible = "ti,tps659038";
  259. reg = <0x58>;
  260. tps659038_pmic {
  261. compatible = "ti,tps659038-pmic";
  262. regulators {
  263. smps123_reg: smps123 {
  264. /* VDD_MPU */
  265. regulator-name = "smps123";
  266. regulator-min-microvolt = < 850000>;
  267. regulator-max-microvolt = <1250000>;
  268. regulator-always-on;
  269. regulator-boot-on;
  270. };
  271. smps45_reg: smps45 {
  272. /* VDD_DSPEVE */
  273. regulator-name = "smps45";
  274. regulator-min-microvolt = < 850000>;
  275. regulator-max-microvolt = <1150000>;
  276. regulator-always-on;
  277. regulator-boot-on;
  278. };
  279. smps6_reg: smps6 {
  280. /* VDD_GPU - over VDD_SMPS6 */
  281. regulator-name = "smps6";
  282. regulator-min-microvolt = <850000>;
  283. regulator-max-microvolt = <1250000>;
  284. regulator-always-on;
  285. regulator-boot-on;
  286. };
  287. smps7_reg: smps7 {
  288. /* CORE_VDD */
  289. regulator-name = "smps7";
  290. regulator-min-microvolt = <850000>;
  291. regulator-max-microvolt = <1060000>;
  292. regulator-always-on;
  293. regulator-boot-on;
  294. };
  295. smps8_reg: smps8 {
  296. /* VDD_IVAHD */
  297. regulator-name = "smps8";
  298. regulator-min-microvolt = < 850000>;
  299. regulator-max-microvolt = <1250000>;
  300. regulator-always-on;
  301. regulator-boot-on;
  302. };
  303. smps9_reg: smps9 {
  304. /* VDDS1V8 */
  305. regulator-name = "smps9";
  306. regulator-min-microvolt = <1800000>;
  307. regulator-max-microvolt = <1800000>;
  308. regulator-always-on;
  309. regulator-boot-on;
  310. };
  311. ldo1_reg: ldo1 {
  312. /* LDO1_OUT --> SDIO */
  313. regulator-name = "ldo1";
  314. regulator-min-microvolt = <1800000>;
  315. regulator-max-microvolt = <3300000>;
  316. regulator-boot-on;
  317. };
  318. ldo2_reg: ldo2 {
  319. /* VDD_RTCIO */
  320. /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
  321. regulator-name = "ldo2";
  322. regulator-min-microvolt = <3300000>;
  323. regulator-max-microvolt = <3300000>;
  324. regulator-always-on;
  325. regulator-boot-on;
  326. };
  327. ldo3_reg: ldo3 {
  328. /* VDDA_1V8_PHY */
  329. regulator-name = "ldo3";
  330. regulator-min-microvolt = <1800000>;
  331. regulator-max-microvolt = <1800000>;
  332. regulator-always-on;
  333. regulator-boot-on;
  334. };
  335. ldo9_reg: ldo9 {
  336. /* VDD_RTC */
  337. regulator-name = "ldo9";
  338. regulator-min-microvolt = <1050000>;
  339. regulator-max-microvolt = <1050000>;
  340. regulator-always-on;
  341. regulator-boot-on;
  342. };
  343. ldoln_reg: ldoln {
  344. /* VDDA_1V8_PLL */
  345. regulator-name = "ldoln";
  346. regulator-min-microvolt = <1800000>;
  347. regulator-max-microvolt = <1800000>;
  348. regulator-always-on;
  349. regulator-boot-on;
  350. };
  351. ldousb_reg: ldousb {
  352. /* VDDA_3V_USB: VDDA_USBHS33 */
  353. regulator-name = "ldousb";
  354. regulator-min-microvolt = <3300000>;
  355. regulator-max-microvolt = <3300000>;
  356. regulator-boot-on;
  357. };
  358. };
  359. };
  360. };
  361. pcf_gpio_21: gpio@21 {
  362. compatible = "ti,pcf8575";
  363. reg = <0x21>;
  364. lines-initial-states = <0x1408>;
  365. gpio-controller;
  366. #gpio-cells = <2>;
  367. interrupt-parent = <&gpio6>;
  368. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  369. interrupt-controller;
  370. #interrupt-cells = <2>;
  371. };
  372. };
  373. &i2c2 {
  374. status = "okay";
  375. pinctrl-names = "default";
  376. pinctrl-0 = <&i2c2_pins>;
  377. clock-frequency = <400000>;
  378. };
  379. &i2c3 {
  380. status = "okay";
  381. pinctrl-names = "default";
  382. pinctrl-0 = <&i2c3_pins>;
  383. clock-frequency = <400000>;
  384. };
  385. &mcspi1 {
  386. status = "okay";
  387. pinctrl-names = "default";
  388. pinctrl-0 = <&mcspi1_pins>;
  389. };
  390. &mcspi2 {
  391. status = "okay";
  392. pinctrl-names = "default";
  393. pinctrl-0 = <&mcspi2_pins>;
  394. };
  395. &uart1 {
  396. status = "okay";
  397. pinctrl-names = "default";
  398. pinctrl-0 = <&uart1_pins>;
  399. interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  400. <&dra7_pmx_core 0x3e0>;
  401. };
  402. &uart2 {
  403. status = "okay";
  404. pinctrl-names = "default";
  405. pinctrl-0 = <&uart2_pins>;
  406. };
  407. &uart3 {
  408. status = "okay";
  409. pinctrl-names = "default";
  410. pinctrl-0 = <&uart3_pins>;
  411. };
  412. &mmc1 {
  413. status = "okay";
  414. vmmc-supply = <&ldo1_reg>;
  415. bus-width = <4>;
  416. };
  417. &mmc2 {
  418. status = "okay";
  419. vmmc-supply = <&mmc2_3v3>;
  420. bus-width = <8>;
  421. };
  422. &cpu0 {
  423. cpu0-supply = <&smps123_reg>;
  424. };
  425. &qspi {
  426. status = "okay";
  427. pinctrl-names = "default";
  428. pinctrl-0 = <&qspi1_pins>;
  429. spi-max-frequency = <48000000>;
  430. m25p80@0 {
  431. compatible = "s25fl256s1","spi-flash";
  432. spi-max-frequency = <48000000>;
  433. reg = <0>;
  434. spi-tx-bus-width = <1>;
  435. spi-rx-bus-width = <4>;
  436. spi-cpol;
  437. spi-cpha;
  438. #address-cells = <1>;
  439. #size-cells = <1>;
  440. /* MTD partition table.
  441. * The ROM checks the first four physical blocks
  442. * for a valid file to boot and the flash here is
  443. * 64KiB block size.
  444. */
  445. partition@0 {
  446. label = "QSPI.SPL";
  447. reg = <0x00000000 0x000010000>;
  448. };
  449. partition@1 {
  450. label = "QSPI.SPL.backup1";
  451. reg = <0x00010000 0x00010000>;
  452. };
  453. partition@2 {
  454. label = "QSPI.SPL.backup2";
  455. reg = <0x00020000 0x00010000>;
  456. };
  457. partition@3 {
  458. label = "QSPI.SPL.backup3";
  459. reg = <0x00030000 0x00010000>;
  460. };
  461. partition@4 {
  462. label = "QSPI.u-boot";
  463. reg = <0x00040000 0x00100000>;
  464. };
  465. partition@5 {
  466. label = "QSPI.u-boot-spl-os";
  467. reg = <0x00140000 0x00080000>;
  468. };
  469. partition@6 {
  470. label = "QSPI.u-boot-env";
  471. reg = <0x001c0000 0x00010000>;
  472. };
  473. partition@7 {
  474. label = "QSPI.u-boot-env.backup1";
  475. reg = <0x001d0000 0x0010000>;
  476. };
  477. partition@8 {
  478. label = "QSPI.kernel";
  479. reg = <0x001e0000 0x0800000>;
  480. };
  481. partition@9 {
  482. label = "QSPI.file-system";
  483. reg = <0x009e0000 0x01620000>;
  484. };
  485. };
  486. };
  487. &omap_dwc3_1 {
  488. extcon = <&extcon_usb1>;
  489. };
  490. &omap_dwc3_2 {
  491. extcon = <&extcon_usb2>;
  492. };
  493. &usb1 {
  494. dr_mode = "peripheral";
  495. pinctrl-names = "default";
  496. pinctrl-0 = <&usb1_pins>;
  497. };
  498. &usb2 {
  499. dr_mode = "host";
  500. pinctrl-names = "default";
  501. pinctrl-0 = <&usb2_pins>;
  502. };
  503. &elm {
  504. status = "okay";
  505. };
  506. &gpmc {
  507. status = "okay";
  508. pinctrl-names = "default";
  509. pinctrl-0 = <&nand_flash_x16>;
  510. ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
  511. nand@0,0 {
  512. reg = <0 0 4>; /* device IO registers */
  513. ti,nand-ecc-opt = "bch8";
  514. ti,elm-id = <&elm>;
  515. nand-bus-width = <16>;
  516. gpmc,device-width = <2>;
  517. gpmc,sync-clk-ps = <0>;
  518. gpmc,cs-on-ns = <0>;
  519. gpmc,cs-rd-off-ns = <80>;
  520. gpmc,cs-wr-off-ns = <80>;
  521. gpmc,adv-on-ns = <0>;
  522. gpmc,adv-rd-off-ns = <60>;
  523. gpmc,adv-wr-off-ns = <60>;
  524. gpmc,we-on-ns = <10>;
  525. gpmc,we-off-ns = <50>;
  526. gpmc,oe-on-ns = <4>;
  527. gpmc,oe-off-ns = <40>;
  528. gpmc,access-ns = <40>;
  529. gpmc,wr-access-ns = <80>;
  530. gpmc,rd-cycle-ns = <80>;
  531. gpmc,wr-cycle-ns = <80>;
  532. gpmc,bus-turnaround-ns = <0>;
  533. gpmc,cycle2cycle-delay-ns = <0>;
  534. gpmc,clk-activation-ns = <0>;
  535. gpmc,wait-monitoring-ns = <0>;
  536. gpmc,wr-data-mux-bus-ns = <0>;
  537. /* MTD partition table */
  538. /* All SPL-* partitions are sized to minimal length
  539. * which can be independently programmable. For
  540. * NAND flash this is equal to size of erase-block */
  541. #address-cells = <1>;
  542. #size-cells = <1>;
  543. partition@0 {
  544. label = "NAND.SPL";
  545. reg = <0x00000000 0x000020000>;
  546. };
  547. partition@1 {
  548. label = "NAND.SPL.backup1";
  549. reg = <0x00020000 0x00020000>;
  550. };
  551. partition@2 {
  552. label = "NAND.SPL.backup2";
  553. reg = <0x00040000 0x00020000>;
  554. };
  555. partition@3 {
  556. label = "NAND.SPL.backup3";
  557. reg = <0x00060000 0x00020000>;
  558. };
  559. partition@4 {
  560. label = "NAND.u-boot-spl-os";
  561. reg = <0x00080000 0x00040000>;
  562. };
  563. partition@5 {
  564. label = "NAND.u-boot";
  565. reg = <0x000c0000 0x00100000>;
  566. };
  567. partition@6 {
  568. label = "NAND.u-boot-env";
  569. reg = <0x001c0000 0x00020000>;
  570. };
  571. partition@7 {
  572. label = "NAND.u-boot-env.backup1";
  573. reg = <0x001e0000 0x00020000>;
  574. };
  575. partition@8 {
  576. label = "NAND.kernel";
  577. reg = <0x00200000 0x00800000>;
  578. };
  579. partition@9 {
  580. label = "NAND.file-system";
  581. reg = <0x00a00000 0x0f600000>;
  582. };
  583. };
  584. };
  585. &usb2_phy1 {
  586. phy-supply = <&ldousb_reg>;
  587. };
  588. &usb2_phy2 {
  589. phy-supply = <&ldousb_reg>;
  590. };
  591. &gpio7 {
  592. ti,no-reset-on-init;
  593. ti,no-idle-on-init;
  594. };
  595. &mac {
  596. status = "okay";
  597. pinctrl-names = "default", "sleep";
  598. pinctrl-0 = <&cpsw_default>;
  599. pinctrl-1 = <&cpsw_sleep>;
  600. dual_emac;
  601. };
  602. &cpsw_emac0 {
  603. phy_id = <&davinci_mdio>, <2>;
  604. phy-mode = "rgmii";
  605. dual_emac_res_vlan = <1>;
  606. };
  607. &cpsw_emac1 {
  608. phy_id = <&davinci_mdio>, <3>;
  609. phy-mode = "rgmii";
  610. dual_emac_res_vlan = <2>;
  611. };
  612. &davinci_mdio {
  613. pinctrl-names = "default", "sleep";
  614. pinctrl-0 = <&davinci_mdio_default>;
  615. pinctrl-1 = <&davinci_mdio_sleep>;
  616. };
  617. &dcan1 {
  618. status = "ok";
  619. pinctrl-names = "default", "sleep", "active";
  620. pinctrl-0 = <&dcan1_pins_sleep>;
  621. pinctrl-1 = <&dcan1_pins_sleep>;
  622. pinctrl-2 = <&dcan1_pins_default>;
  623. };