Advertisement
neochapay

Untitled

Jan 28th, 2020
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 7.45 KB | None | 0 0
  1. --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dts      2020-01-28 15:15:39.624376425 +0300
  2. +++ arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone_55.dts   2020-01-28 15:47:17.686819187 +0300
  3. @@ -7,6 +7,7 @@
  4.  /dts-v1/;
  5.  
  6.  #include "sun50i-a64.dtsi"
  7. +#include "sun50i-a64-cpu-opp.dtsi"
  8.  
  9.  #include <dt-bindings/gpio/gpio.h>
  10.  #include <dt-bindings/input/input.h>
  11. @@ -33,40 +34,13 @@
  12.                 stdout-path = "serial0:115200n8";
  13.         };
  14.  
  15. -       i2c-csi {
  16. +       i2c_csi: i2c-csi {
  17.                 compatible = "i2c-gpio";
  18. -               sda-gpios = <&pio 4 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN|GPIO_PULL_UP)>; /* PE13 */
  19. -               scl-gpios = <&pio 4 12 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN|GPIO_PULL_UP)>; /* PE12 */
  20. -               i2c-gpio,delay-us = <5>;
  21. +               sda-gpios = <&pio 4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PE13 */
  22. +               scl-gpios = <&pio 4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PE12 */
  23. +               i2c-gpio,delay-us = <3>;
  24.                 #address-cells = <1>;
  25.                 #size-cells = <0>;
  26. -
  27. -               /* Rear camera */
  28. -               ov5640: camera@3c {
  29. -                       compatible = "ovti,ov5640";
  30. -                       reg = <0x3c>;
  31. -                       pinctrl-names = "default";
  32. -                       pinctrl-0 = <&csi_mclk_pin>;
  33. -                       clocks = <&ccu CLK_CSI_MCLK>;
  34. -                       clock-names = "xclk";
  35. -
  36. -                       AVDD-supply = <&reg_dldo3>;
  37. -                       DOVDD-supply = <&reg_aldo1>;
  38. -                       DVDD-supply = <&reg_eldo3>;
  39. -                       reset-gpios = <&pio 3 3 GPIO_ACTIVE_LOW>; /* PD3 */
  40. -                       powerdown-gpios = <&pio 2 0 GPIO_ACTIVE_HIGH>; /* PC0 */
  41. -
  42. -                       port {
  43. -                               ov5640_ep: endpoint {
  44. -                                       remote-endpoint = <&csi_ep>;
  45. -                                       bus-width = <8>;
  46. -                                       hsync-active = <1>; /* Active high */
  47. -                                       vsync-active = <0>; /* Active low */
  48. -                                       data-active = <1>;  /* Active high */
  49. -                                       pclk-sample = <1>;  /* Rising */
  50. -                               };
  51. -                       };
  52. -               };
  53.         };
  54.  
  55.         leds {
  56. @@ -88,22 +62,13 @@
  57.                 };
  58.         };
  59.  
  60. -       reg_3v3_wifi: regulator-3v3-wifi{
  61. +       reg_3v3_wifi: regulator-3v3-wifi {
  62.                 compatible = "regulator-fixed";
  63.                 regulator-name = "vcc-wifi";
  64.                 regulator-min-microvolt = <3300000>;
  65.                 regulator-max-microvolt = <3300000>;
  66.         };
  67.  
  68. -       reg_vbat_4g: regulator-vbat-4g{
  69. -               compatible = "regulator-fixed";
  70. -               regulator-name = "vbat-4g";
  71. -               regulator-min-microvolt = <3700000>;
  72. -               regulator-max-microvolt = <3700000>;
  73. -               gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
  74. -               enable-active-high;
  75. -       };
  76. -
  77.         reg_vcc5v0: regulator-vcc5v0 {
  78.                 compatible = "regulator-fixed";
  79.                 regulator-name = "vcc5v0";
  80. @@ -134,7 +99,6 @@
  81.                 dailink0_master: simple-audio-card,codec {
  82.                         sound-dai = <&ec25_codec>;
  83.                 };
  84. -
  85.         };
  86.  
  87.         ec25_codec: ec25-codec {
  88. @@ -163,14 +127,32 @@
  89.         status = "okay";
  90.  };
  91.  
  92. +&cpu0 {
  93. +       cpu-supply = <&reg_dcdc2>;
  94. +};
  95. +
  96. +&cpu1 {
  97. +       cpu-supply = <&reg_dcdc2>;
  98. +};
  99. +
  100. +&cpu2 {
  101. +       cpu-supply = <&reg_dcdc2>;
  102. +};
  103. +
  104. +&cpu3 {
  105. +       cpu-supply = <&reg_dcdc2>;
  106. +};
  107. +
  108.  &csi {
  109. +       pinctrl-0 = <&csi_pins>, <&csi_mclk_pin>;
  110.         status = "okay";
  111.  
  112.         port {
  113.                 #address-cells = <1>;
  114.                 #size-cells = <0>;
  115.  
  116. -               csi_ep: endpoint {
  117. +               csi_ov5640_ep: endpoint@0 {
  118. +                       reg = <0>;
  119.                         remote-endpoint = <&ov5640_ep>;
  120.                         bus-width = <8>;
  121.                         hsync-active = <1>; /* Active high */
  122. @@ -178,6 +160,16 @@
  123.                         data-active = <1>;  /* Active high */
  124.                         pclk-sample = <1>;  /* Rising */
  125.                 };
  126. +
  127. +               csi_gc2145_ep: endpoint@1 {
  128. +                       reg = <1>;
  129. +                       remote-endpoint = <&gc2145_ep>;
  130. +                       bus-width = <8>;
  131. +                       hsync-active = <1>;
  132. +                       vsync-active = <1>;
  133. +                       data-active = <1>;
  134. +                       pclk-sample = <1>;
  135. +               };
  136.         };
  137.  };
  138.  
  139. @@ -219,13 +211,63 @@
  140.         status = "okay";
  141.  };
  142.  
  143. +&i2c_csi {
  144. +       gc2145: front-camera@3c {
  145. +               compatible = "galaxycore,gc2145";
  146. +               reg = <0x3c>;
  147. +               clocks = <&ccu CLK_CSI_MCLK>;
  148. +               clock-names = "xclk";
  149. +
  150. +               AVDD-supply = <&reg_dldo3>;
  151. +               DVDD-supply = <&reg_aldo1>;
  152. +               IOVDD-supply = <&reg_eldo3>;
  153. +               reset-gpios = <&pio 4 16 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PE16 */
  154. +               enable-gpios = <&pio 4 17 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PE17 */
  155. +
  156. +               port {
  157. +                       gc2145_ep: endpoint {
  158. +                               remote-endpoint = <&csi_gc2145_ep>;
  159. +                               bus-width = <8>;
  160. +                               hsync-active = <1>;
  161. +                               vsync-active = <1>;
  162. +                               data-active = <1>;
  163. +                               pclk-sample = <1>;
  164. +                       };
  165. +               };
  166. +       };
  167. +
  168. +       ov5640: rear-camera@4c {
  169. +               compatible = "ovti,ov5640";
  170. +               reg = <0x4c>;
  171. +               clocks = <&ccu CLK_CSI_MCLK>;
  172. +               clock-names = "xclk";
  173. +
  174. +               AVDD-supply = <&reg_dldo3>;
  175. +               DOVDD-supply = <&reg_aldo1>; /* shared with AFVCC */
  176. +               DVDD-supply = <&reg_eldo3>;
  177. +               reset-gpios = <&pio 3 3 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PD3 */
  178. +               powerdown-gpios = <&pio 2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PC0 */
  179. +
  180. +               port {
  181. +                       ov5640_ep: endpoint {
  182. +                               remote-endpoint = <&csi_ov5640_ep>;
  183. +                               bus-width = <8>;
  184. +                               hsync-active = <1>; /* Active high */
  185. +                               vsync-active = <0>; /* Active low */
  186. +                               data-active = <1>;  /* Active high */
  187. +                               pclk-sample = <1>;  /* Rising */
  188. +                       };
  189. +               };
  190. +       };
  191. +};
  192. +
  193.  &i2c0 {
  194.         pinctrl-names = "default";
  195.         pinctrl-0 = <&i2c0_pins>;
  196.         status = "okay";
  197.  
  198.         touchscreen@5d {
  199. -               compatible = "goodix,gt917s";
  200. +               compatible = "goodix,gt917s", "goodix,gt911";
  201.                 reg = <0x5d>;
  202.                 interrupt-parent = <&pio>;
  203.                 interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */
  204. @@ -344,7 +386,7 @@
  205.  };
  206.  
  207.  &pio {
  208. -       vcc-pe-supply = <&reg_aldo1>;
  209. +       //vcc-pe-supply = <&reg_aldo1>;
  210.         vcc-pg-supply = <&reg_dldo4>;
  211.  
  212.         i2s0_pins: i2s0-pins {
  213. @@ -563,6 +605,5 @@
  214.  };
  215.  
  216.  &usbphy {
  217. -       usb1_vbus-supply = <&reg_vbat_4g>;
  218.         status = "okay";
  219.  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement