omap3-ldp.dts 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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 <dt-bindings/input/input.h>
  10. #include "omap34xx.dtsi"
  11. #include "omap-gpmc-smsc911x.dtsi"
  12. / {
  13. model = "TI OMAP3430 LDP (Zoom1 Labrador)";
  14. compatible = "ti,omap3-ldp", "ti,omap3";
  15. memory@80000000 {
  16. device_type = "memory";
  17. reg = <0x80000000 0x8000000>; /* 128 MB */
  18. };
  19. cpus {
  20. cpu@0 {
  21. cpu0-supply = <&vcc>;
  22. };
  23. };
  24. gpio_keys {
  25. compatible = "gpio-keys";
  26. pinctrl-names = "default";
  27. pinctrl-0 = <&gpio_key_pins>;
  28. key_enter {
  29. label = "enter";
  30. gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; /* gpio101 */
  31. linux,code = <KEY_ENTER>;
  32. wakeup-source;
  33. };
  34. key_f1 {
  35. label = "f1";
  36. gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; /* gpio102 */
  37. linux,code = <KEY_F1>;
  38. wakeup-source;
  39. };
  40. key_f2 {
  41. label = "f2";
  42. gpios = <&gpio4 7 GPIO_ACTIVE_LOW>; /* gpio103 */
  43. linux,code = <KEY_F2>;
  44. wakeup-source;
  45. };
  46. key_f3 {
  47. label = "f3";
  48. gpios = <&gpio4 8 GPIO_ACTIVE_LOW>; /* gpio104 */
  49. linux,code = <KEY_F3>;
  50. wakeup-source;
  51. };
  52. key_f4 {
  53. label = "f4";
  54. gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; /* gpio105 */
  55. linux,code = <KEY_F4>;
  56. wakeup-source;
  57. };
  58. key_left {
  59. label = "left";
  60. gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* gpio106 */
  61. linux,code = <KEY_LEFT>;
  62. wakeup-source;
  63. };
  64. key_right {
  65. label = "right";
  66. gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; /* gpio107 */
  67. linux,code = <KEY_RIGHT>;
  68. wakeup-source;
  69. };
  70. key_up {
  71. label = "up";
  72. gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; /* gpio108 */
  73. linux,code = <KEY_UP>;
  74. wakeup-source;
  75. };
  76. key_down {
  77. label = "down";
  78. gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* gpio109 */
  79. linux,code = <KEY_DOWN>;
  80. wakeup-source;
  81. };
  82. };
  83. };
  84. &gpmc {
  85. ranges = <0 0 0x30000000 0x1000000>, /* CS0 space, 16MB */
  86. <1 0 0x08000000 0x1000000>; /* CS1 space, 16MB */
  87. nand@0,0 {
  88. compatible = "ti,omap2-nand";
  89. reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
  90. interrupt-parent = <&gpmc>;
  91. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  92. <1 IRQ_TYPE_NONE>; /* termcount */
  93. linux,mtd-name= "micron,nand";
  94. nand-bus-width = <16>;
  95. gpmc,device-width = <2>;
  96. ti,nand-ecc-opt = "bch8";
  97. gpmc,sync-clk-ps = <0>;
  98. gpmc,cs-on-ns = <0>;
  99. gpmc,cs-rd-off-ns = <44>;
  100. gpmc,cs-wr-off-ns = <44>;
  101. gpmc,adv-on-ns = <6>;
  102. gpmc,adv-rd-off-ns = <34>;
  103. gpmc,adv-wr-off-ns = <44>;
  104. gpmc,we-off-ns = <40>;
  105. gpmc,oe-off-ns = <54>;
  106. gpmc,access-ns = <64>;
  107. gpmc,rd-cycle-ns = <82>;
  108. gpmc,wr-cycle-ns = <82>;
  109. gpmc,wr-access-ns = <40>;
  110. gpmc,wr-data-mux-bus-ns = <0>;
  111. #address-cells = <1>;
  112. #size-cells = <1>;
  113. partition@0 {
  114. label = "X-Loader";
  115. reg = <0 0x80000>;
  116. };
  117. partition@80000 {
  118. label = "U-Boot";
  119. reg = <0x80000 0x140000>;
  120. };
  121. partition@1c0000 {
  122. label = "Environment";
  123. reg = <0x1c0000 0x40000>;
  124. };
  125. partition@200000 {
  126. label = "Kernel";
  127. reg = <0x200000 0x1e00000>;
  128. };
  129. partition@2000000 {
  130. label = "Filesystem";
  131. reg = <0x2000000 0x6000000>;
  132. };
  133. };
  134. ethernet@gpmc {
  135. interrupt-parent = <&gpio5>;
  136. interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
  137. reg = <1 0 0xff>;
  138. };
  139. };
  140. &i2c1 {
  141. clock-frequency = <2600000>;
  142. twl: twl@48 {
  143. reg = <0x48>;
  144. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  145. interrupt-parent = <&intc>;
  146. twl_power: power {
  147. compatible = "ti,twl4030-power-idle";
  148. ti,use_poweroff;
  149. };
  150. };
  151. };
  152. #include "twl4030.dtsi"
  153. #include "twl4030_omap3.dtsi"
  154. #include "omap3-panel-sharp-ls037v7dw01.dtsi"
  155. &backlight0 {
  156. gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>;
  157. };
  158. &i2c2 {
  159. clock-frequency = <400000>;
  160. };
  161. &i2c3 {
  162. clock-frequency = <400000>;
  163. };
  164. /* tps61130rsa enabled by twl4030 regen */
  165. &lcd_3v3 {
  166. regulator-always-on;
  167. };
  168. &lcd0 {
  169. enable-gpios = <&twl_gpio 15 GPIO_ACTIVE_HIGH>; /* lcd INI */
  170. reset-gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>; /* gpio55, lcd RESB */
  171. mode-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; /* gpio56, lcd MO */
  172. };
  173. &mcspi1 {
  174. tsc2046@0 {
  175. interrupt-parent = <&gpio2>;
  176. interrupts = <22 0>; /* gpio54 */
  177. pendown-gpio = <&gpio2 22 GPIO_ACTIVE_HIGH>;
  178. };
  179. };
  180. &mmc1 {
  181. /* See 35xx errata 2.1.1.128 in SPRZ278F */
  182. compatible = "ti,omap3-pre-es3-hsmmc";
  183. vmmc-supply = <&vmmc1>;
  184. bus-width = <4>;
  185. pinctrl-names = "default";
  186. pinctrl-0 = <&mmc1_pins>;
  187. };
  188. &mmc2 {
  189. status="disabled";
  190. };
  191. &mmc3 {
  192. status="disabled";
  193. };
  194. &omap3_pmx_core {
  195. gpio_key_pins: pinmux_gpio_key_pins {
  196. pinctrl-single,pins = <
  197. OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE4) /* cam_d2.gpio_101 */
  198. OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE4) /* cam_d3.gpio_102 */
  199. OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE4) /* cam_d4.gpio_103 */
  200. OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE4) /* cam_d5.gpio_104 */
  201. OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT | MUX_MODE4) /* cam_d6.gpio_105 */
  202. OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT | MUX_MODE4) /* cam_d7.gpio_106 */
  203. OMAP3_CORE1_IOPAD(0x2126, PIN_INPUT | MUX_MODE4) /* cam_d8.gpio_107 */
  204. OMAP3_CORE1_IOPAD(0x2128, PIN_INPUT | MUX_MODE4) /* cam_d9.gpio_108 */
  205. OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT | MUX_MODE4) /* cam_d10.gpio_109 */
  206. >;
  207. };
  208. musb_pins: pinmux_musb_pins {
  209. pinctrl-single,pins = <
  210. OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */
  211. OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */
  212. OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */
  213. OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */
  214. OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */
  215. OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */
  216. OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */
  217. OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */
  218. OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */
  219. OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */
  220. OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */
  221. OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */
  222. >;
  223. };
  224. mmc1_pins: pinmux_mmc1_pins {
  225. pinctrl-single,pins = <
  226. OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.mmc1_clk */
  227. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.mmc1_cmd */
  228. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.mmc1_dat0 */
  229. OMAP3_CORE1_IOPAD(0x214A, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.mmc1_dat1 */
  230. OMAP3_CORE1_IOPAD(0x214C, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.mmc1_dat2 */
  231. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.mmc1_dat3 */
  232. >;
  233. };
  234. };
  235. &twl_keypad {
  236. linux,keymap = <MATRIX_KEY(0, 0, KEY_1)
  237. MATRIX_KEY(0, 1, KEY_2)
  238. MATRIX_KEY(0, 2, KEY_3)
  239. MATRIX_KEY(1, 0, KEY_4)
  240. MATRIX_KEY(1, 1, KEY_5)
  241. MATRIX_KEY(1, 2, KEY_6)
  242. MATRIX_KEY(1, 3, KEY_F5)
  243. MATRIX_KEY(2, 0, KEY_7)
  244. MATRIX_KEY(2, 1, KEY_8)
  245. MATRIX_KEY(2, 2, KEY_9)
  246. MATRIX_KEY(2, 3, KEY_F6)
  247. MATRIX_KEY(3, 0, KEY_F7)
  248. MATRIX_KEY(3, 1, KEY_0)
  249. MATRIX_KEY(3, 2, KEY_F8)
  250. MATRIX_KEY(5, 4, KEY_RESERVED)
  251. MATRIX_KEY(4, 4, KEY_VOLUMEUP)
  252. MATRIX_KEY(5, 5, KEY_VOLUMEDOWN)>;
  253. };
  254. &uart3 {
  255. interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
  256. };
  257. &usb_otg_hs {
  258. pinctrl-names = "default";
  259. pinctrl-0 = <&musb_pins>;
  260. interface-type = <0>;
  261. usb-phy = <&usb2_phy>;
  262. mode = <3>;
  263. power = <50>;
  264. };
  265. &vaux1 {
  266. /* Needed for ads7846 */
  267. regulator-name = "vcc";
  268. };