Advertisement
Guest User

Untitled

a guest
Sep 5th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.34 KB | None | 0 0
  1. commit 516b2eecd12b855859c3c11757a2a15e2cc1b90e
  2. Author: Icenowy Zheng <icenowy@aosc.xyz>
  3. Date:   Mon Sep 5 10:09:40 2016 +0800
  4.  
  5.     UGLY: test q8
  6.  
  7. diff --git a/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts b/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts
  8. index b0bc236..10526a1 100644
  9. --- a/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts
  10. +++ b/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts
  11. @@ -47,4 +47,38 @@
  12.  / {
  13.     model = "Q8 A33 Tablet";
  14.     compatible = "allwinner,q8-a33", "allwinner,sun8i-a33";
  15. +
  16. +   panel {
  17. +       compatible = "allwinner,q8-800x480";
  18. +       #address-cells = <1>;
  19. +       #size-cells = <0>;
  20. +
  21. +       port@0 {
  22. +           reg = <0>;
  23. +           #address-cells = <1>;
  24. +           #size-cells = <0>;
  25. +
  26. +           panel_input: endpoint@0 {
  27. +               reg = <0>;
  28. +               remote-endpoint = <&tcon0_out_panel>;
  29. +           };
  30. +       };
  31. +   };
  32. +};
  33. +
  34. +&de {
  35. +   status = "okay";
  36. +};
  37. +
  38. +&tcon0 {
  39. +   pinctrl-names = "default";
  40. +   pinctrl-0 = <&tcon0_rgb666_pins_a>;
  41. +   status = "okay";
  42. +};
  43. +
  44. +&tcon0_out {
  45. +   tcon0_out_panel: endpoint@0 {
  46. +       reg = <0>;
  47. +       remote-endpoint = <&panel_input>;
  48. +   };
  49.  };
  50. diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
  51. index af142e8..0e416bb 100644
  52. --- a/drivers/gpu/drm/panel/panel-simple.c
  53. +++ b/drivers/gpu/drm/panel/panel-simple.c
  54. @@ -1432,6 +1432,29 @@ static const struct panel_desc sinlinx_sina33_lcd_7 = {
  55.     .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
  56.  };
  57.  
  58. +static const struct drm_display_mode allwinner_q8_800480_mode = {
  59. +   .clock = 33000,
  60. +   .hdisplay = 800,
  61. +   .hsync_start = 800 + 87,
  62. +   .hsync_end = 800 + 87 + 167,
  63. +   .htotal = 800 + 87 + 167 + 1,
  64. +   .vdisplay = 480,
  65. +   .vsync_start = 480 + 31,
  66. +   .vsync_end = 480 + 31 + 13,
  67. +   .vtotal = 480 + 31 + 13 + 1,
  68. +   .vrefresh = 60,
  69. +};
  70. +
  71. +static const struct panel_desc allwinner_q8_800480 = {
  72. +   .modes = &allwinner_q8_800480_mode,
  73. +   .num_modes = 1,
  74. +   .size = {
  75. +       .width = 154,
  76. +       .height = 87,
  77. +   },
  78. +   .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
  79. +};
  80. +
  81.  static const struct drm_display_mode starry_kr122ea0sra_mode = {
  82.     .clock = 147000,
  83.     .hdisplay = 1920,
  84. @@ -1541,6 +1564,9 @@ static const struct of_device_id platform_of_match[] = {
  85.         .compatible = "ampire,am800480r3tmqwa1h",
  86.         .data = &ampire_am800480r3tmqwa1h,
  87.     }, {
  88. +       .compatible = "allwinner,q8-800x480",
  89. +       .data = &allwinner_q8_800480,
  90. +   }, {
  91.         .compatible = "auo,b101aw03",
  92.         .data = &auo_b101aw03,
  93.     }, {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement