logicpd-som-lv-baseboard.dtsi 7.2 KB

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