Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dts 2020-01-28 15:15:39.624376425 +0300
- +++ arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone_55.dts 2020-01-28 15:47:17.686819187 +0300
- @@ -7,6 +7,7 @@
- /dts-v1/;
- #include "sun50i-a64.dtsi"
- +#include "sun50i-a64-cpu-opp.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- @@ -33,40 +34,13 @@
- stdout-path = "serial0:115200n8";
- };
- - i2c-csi {
- + i2c_csi: i2c-csi {
- compatible = "i2c-gpio";
- - sda-gpios = <&pio 4 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN|GPIO_PULL_UP)>; /* PE13 */
- - scl-gpios = <&pio 4 12 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN|GPIO_PULL_UP)>; /* PE12 */
- - i2c-gpio,delay-us = <5>;
- + sda-gpios = <&pio 4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PE13 */
- + scl-gpios = <&pio 4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PE12 */
- + i2c-gpio,delay-us = <3>;
- #address-cells = <1>;
- #size-cells = <0>;
- -
- - /* Rear camera */
- - ov5640: camera@3c {
- - compatible = "ovti,ov5640";
- - reg = <0x3c>;
- - pinctrl-names = "default";
- - pinctrl-0 = <&csi_mclk_pin>;
- - clocks = <&ccu CLK_CSI_MCLK>;
- - clock-names = "xclk";
- -
- - AVDD-supply = <®_dldo3>;
- - DOVDD-supply = <®_aldo1>;
- - DVDD-supply = <®_eldo3>;
- - reset-gpios = <&pio 3 3 GPIO_ACTIVE_LOW>; /* PD3 */
- - powerdown-gpios = <&pio 2 0 GPIO_ACTIVE_HIGH>; /* PC0 */
- -
- - port {
- - ov5640_ep: endpoint {
- - remote-endpoint = <&csi_ep>;
- - bus-width = <8>;
- - hsync-active = <1>; /* Active high */
- - vsync-active = <0>; /* Active low */
- - data-active = <1>; /* Active high */
- - pclk-sample = <1>; /* Rising */
- - };
- - };
- - };
- };
- leds {
- @@ -88,22 +62,13 @@
- };
- };
- - reg_3v3_wifi: regulator-3v3-wifi{
- + reg_3v3_wifi: regulator-3v3-wifi {
- compatible = "regulator-fixed";
- regulator-name = "vcc-wifi";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- };
- - reg_vbat_4g: regulator-vbat-4g{
- - compatible = "regulator-fixed";
- - regulator-name = "vbat-4g";
- - regulator-min-microvolt = <3700000>;
- - regulator-max-microvolt = <3700000>;
- - gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
- - enable-active-high;
- - };
- -
- reg_vcc5v0: regulator-vcc5v0 {
- compatible = "regulator-fixed";
- regulator-name = "vcc5v0";
- @@ -134,7 +99,6 @@
- dailink0_master: simple-audio-card,codec {
- sound-dai = <&ec25_codec>;
- };
- -
- };
- ec25_codec: ec25-codec {
- @@ -163,14 +127,32 @@
- status = "okay";
- };
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- +&cpu1 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- +&cpu2 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- +&cpu3 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- &csi {
- + pinctrl-0 = <&csi_pins>, <&csi_mclk_pin>;
- status = "okay";
- port {
- #address-cells = <1>;
- #size-cells = <0>;
- - csi_ep: endpoint {
- + csi_ov5640_ep: endpoint@0 {
- + reg = <0>;
- remote-endpoint = <&ov5640_ep>;
- bus-width = <8>;
- hsync-active = <1>; /* Active high */
- @@ -178,6 +160,16 @@
- data-active = <1>; /* Active high */
- pclk-sample = <1>; /* Rising */
- };
- +
- + csi_gc2145_ep: endpoint@1 {
- + reg = <1>;
- + remote-endpoint = <&gc2145_ep>;
- + bus-width = <8>;
- + hsync-active = <1>;
- + vsync-active = <1>;
- + data-active = <1>;
- + pclk-sample = <1>;
- + };
- };
- };
- @@ -219,13 +211,63 @@
- status = "okay";
- };
- +&i2c_csi {
- + gc2145: front-camera@3c {
- + compatible = "galaxycore,gc2145";
- + reg = <0x3c>;
- + clocks = <&ccu CLK_CSI_MCLK>;
- + clock-names = "xclk";
- +
- + AVDD-supply = <®_dldo3>;
- + DVDD-supply = <®_aldo1>;
- + IOVDD-supply = <®_eldo3>;
- + reset-gpios = <&pio 4 16 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PE16 */
- + enable-gpios = <&pio 4 17 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PE17 */
- +
- + port {
- + gc2145_ep: endpoint {
- + remote-endpoint = <&csi_gc2145_ep>;
- + bus-width = <8>;
- + hsync-active = <1>;
- + vsync-active = <1>;
- + data-active = <1>;
- + pclk-sample = <1>;
- + };
- + };
- + };
- +
- + ov5640: rear-camera@4c {
- + compatible = "ovti,ov5640";
- + reg = <0x4c>;
- + clocks = <&ccu CLK_CSI_MCLK>;
- + clock-names = "xclk";
- +
- + AVDD-supply = <®_dldo3>;
- + DOVDD-supply = <®_aldo1>; /* shared with AFVCC */
- + DVDD-supply = <®_eldo3>;
- + reset-gpios = <&pio 3 3 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PD3 */
- + powerdown-gpios = <&pio 2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PC0 */
- +
- + port {
- + ov5640_ep: endpoint {
- + remote-endpoint = <&csi_ov5640_ep>;
- + bus-width = <8>;
- + hsync-active = <1>; /* Active high */
- + vsync-active = <0>; /* Active low */
- + data-active = <1>; /* Active high */
- + pclk-sample = <1>; /* Rising */
- + };
- + };
- + };
- +};
- +
- &i2c0 {
- pinctrl-names = "default";
- pinctrl-0 = <&i2c0_pins>;
- status = "okay";
- touchscreen@5d {
- - compatible = "goodix,gt917s";
- + compatible = "goodix,gt917s", "goodix,gt911";
- reg = <0x5d>;
- interrupt-parent = <&pio>;
- interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */
- @@ -344,7 +386,7 @@
- };
- &pio {
- - vcc-pe-supply = <®_aldo1>;
- + //vcc-pe-supply = <®_aldo1>;
- vcc-pg-supply = <®_dldo4>;
- i2s0_pins: i2s0-pins {
- @@ -563,6 +605,5 @@
- };
- &usbphy {
- - usb1_vbus-supply = <®_vbat_4g>;
- status = "okay";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement