keystone-k2g-evm-lcd.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for K2G EVM with LCD Display
  4. *
  5. * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
  6. */
  7. #include "keystone-k2g-evm.dts"
  8. #include <dt-bindings/pwm/pwm.h>
  9. / {
  10. lcd0: display {
  11. compatible = "newhaven,nhd-4.3-480272ef-atxl";
  12. label = "lcd";
  13. backlight = <&lcd_bl>;
  14. port {
  15. lcd_in: endpoint {
  16. remote-endpoint = <&dpi_out>;
  17. };
  18. };
  19. };
  20. lcd_bl: backlight {
  21. compatible = "pwm-backlight";
  22. pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
  23. brightness-levels = <0 32 64 96 128 160 192 224 255>;
  24. default-brightness-level = <8>;
  25. };
  26. sound1: sound@1 {
  27. compatible = "simple-audio-card";
  28. simple-audio-card,name = "K2G-EVM-LCD";
  29. simple-audio-card,widgets =
  30. "Headphone", "Headphone Jack",
  31. "Line", "Line In";
  32. simple-audio-card,routing =
  33. "Headphone Jack", "HPLOUT",
  34. "Headphone Jack", "HPROUT",
  35. "LINE1L", "Line In",
  36. "LINE1R", "Line In";
  37. simple-audio-card,format = "i2s";
  38. simple-audio-card,bitclock-master = <&sound1_master>;
  39. simple-audio-card,frame-master = <&sound1_master>;
  40. sound1_master: simple-audio-card,cpu {
  41. sound-dai = <&mcasp2>;
  42. clocks = <&k2g_clks 0x6 1>;
  43. system-clock-id = <MCASP_CLK_HCLK_AUXCLK>;
  44. };
  45. simple-audio-card,codec {
  46. sound-dai = <&tlv320aic3106>;
  47. system-clock-frequency = <12288000>;
  48. };
  49. };
  50. };
  51. &i2c1 {
  52. edt-ft5306@38 {
  53. status = "okay";
  54. compatible = "edt,edt-ft5306", "edt,edt-ft5x06";
  55. reg = <0x38>;
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&edt_ft5306_ts_pins>;
  58. interrupt-parent = <&gpio1>;
  59. interrupts = <42 IRQ_TYPE_EDGE_FALLING>;
  60. touchscreen-size-x = <480>;
  61. touchscreen-size-y = <272>;
  62. };
  63. };
  64. &k2g_pinctrl {
  65. edt_ft5306_ts_pins: edt_ft5306_ts_pins {
  66. pinctrl-single,pins = <
  67. K2G_CORE_IOPAD(0x1364) (BUFFER_CLASS_B | PIN_PULLDOWN | MUX_MODE3) /* pr1_pru1_gpo16.gpio1_42 */
  68. >;
  69. };
  70. };
  71. &dpi_out {
  72. remote-endpoint = <&lcd_in>;
  73. };
  74. &hdmi {
  75. status = "disabled";
  76. };
  77. &sii9022 {
  78. status = "disabled";
  79. };
  80. &sound0 {
  81. status = "disabled";
  82. };