dra7-evm.dts 17 KB

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