omap3-devkit8000-lcd-common.dtsi 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Author: Anthoine Bourgeois <[email protected]>
  4. */
  5. #include "omap3-devkit8000-common.dtsi"
  6. / {
  7. aliases {
  8. display0 = &lcd0;
  9. display1 = &dvi0;
  10. display2 = &tv0;
  11. };
  12. lcd0: display {
  13. compatible = "panel-dpi";
  14. label = "lcd";
  15. enable-gpios = <&twl_gpio 18 GPIO_ACTIVE_HIGH>;
  16. port {
  17. lcd_in: endpoint {
  18. remote-endpoint = <&dpi_lcd_out>;
  19. };
  20. };
  21. };
  22. };
  23. &dss {
  24. port {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. dpi_lcd_out: endpoint@1 {
  28. reg = <1>;
  29. remote-endpoint = <&lcd_in>;
  30. data-lines = <24>;
  31. };
  32. };
  33. };
  34. &vio {
  35. regulator-min-microvolt = <1800000>;
  36. regulator-max-microvolt = <1800000>;
  37. };
  38. &mcspi2 {
  39. /* touch controller */
  40. ads7846@0 {
  41. compatible = "ti,ads7846";
  42. vcc-supply = <&vio>;
  43. reg = <0>; /* CS0 */
  44. spi-max-frequency = <1500000>;
  45. interrupt-parent = <&gpio1>;
  46. interrupts = <27 0>; /* gpio_27 */
  47. pendown-gpio = <&gpio1 27 GPIO_ACTIVE_LOW>;
  48. ti,x-min = /bits/ 16 <0x0>;
  49. ti,x-max = /bits/ 16 <0x0fff>;
  50. ti,y-min = /bits/ 16 <0x0>;
  51. ti,y-max = /bits/ 16 <0x0fff>;
  52. ti,x-plate-ohms = /bits/ 16 <180>;
  53. ti,pressure-max = /bits/ 16 <255>;
  54. ti,debounce-max = /bits/ 16 <10>;
  55. ti,debounce-tol = /bits/ 16 <5>;
  56. ti,debounce-rep = /bits/ 16 <1>;
  57. ti,keep-vref-on = <1>;
  58. ti,settle-delay-usec = /bits/ 16 <150>;
  59. wakeup-source;
  60. };
  61. };