logicpd-som-lv.dtsi 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License version 2 as
  4. * published by the Free Software Foundation.
  5. */
  6. #include <dt-bindings/input/input.h>
  7. / {
  8. cpus {
  9. cpu@0 {
  10. cpu0-supply = <&vcc>;
  11. };
  12. };
  13. memory@80000000 {
  14. device_type = "memory";
  15. reg = <0x80000000 0>;
  16. };
  17. wl12xx_vmmc: wl12xx_vmmc {
  18. compatible = "regulator-fixed";
  19. regulator-name = "vwl1271";
  20. regulator-min-microvolt = <1800000>;
  21. regulator-max-microvolt = <1800000>;
  22. gpio = <&gpio1 3 0>; /* gpio_3 */
  23. startup-delay-us = <70000>;
  24. enable-active-high;
  25. vin-supply = <&vaux3>;
  26. };
  27. /* HS USB Host PHY on PORT 1 */
  28. hsusb2_phy: hsusb2_phy {
  29. compatible = "usb-nop-xceiv";
  30. reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; /* gpio_4 */
  31. #phy-cells = <0>;
  32. };
  33. };
  34. &gpmc {
  35. ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
  36. nand@0,0 {
  37. compatible = "ti,omap2-nand";
  38. reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
  39. interrupt-parent = <&gpmc>;
  40. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  41. <1 IRQ_TYPE_NONE>; /* termcount */
  42. linux,mtd-name = "micron,mt29f4g16abbda3w";
  43. nand-bus-width = <16>;
  44. ti,nand-ecc-opt = "bch8";
  45. rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
  46. gpmc,sync-clk-ps = <0>;
  47. gpmc,cs-on-ns = <0>;
  48. gpmc,cs-rd-off-ns = <44>;
  49. gpmc,cs-wr-off-ns = <44>;
  50. gpmc,adv-on-ns = <6>;
  51. gpmc,adv-rd-off-ns = <34>;
  52. gpmc,adv-wr-off-ns = <44>;
  53. gpmc,we-off-ns = <40>;
  54. gpmc,oe-off-ns = <54>;
  55. gpmc,access-ns = <64>;
  56. gpmc,rd-cycle-ns = <82>;
  57. gpmc,wr-cycle-ns = <82>;
  58. gpmc,wr-access-ns = <40>;
  59. gpmc,wr-data-mux-bus-ns = <0>;
  60. gpmc,device-width = <2>;
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. };
  64. };
  65. &i2c1 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&i2c1_pins>;
  68. clock-frequency = <2600000>;
  69. twl: twl@48 {
  70. reg = <0x48>;
  71. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  72. interrupt-parent = <&intc>;
  73. twl_audio: audio {
  74. compatible = "ti,twl4030-audio";
  75. codec {
  76. ti,hs_extmute_gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;
  77. };
  78. };
  79. };
  80. };
  81. &i2c2 {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&i2c2_pins>;
  84. clock-frequency = <400000>;
  85. };
  86. &i2c3 {
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&i2c3_pins>;
  89. clock-frequency = <400000>;
  90. };
  91. &mmc3 {
  92. interrupts-extended = <&intc 94 &omap3_pmx_core2 0x46>;
  93. pinctrl-0 = <&mmc3_pins &wl127x_gpio>;
  94. pinctrl-names = "default";
  95. vmmc-supply = <&wl12xx_vmmc>;
  96. non-removable;
  97. bus-width = <4>;
  98. cap-power-off-card;
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. wlcore: wlcore@2 {
  102. compatible = "ti,wl1273";
  103. reg = <2>;
  104. interrupt-parent = <&gpio1>;
  105. interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; /* gpio 2 */
  106. ref-clock-frequency = <26000000>;
  107. };
  108. };
  109. &usbhshost {
  110. port2-mode = "ehci-phy";
  111. };
  112. &usbhsehci {
  113. phys = <0 &hsusb2_phy>;
  114. };
  115. &omap3_pmx_core {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&hsusb2_pins>;
  118. mmc3_pins: pinmux_mm3_pins {
  119. pinctrl-single,pins = <
  120. OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat4.sdmmc3_dat0 */
  121. OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat5.sdmmc3_dat1 */
  122. OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat2 */
  123. OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat3 */
  124. OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.sdmmc3_cmd */
  125. OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs2.sdmmc_clk */
  126. >;
  127. };
  128. mcbsp2_pins: pinmux_mcbsp2_pins {
  129. pinctrl-single,pins = <
  130. OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */
  131. OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */
  132. OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */
  133. OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */
  134. >;
  135. };
  136. uart2_pins: pinmux_uart2_pins {
  137. pinctrl-single,pins = <
  138. OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */
  139. OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/
  140. OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
  141. OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
  142. OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */
  143. >;
  144. };
  145. mcspi1_pins: pinmux_mcspi1_pins {
  146. pinctrl-single,pins = <
  147. OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
  148. OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
  149. OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
  150. OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
  151. >;
  152. };
  153. hsusb2_pins: pinmux_hsusb2_pins {
  154. pinctrl-single,pins = <
  155. OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
  156. OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
  157. OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
  158. OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
  159. OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
  160. OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
  161. >;
  162. };
  163. hsusb_otg_pins: pinmux_hsusb_otg_pins {
  164. pinctrl-single,pins = <
  165. OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */
  166. OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */
  167. OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */
  168. OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */
  169. OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */
  170. OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */
  171. OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */
  172. OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */
  173. OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */
  174. OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */
  175. OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */
  176. OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */
  177. >;
  178. };
  179. i2c1_pins: pinmux_i2c1_pins {
  180. pinctrl-single,pins = <
  181. OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
  182. OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
  183. OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */
  184. >;
  185. };
  186. };
  187. &omap3_pmx_wkup {
  188. pinctrl-names = "default";
  189. pinctrl-0 = <&hsusb2_reset_pin>;
  190. hsusb2_reset_pin: pinmux_hsusb1_reset_pin {
  191. pinctrl-single,pins = <
  192. OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4) /* sys_boot2.gpio_4 */
  193. >;
  194. };
  195. wl127x_gpio: pinmux_wl127x_gpio_pin {
  196. pinctrl-single,pins = <
  197. OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT | MUX_MODE4) /* sys_boot0.gpio_2 */
  198. OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4) /* sys_boot1.gpio_3 */
  199. >;
  200. };
  201. i2c2_pins: pinmux_i2c2_pins {
  202. pinctrl-single,pins = <
  203. OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0) /* i2c2_scl */
  204. OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0) /* i2c2_sda */
  205. >;
  206. };
  207. i2c3_pins: pinmux_i2c3_pins {
  208. pinctrl-single,pins = <
  209. OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl */
  210. OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda */
  211. >;
  212. };
  213. };
  214. &omap3_pmx_core2 {
  215. pinctrl-names = "default";
  216. pinctrl-0 = <&hsusb2_2_pins>;
  217. hsusb2_2_pins: pinmux_hsusb2_2_pins {
  218. pinctrl-single,pins = <
  219. OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
  220. OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
  221. OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
  222. OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
  223. OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
  224. OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
  225. >;
  226. };
  227. };
  228. &uart2 {
  229. interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
  230. pinctrl-names = "default";
  231. pinctrl-0 = <&uart2_pins>;
  232. };
  233. &mcspi1 {
  234. pinctrl-names = "default";
  235. pinctrl-0 = <&mcspi1_pins>;
  236. };
  237. #include "twl4030.dtsi"
  238. #include "twl4030_omap3.dtsi"
  239. &vaux3 {
  240. regulator-min-microvolt = <2800000>;
  241. regulator-max-microvolt = <2800000>;
  242. };
  243. &twl {
  244. twl_power: power {
  245. compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
  246. ti,use_poweroff;
  247. };
  248. };
  249. &twl_gpio {
  250. ti,use-leds;
  251. };