omap3-devkit8000-lcd-common.dtsi 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Author: Anthoine Bourgeois <anthoine.bourgois@gmail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #include "omap3-devkit8000-common.dtsi"
  9. / {
  10. aliases {
  11. display0 = &lcd0;
  12. display1 = &dvi0;
  13. display2 = &tv0;
  14. };
  15. lcd0: display {
  16. compatible = "panel-dpi";
  17. label = "lcd";
  18. enable-gpios = <&twl_gpio 18 GPIO_ACTIVE_HIGH>;
  19. port {
  20. lcd_in: endpoint {
  21. remote-endpoint = <&dpi_lcd_out>;
  22. };
  23. };
  24. };
  25. };
  26. &dss {
  27. port {
  28. dpi_lcd_out: endpoint {
  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_HIGH>;
  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. };