omap3-tao3530.dtsi 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. /*
  2. * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
  3. * Copyright (C) 2014 Stefan Roese <sr@denx.de>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. /dts-v1/;
  10. #include "omap34xx.dtsi"
  11. /* Secure omaps have some devices inaccessible depending on the firmware */
  12. &aes {
  13. status = "disabled";
  14. };
  15. &sham {
  16. status = "disabled";
  17. };
  18. / {
  19. cpus {
  20. cpu@0 {
  21. cpu0-supply = <&vcc>;
  22. };
  23. };
  24. memory@80000000 {
  25. device_type = "memory";
  26. reg = <0x80000000 0x10000000>; /* 256 MB */
  27. };
  28. /* HS USB Port 2 Power */
  29. hsusb2_power: hsusb2_power_reg {
  30. compatible = "regulator-fixed";
  31. regulator-name = "hsusb2_vbus";
  32. regulator-min-microvolt = <3300000>;
  33. regulator-max-microvolt = <3300000>;
  34. gpio = <&twl_gpio 18 GPIO_ACTIVE_HIGH>; /* GPIO LEDA */
  35. startup-delay-us = <70000>;
  36. };
  37. /* HS USB Host PHY on PORT 2 */
  38. hsusb2_phy: hsusb2_phy {
  39. compatible = "usb-nop-xceiv";
  40. reset-gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* gpio_162 */
  41. vcc-supply = <&hsusb2_power>;
  42. };
  43. sound {
  44. compatible = "ti,omap-twl4030";
  45. ti,model = "omap3beagle";
  46. /* McBSP2 is used for onboard sound, same as on beagle */
  47. ti,mcbsp = <&mcbsp2>;
  48. };
  49. /* Regulator to enable/switch the vcc of the Wifi module */
  50. mmc2_sdio_poweron: regulator-mmc2-sdio-poweron {
  51. compatible = "regulator-fixed";
  52. regulator-name = "regulator-mmc2-sdio-poweron";
  53. regulator-min-microvolt = <3150000>;
  54. regulator-max-microvolt = <3150000>;
  55. gpio = <&gpio5 29 GPIO_ACTIVE_LOW>; /* gpio_157 */
  56. enable-active-low;
  57. startup-delay-us = <10000>;
  58. };
  59. };
  60. &omap3_pmx_core {
  61. hsusbb2_pins: pinmux_hsusbb2_pins {
  62. pinctrl-single,pins = <
  63. OMAP3_CORE1_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
  64. OMAP3_CORE1_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
  65. OMAP3_CORE1_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
  66. OMAP3_CORE1_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
  67. OMAP3_CORE1_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
  68. OMAP3_CORE1_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
  69. OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
  70. OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
  71. OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
  72. OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
  73. OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
  74. OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
  75. >;
  76. };
  77. mmc1_pins: pinmux_mmc1_pins {
  78. pinctrl-single,pins = <
  79. OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  80. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  81. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  82. OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  83. OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  84. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  85. OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat4.sdmmc1_dat4 */
  86. OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat5.sdmmc1_dat5 */
  87. OMAP3_CORE1_IOPAD(0x2154, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat6.sdmmc1_dat6 */
  88. OMAP3_CORE1_IOPAD(0x2156, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat7.sdmmc1_dat7 */
  89. >;
  90. };
  91. mmc2_pins: pinmux_mmc2_pins {
  92. pinctrl-single,pins = <
  93. OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
  94. OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
  95. OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
  96. OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
  97. OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
  98. OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
  99. >;
  100. };
  101. /* wlan GPIO output for WLAN_EN */
  102. wlan_gpio: pinmux_wlan_gpio {
  103. pinctrl-single,pins = <
  104. OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_fsr gpio_157 */
  105. >;
  106. };
  107. uart3_pins: pinmux_uart3_pins {
  108. pinctrl-single,pins = <
  109. OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  110. OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  111. >;
  112. };
  113. i2c3_pins: pinmux_i2c3_pins {
  114. pinctrl-single,pins = <
  115. OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl.i2c3_scl */
  116. OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.i2c3_sda */
  117. >;
  118. };
  119. mcspi1_pins: pinmux_mcspi1_pins {
  120. pinctrl-single,pins = <
  121. OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
  122. OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
  123. OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
  124. OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
  125. >;
  126. };
  127. mcspi3_pins: pinmux_mcspi3_pins {
  128. pinctrl-single,pins = <
  129. OMAP3_CORE1_IOPAD(0x25dc, PIN_OUTPUT | MUX_MODE1) /* etk_d0.mcspi3_simo gpio14 INPUT | MODE1 */
  130. OMAP3_CORE1_IOPAD(0x25de, PIN_INPUT_PULLUP | MUX_MODE1) /* etk_d1.mcspi3_somi gpio15 INPUT | MODE1 */
  131. OMAP3_CORE1_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE1) /* etk_d2.mcspi3_cs0 gpio16 INPUT | MODE1 */
  132. OMAP3_CORE1_IOPAD(0x25e2, PIN_INPUT | MUX_MODE1) /* etk_d3.mcspi3_clk gpio17 INPUT | MODE1 */
  133. >;
  134. };
  135. mcbsp3_pins: pinmux_mcbsp3_pins {
  136. pinctrl-single,pins = <
  137. OMAP3_CORE1_IOPAD(0x216c, PIN_OUTPUT | MUX_MODE0) /* mcbsp3_dx.uart2_cts */
  138. OMAP3_CORE1_IOPAD(0x216e, PIN_INPUT | MUX_MODE0) /* mcbsp3_dr.uart2_rts */
  139. OMAP3_CORE1_IOPAD(0x2170, PIN_INPUT | MUX_MODE0) /* mcbsp3_clk.uart2_tx */
  140. OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE0) /* mcbsp3_fsx.uart2_rx */
  141. >;
  142. };
  143. };
  144. /* McBSP1: mux'ed with GPIO158 as clock for HA-DSP */
  145. &mcbsp1 {
  146. status = "disabled";
  147. };
  148. &mcbsp2 {
  149. status = "okay";
  150. };
  151. &i2c1 {
  152. clock-frequency = <2600000>;
  153. twl: twl@48 {
  154. reg = <0x48>;
  155. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  156. interrupt-parent = <&intc>;
  157. twl_audio: audio {
  158. compatible = "ti,twl4030-audio";
  159. codec {
  160. };
  161. };
  162. };
  163. };
  164. &i2c3 {
  165. clock-frequency = <100000>;
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&i2c3_pins>;
  168. };
  169. &mcspi1 {
  170. pinctrl-names = "default";
  171. pinctrl-0 = <&mcspi1_pins>;
  172. spidev@0 {
  173. compatible = "spidev";
  174. spi-max-frequency = <48000000>;
  175. reg = <0>;
  176. spi-cpha;
  177. };
  178. };
  179. &mcspi3 {
  180. pinctrl-names = "default";
  181. pinctrl-0 = <&mcspi3_pins>;
  182. spidev@0 {
  183. compatible = "spidev";
  184. spi-max-frequency = <48000000>;
  185. reg = <0>;
  186. spi-cpha;
  187. };
  188. };
  189. #include "twl4030.dtsi"
  190. #include "twl4030_omap3.dtsi"
  191. &mmc1 {
  192. pinctrl-names = "default";
  193. pinctrl-0 = <&mmc1_pins>;
  194. vmmc-supply = <&vmmc1>;
  195. vmmc_aux-supply = <&vsim>;
  196. cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_HIGH>;
  197. bus-width = <8>;
  198. };
  199. // WiFi (Marvell 88W8686) on MMC2/SDIO
  200. &mmc2 {
  201. pinctrl-names = "default";
  202. pinctrl-0 = <&mmc2_pins>;
  203. vmmc-supply = <&mmc2_sdio_poweron>;
  204. non-removable;
  205. bus-width = <4>;
  206. cap-power-off-card;
  207. };
  208. &mmc3 {
  209. status = "disabled";
  210. };
  211. &usbhshost {
  212. port2-mode = "ehci-phy";
  213. };
  214. &usbhsehci {
  215. phys = <0 &hsusb2_phy>;
  216. };
  217. &twl_gpio {
  218. ti,use-leds;
  219. /* pullups: BIT(1) */
  220. ti,pullups = <0x000002>;
  221. /*
  222. * pulldowns:
  223. * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
  224. * BIT(15), BIT(16), BIT(17)
  225. */
  226. ti,pulldowns = <0x03a1c4>;
  227. };
  228. &uart3 {
  229. pinctrl-names = "default";
  230. pinctrl-0 = <&uart3_pins>;
  231. };
  232. &mcbsp3 {
  233. status = "okay";
  234. pinctrl-names = "default";
  235. pinctrl-0 = <&mcbsp3_pins>;
  236. };
  237. &gpmc {
  238. ranges = <0 0 0x30000000 0x01000000>; /* CS0: 16MB for NAND */
  239. nand@0,0 {
  240. compatible = "ti,omap2-nand";
  241. reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
  242. interrupt-parent = <&gpmc>;
  243. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  244. <1 IRQ_TYPE_NONE>; /* termcount */
  245. nand-bus-width = <16>;
  246. gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
  247. ti,nand-ecc-opt = "sw";
  248. gpmc,cs-on-ns = <0>;
  249. gpmc,cs-rd-off-ns = <36>;
  250. gpmc,cs-wr-off-ns = <36>;
  251. gpmc,adv-on-ns = <6>;
  252. gpmc,adv-rd-off-ns = <24>;
  253. gpmc,adv-wr-off-ns = <36>;
  254. gpmc,oe-on-ns = <6>;
  255. gpmc,oe-off-ns = <48>;
  256. gpmc,we-on-ns = <6>;
  257. gpmc,we-off-ns = <30>;
  258. gpmc,rd-cycle-ns = <72>;
  259. gpmc,wr-cycle-ns = <72>;
  260. gpmc,access-ns = <54>;
  261. gpmc,wr-access-ns = <30>;
  262. #address-cells = <1>;
  263. #size-cells = <1>;
  264. x-loader@0 {
  265. label = "X-Loader";
  266. reg = <0 0x80000>;
  267. };
  268. bootloaders@80000 {
  269. label = "U-Boot";
  270. reg = <0x80000 0x1e0000>;
  271. };
  272. bootloaders_env@260000 {
  273. label = "U-Boot Env";
  274. reg = <0x260000 0x20000>;
  275. };
  276. kernel@280000 {
  277. label = "Kernel";
  278. reg = <0x280000 0x400000>;
  279. };
  280. filesystem@680000 {
  281. label = "File System";
  282. reg = <0x680000 0xf980000>;
  283. };
  284. };
  285. };
  286. &usb_otg_hs {
  287. interface-type = <0>;
  288. usb-phy = <&usb2_phy>;
  289. phys = <&usb2_phy>;
  290. phy-names = "usb2-phy";
  291. mode = <3>;
  292. power = <50>;
  293. };
  294. &vaux2 {
  295. regulator-name = "vdd_ehci";
  296. regulator-min-microvolt = <1800000>;
  297. regulator-max-microvolt = <1800000>;
  298. regulator-always-on;
  299. };