logicpd-som-lv-37xx-devkit.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. /dts-v1/;
  7. #include "omap36xx.dtsi"
  8. #include "logicpd-som-lv.dtsi"
  9. #include "omap-gpmc-smsc9221.dtsi"
  10. / {
  11. model = "LogicPD Zoom DM3730 SOM-LV Development Kit";
  12. compatible = "logicpd,dm3730-som-lv-devkit", "ti,omap3630", "ti,omap3";
  13. gpio_keys {
  14. compatible = "gpio-keys";
  15. pinctrl-names = "default";
  16. pinctrl-0 = <&gpio_key_pins>;
  17. sysboot2 {
  18. label = "gpio3";
  19. gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* gpio_111 / uP_GPIO_3 */
  20. linux,code = <BTN_0>;
  21. wakeup-source;
  22. };
  23. };
  24. sound {
  25. compatible = "ti,omap-twl4030";
  26. ti,model = "omap3logic";
  27. ti,mcbsp = <&mcbsp2>;
  28. };
  29. leds {
  30. compatible = "gpio-leds";
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&led_pins &led_pins_wkup>;
  33. led1 {
  34. label = "led1";
  35. gpios = <&gpio5 5 GPIO_ACTIVE_LOW>; /* gpio133 */
  36. linux,default-trigger = "cpu0";
  37. };
  38. led2 {
  39. label = "led2";
  40. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; /* gpio11 */
  41. linux,default-trigger = "none";
  42. };
  43. };
  44. };
  45. &vaux1 {
  46. regulator-min-microvolt = <3000000>;
  47. regulator-max-microvolt = <3000000>;
  48. };
  49. &vaux4 {
  50. regulator-min-microvolt = <1800000>;
  51. regulator-max-microvolt = <1800000>;
  52. };
  53. &mcbsp2 {
  54. status = "okay";
  55. };
  56. &charger {
  57. ti,bb-uvolt = <3200000>;
  58. ti,bb-uamp = <150>;
  59. };
  60. &gpmc {
  61. ranges = <0 0 0x30000000 0x1000000 /* CS0: 16MB for NAND */
  62. 1 0 0x2c000000 0x1000000>; /* CS1: 16MB for LAN9221 */
  63. ethernet@gpmc {
  64. pinctrl-names = "default";
  65. pinctrl-0 = <&lan9221_pins>;
  66. interrupt-parent = <&gpio5>;
  67. interrupts = <24 IRQ_TYPE_LEVEL_LOW>; /* gpio_152 */
  68. reg = <1 0 0xff>;
  69. };
  70. };
  71. &vpll2 {
  72. regulator-always-on;
  73. };
  74. &dss {
  75. status = "ok";
  76. vdds_dsi-supply = <&vpll2>;
  77. vdda_video-supply = <&video_reg>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&dss_dpi_pins1>;
  80. port {
  81. dpi_out: endpoint {
  82. remote-endpoint = <&lcd_in>;
  83. data-lines = <16>;
  84. };
  85. };
  86. };
  87. / {
  88. aliases {
  89. display0 = &lcd0;
  90. };
  91. video_reg: video_reg {
  92. compatible = "regulator-fixed";
  93. regulator-name = "fixed-supply";
  94. regulator-min-microvolt = <3300000>;
  95. regulator-max-microvolt = <3300000>;
  96. };
  97. lcd0: display@0 {
  98. compatible = "panel-dpi";
  99. label = "28";
  100. status = "okay";
  101. /* default-on; */
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&lcd_enable_pin>;
  104. enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>; /* gpio155, lcd INI */
  105. port {
  106. lcd_in: endpoint {
  107. remote-endpoint = <&dpi_out>;
  108. };
  109. };
  110. panel-timing {
  111. clock-frequency = <9000000>;
  112. hactive = <480>;
  113. vactive = <272>;
  114. hfront-porch = <3>;
  115. hback-porch = <2>;
  116. hsync-len = <42>;
  117. vback-porch = <3>;
  118. vfront-porch = <2>;
  119. vsync-len = <11>;
  120. hsync-active = <1>;
  121. vsync-active = <1>;
  122. de-active = <1>;
  123. pixelclk-active = <0>;
  124. };
  125. };
  126. bl: backlight {
  127. compatible = "pwm-backlight";
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&backlight_pins>;
  130. pwms = <&twl_pwm 0 5000000>;
  131. brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
  132. default-brightness-level = <7>;
  133. enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* gpio_8 */
  134. };
  135. };
  136. &mmc1 {
  137. interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&mmc1_pins>;
  140. wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
  141. cd-gpios = <&gpio4 14 IRQ_TYPE_LEVEL_LOW>; /* gpio_110 */
  142. vmmc-supply = <&vmmc1>;
  143. bus-width = <4>;
  144. cap-power-off-card;
  145. };
  146. &omap3_pmx_core {
  147. gpio_key_pins: pinmux_gpio_key_pins {
  148. pinctrl-single,pins = <
  149. OMAP3_CORE1_IOPAD(0x212e, PIN_INPUT_PULLUP | MUX_MODE4) /* cam_xclkb.gpio_111 / uP_GPIO_3*/
  150. >;
  151. };
  152. led_pins: pinmux_led_pins {
  153. pinctrl-single,pins = <
  154. OMAP3_CORE1_IOPAD(0x215e, PIN_OUTPUT_PULLUP | MUX_MODE4) /* sdmmc2_dat1.gpio_133 / uP_GPIO_0 */
  155. >;
  156. };
  157. lan9221_pins: pinmux_lan9221_pins {
  158. pinctrl-single,pins = <
  159. OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4) /* mcbsp4_clkx.gpio_152 */
  160. >;
  161. };
  162. mmc1_pins: pinmux_mmc1_pins {
  163. pinctrl-single,pins = <
  164. OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  165. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  166. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  167. OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  168. OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  169. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  170. OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLUP | MUX_MODE4) /* cam_strobe.gpio_126 */
  171. OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT_PULLUP | MUX_MODE4) /* cam_d11.gpio_110 */
  172. >;
  173. };
  174. lcd_enable_pin: pinmux_lcd_enable_pin {
  175. pinctrl-single,pins = <
  176. OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* mcbsp4_fs.gpio_155 */
  177. >;
  178. };
  179. dss_dpi_pins1: pinmux_dss_dpi_pins1 {
  180. pinctrl-single,pins = <
  181. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_pclk.dss_pclk */
  182. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_hsync.dss_hsync */
  183. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_vsync.dss_vsync */
  184. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_acbias.dss_acbias */
  185. OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data0.dss_data0 */
  186. OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data1.dss_data1 */
  187. OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data2.dss_data2 */
  188. OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data3.dss_data3 */
  189. OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data4.dss_data4 */
  190. OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data5.dss_data5 */
  191. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data6.dss_data6 */
  192. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data7.dss_data7 */
  193. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data8.dss_data8 */
  194. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data9.dss_data9 */
  195. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data10.dss_data10 */
  196. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data11.dss_data11 */
  197. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data12.dss_data12 */
  198. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data13.dss_data13 */
  199. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data14.dss_data14 */
  200. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data15.dss_data15 */
  201. >;
  202. };
  203. };
  204. &omap3_pmx_wkup {
  205. led_pins_wkup: pinmux_led_pins_wkup {
  206. pinctrl-single,pins = <
  207. OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 / uP_GPIO_1 */
  208. >;
  209. };
  210. backlight_pins: pinmux_backlight_pins {
  211. pinctrl-single,pins = <
  212. OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* sys_boot6.gpio_8 */
  213. >;
  214. };
  215. };
  216. &uart1 {
  217. interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
  218. };
  219. /* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
  220. &usb_otg_hs {
  221. pinctrl-names = "default";
  222. pinctrl-0 = <&hsusb_otg_pins>;
  223. interface-type = <0>;
  224. usb-phy = <&usb2_phy>;
  225. phys = <&usb2_phy>;
  226. phy-names = "usb2-phy";
  227. mode = <3>;
  228. power = <50>;
  229. };