Guest User

pine64-feiyang-lcd.dts

a guest
May 16th, 2020
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. /dts-v1/;
  2. /plugin/;
  3.  
  4. / {
  5. compatible = "allwinner,sun50i-a64-mipi-dsi";
  6.  
  7. fragment@0 {
  8. target = <&dsi>;
  9.  
  10. __overlay__ {
  11. status = "okay";
  12. vcc-dsi-supply = <&reg_dldo1>;
  13.  
  14. panel@0 {
  15. compatible = "feiyang,fy07024di26a30d";
  16. reg = <0>;
  17. avdd-supply = <&reg_dc1sw>;
  18. dvdd-supply = <&reg_dldo2>;
  19. reset-gpios = <&pio 3 24 0>; /* LCD-RST: PD24, GPIO_ACTIVE_HIGH: 0 */
  20. backlight = <&backlight>;
  21. };
  22.  
  23. };
  24. };
  25.  
  26. fragment@1 {
  27. target-path = "/";
  28. __overlay__ {
  29. backlight: backlight {
  30. compatible = "pwm-backlight";
  31. pwms = <&r_pwm 0 50000 1>; /* PWM_POLARITY_INVERTED: 1 <<0 */
  32. brightness-levels = <1 2 4 8 16 32 64 128 512>;
  33. default-brightness-level = <8>;
  34. enable-gpios = <&pio 7 10 0>; /* LCD-BL-EN: PH10, GPIO_ACTIVE_HIGH: 0 */
  35. };
  36. };
  37. };
  38.  
  39. fragment@2 {
  40. target = <&r_pwm>;
  41.  
  42. __overlay__ {
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&r_pwm_pin>;
  45. status = "okay";
  46. };
  47. };
  48.  
  49. fragment@3 {
  50. target = <&dphy>;
  51.  
  52. __overlay__ {
  53. status = "okay";
  54. };
  55. };
  56.  
  57. fragment@4 {
  58. target = <&de>;
  59.  
  60. __overlay__ {
  61. status = "okay";
  62. };
  63. };
  64.  
  65. fragment@5 {
  66. target = <&tcon0>;
  67.  
  68. __overlay__ {
  69. status = "okay";
  70. };
  71. };
  72. };
Advertisement
Add Comment
Please, Sign In to add comment