omap3-overo-common-lcd43.dtsi 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
  4. */
  5. /*
  6. * 4.3'' LCD panel output for some Gumstix Overo boards (Gallop43, Chestnut43)
  7. */
  8. &omap3_pmx_core {
  9. dss_dpi_pins: pinmux_dss_dpi_pins {
  10. pinctrl-single,pins = <
  11. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
  12. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
  13. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
  14. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
  15. OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
  16. OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
  17. OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
  18. OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
  19. OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
  20. OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
  21. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
  22. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
  23. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
  24. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
  25. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
  26. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
  27. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
  28. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
  29. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
  30. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
  31. OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
  32. OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
  33. OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
  34. OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
  35. OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
  36. OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
  37. OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
  38. OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
  39. >;
  40. };
  41. lte430_pins: pinmux_lte430_pins {
  42. pinctrl-single,pins = <
  43. OMAP3_CORE1_IOPAD(0x2174, PIN_OUTPUT | MUX_MODE4) /* uart2_cts.gpio_144 */
  44. >;
  45. };
  46. backlight_pins: pinmux_backlight_pins {
  47. pinctrl-single,pins = <
  48. OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE4) /* uart2_rts.gpio_145 */
  49. >;
  50. };
  51. mcspi1_pins: pinmux_mcspi1_pins {
  52. pinctrl-single,pins = <
  53. OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
  54. OMAP3_CORE1_IOPAD(0x21ca, PIN_INPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
  55. OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
  56. OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
  57. >;
  58. };
  59. ads7846_pins: pinmux_ads7846_pins {
  60. pinctrl-single,pins = <
  61. OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT_PULLDOWN | MUX_MODE4) /* csi2_dx1.gpio_114 */
  62. >;
  63. };
  64. };
  65. /* Needed to power the DPI pins */
  66. &vpll2 {
  67. regulator-always-on;
  68. };
  69. &dss {
  70. status = "okay";
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&dss_dpi_pins>;
  73. port {
  74. dpi_out: endpoint {
  75. remote-endpoint = <&lcd_in>;
  76. data-lines = <24>;
  77. };
  78. };
  79. };
  80. / {
  81. aliases {
  82. display0 = &lcd0;
  83. };
  84. lcd0: display {
  85. compatible = "samsung,lte430wq-f0c", "panel-dpi";
  86. label = "lcd43";
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&lte430_pins>;
  89. enable-gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* gpio_144 */
  90. port {
  91. lcd_in: endpoint {
  92. remote-endpoint = <&dpi_out>;
  93. };
  94. };
  95. panel-timing {
  96. clock-frequency = <9200000>;
  97. hactive = <480>;
  98. vactive = <272>;
  99. hfront-porch = <8>;
  100. hback-porch = <4>;
  101. hsync-len = <41>;
  102. vback-porch = <2>;
  103. vfront-porch = <4>;
  104. vsync-len = <10>;
  105. hsync-active = <0>;
  106. vsync-active = <0>;
  107. de-active = <1>;
  108. pixelclk-active = <1>;
  109. };
  110. };
  111. ads7846reg: ads7846-reg {
  112. compatible = "regulator-fixed";
  113. regulator-name = "ads7846-reg";
  114. regulator-min-microvolt = <3300000>;
  115. regulator-max-microvolt = <3300000>;
  116. };
  117. backlight {
  118. compatible = "gpio-backlight";
  119. pinctrl-names = "default";
  120. pinctrl-0 = <&backlight_pins>;
  121. gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; /* gpio_145 */
  122. default-on;
  123. };
  124. };
  125. &mcspi1 {
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&mcspi1_pins>;
  128. /* touch controller */
  129. ads7846@0 {
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&ads7846_pins>;
  132. compatible = "ti,ads7846";
  133. vcc-supply = <&ads7846reg>;
  134. reg = <0>; /* CS0 */
  135. spi-max-frequency = <1500000>;
  136. interrupt-parent = <&gpio4>;
  137. interrupts = <18 0>; /* gpio_114 */
  138. pendown-gpio = <&gpio4 18 GPIO_ACTIVE_LOW>;
  139. ti,x-min = /bits/ 16 <0x0>;
  140. ti,x-max = /bits/ 16 <0x0fff>;
  141. ti,y-min = /bits/ 16 <0x0>;
  142. ti,y-max = /bits/ 16 <0x0fff>;
  143. ti,x-plate-ohms = /bits/ 16 <180>;
  144. ti,pressure-max = /bits/ 16 <255>;
  145. wakeup-source;
  146. };
  147. };