Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 6.93 KB | None | 0 0
  1. diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  2. index 7e3006f..d5d3771 100644
  3. --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  4. +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  5. @@ -50,6 +50,7 @@
  6.  #include <dt-bindings/input/input.h>
  7.  #include <dt-bindings/interrupt-controller/irq.h>
  8.  #include <dt-bindings/pinctrl/sun4i-a10.h>
  9. +#include <dt-bindings/pwm/pwm.h>
  10.  
  11.  / {
  12.         model = "Olimex A20-Olinuxino Micro";
  13. @@ -67,6 +68,16 @@
  14.                 stdout-path = "serial0:115200n8";
  15.         };
  16.  
  17. +       backlight: backlight {
  18. +               compatible = "pwm-backlight";
  19. +               pinctrl-names = "default";
  20. +               pinctrl-0 = <&bl_enable_pin>;
  21. +               pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
  22. +               brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
  23. +               default-brightness-level = <8>;
  24. +               enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
  25. +       };
  26. +
  27.         leds {
  28.                 compatible = "gpio-leds";
  29.                 pinctrl-names = "default";
  30. @@ -78,6 +89,135 @@
  31.                         default-state = "on";
  32.                 };
  33.         };
  34. +
  35. +       panel: panel {
  36. +               compatible = "olimex,lcd-olinuxino-43-ts";
  37. +               pinctrl-names = "default";
  38. +               pinctrl-0 = <&lcd_enable_pin>;
  39. +               enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
  40. +               #address-cells = <1>;
  41. +               #size-cells = <0>;
  42. +
  43. +               port {
  44. +                       backlight = <&backlight>;
  45. +                       #address-cells = <1>;
  46. +                       #size-cells = <0>;
  47. +
  48. +                       panel_input: endpoint {
  49. +                               remote-endpoint = <&tcon0_out_panel>;
  50. +                       };
  51. +               };
  52. +       };
  53. +
  54. +       tcon0: lcd-controller@1c0c000 {
  55. +               compatible = "allwinner,sun5i-a13-tcon";
  56. +               reg = <0x01c0c000 0x1000>;
  57. +               interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  58. +               resets = <&tcon0_ch0_clk 1>;
  59. +               reset-names = "lcd";
  60. +               clocks = <&ahb_gates 36>,
  61. +                        <&tcon0_ch0_clk>,
  62. +                        <&tcon0_ch1_clk>;
  63. +               clock-names = "ahb",
  64. +                             "tcon-ch0",
  65. +                             "tcon-ch1";
  66. +               clock-output-names = "tcon-pixel-clock";
  67. +
  68. +               ports {
  69. +                       #address-cells = <1>;
  70. +                       #size-cells = <0>;
  71. +
  72. +                       tcon0_in: port@0 {
  73. +                               #address-cells = <1>;
  74. +                               #size-cells = <0>;
  75. +                               reg = <0>;
  76. +
  77. +                               tcon0_in_be0: endpoint@0 {
  78. +                                       reg = <0>;
  79. +                                       remote-endpoint = <&be0_out_tcon0>;
  80. +                               };
  81. +                       };
  82. +
  83. +                       tcon0_out: port@1 {
  84. +                               #address-cells = <1>;
  85. +                               #size-cells = <0>;
  86. +                               reg = <1>;
  87. +
  88. +                               tcon0_out_panel: endpoint@0 {
  89. +                                       reg = <0>;
  90. +                                       remote-endpoint = <&panel_input>;
  91. +                               };
  92. +                       };
  93. +               };
  94. +       };
  95. +
  96. +       fe0: display-frontend@1e00000 {
  97. +               compatible = "allwinner,sun5i-a13-display-frontend";
  98. +               reg = <0x01e00000 0x20000>;
  99. +               interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
  100. +               clocks = <&ahb_gates 46>, <&de_fe0_clk>,
  101. +                        <&dram_gates 25>;
  102. +               clock-names = "ahb", "mod",
  103. +                             "ram";
  104. +               resets = <&de_fe0_clk>;
  105. +
  106. +               ports {
  107. +                       #address-cells = <1>;
  108. +                       #size-cells = <0>;
  109. +
  110. +                       fe0_out: port@1 {
  111. +                               #address-cells = <1>;
  112. +                               #size-cells = <0>;
  113. +                               reg = <1>;
  114. +
  115. +                               fe0_out_be0: endpoint {
  116. +                                       remote-endpoint = <&be0_in_fe0>;
  117. +                               };
  118. +                       };
  119. +               };
  120. +       };
  121. +
  122. +       be0: display-backend@1e60000 {
  123. +               compatible = "allwinner,sun5i-a13-display-backend";
  124. +               reg = <0x01e60000 0x10000>;
  125. +               clocks = <&ahb_gates 44>, <&de_be0_clk>,
  126. +                        <&dram_gates 26>;
  127. +               clock-names = "ahb", "mod",
  128. +                             "ram";
  129. +               resets = <&de_be0_clk>;
  130. +
  131. +               ports {
  132. +                       #address-cells = <1>;
  133. +                       #size-cells = <0>;
  134. +
  135. +                       be0_in: port@0 {
  136. +                               #address-cells = <1>;
  137. +                               #size-cells = <0>;
  138. +                               reg = <0>;
  139. +
  140. +                               be0_in_fe0: endpoint@0 {
  141. +                                       reg = <0>;
  142. +                                       remote-endpoint = <&fe0_out_be0>;
  143. +                               };
  144. +                       };
  145. +
  146. +                       be0_out: port@1 {
  147. +                               #address-cells = <1>;
  148. +                               #size-cells = <0>;
  149. +                               reg = <1>;
  150. +
  151. +                               be0_out_tcon0: endpoint@0 {
  152. +                                       reg = <0>;
  153. +                                       remote-endpoint = <&tcon0_in_be0>;
  154. +                               };
  155. +                       };
  156. +               };
  157. +       };
  158. +
  159. +       display-engine {
  160. +               compatible = "allwinner,sun5i-a13-display-engine";
  161. +               allwinner,pipelines = <&fe0>;
  162. +       };
  163.  };
  164.  
  165.  &ahci {
  166. @@ -226,6 +366,20 @@
  167.  };
  168.  
  169.  &pio {
  170. +       bl_enable_pin: bl_enable_pin@0 {
  171. +               allwinner,pins = "PH7";
  172. +               allwinner,function = "gpio_out";
  173. +               allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  174. +               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  175. +       };
  176. +
  177. +       lcd_enable_pin: lcd_enable_pin@0 {
  178. +               allwinner,pins = "PH8";
  179. +               allwinner,function = "gpio_out";
  180. +               allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  181. +               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  182. +       };
  183. +
  184.         mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
  185.                 allwinner,pins = "PH11";
  186.                 allwinner,function = "gpio_in";
  187. @@ -255,6 +409,12 @@
  188.         };
  189.  };
  190.  
  191. +&pwm {
  192. +       pinctrl-names = "default";
  193. +       pinctrl-0 = <&pwm0_pins_a>;
  194. +       status = "okay";
  195. +};
  196. +
  197.  &reg_ahci_5v {
  198.         status = "okay";
  199.  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement