omap3-panel-sharp-ls037v7dw01.dtsi 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Common file for omap dpi panels with QVGA and reset pins
  4. *
  5. * Note that the board specifc DTS file needs to specify
  6. * at minimum the GPIO enable-gpios for display, and
  7. * gpios for gpio-backlight.
  8. */
  9. / {
  10. aliases {
  11. display0 = &lcd0;
  12. };
  13. backlight0: backlight {
  14. compatible = "gpio-backlight";
  15. default-on;
  16. };
  17. /* 3.3V GPIO controlled regulator for LCD_ENVDD */
  18. lcd_3v3: regulator-lcd-3v3 {
  19. compatible = "regulator-fixed";
  20. regulator-name = "lcd_3v3";
  21. regulator-min-microvolt = <3300000>;
  22. regulator-max-microvolt = <3300000>;
  23. startup-delay-us = <70000>;
  24. };
  25. lcd0: display {
  26. compatible = "sharp,ls037v7dw01";
  27. label = "lcd";
  28. power-supply = <&lcd_3v3>;
  29. envdd-supply = <&lcd_3v3>;
  30. port {
  31. lcd_in: endpoint {
  32. remote-endpoint = <&dpi_out>;
  33. };
  34. };
  35. };
  36. };
  37. /* Needed to power the DPI pins */
  38. &vpll2 {
  39. regulator-always-on;
  40. };
  41. &dss {
  42. status = "okay";
  43. port {
  44. dpi_out: endpoint {
  45. remote-endpoint = <&lcd_in>;
  46. data-lines = <18>;
  47. };
  48. };
  49. };
  50. &mcspi1 {
  51. tsc2046@0 {
  52. reg = <0>; /* CS0 */
  53. compatible = "ti,tsc2046";
  54. spi-max-frequency = <1000000>;
  55. vcc-supply = <&lcd_3v3>;
  56. ti,x-min = /bits/ 16 <0>;
  57. ti,x-max = /bits/ 16 <8000>;
  58. ti,y-min = /bits/ 16 <0>;
  59. ti,y-max = /bits/ 16 <4800>;
  60. ti,x-plate-ohms = /bits/ 16 <40>;
  61. ti,pressure-max = /bits/ 16 <255>;
  62. ti,swap-xy;
  63. wakeup-source;
  64. };
  65. };