forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts
....@@ -1,12 +1,11 @@
11 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
-/*
3
- * Copyright (C) 2018 Amarula Solutions B.V.
4
- * Author: Jagan Teki <jagan@amarulasolutions.com>
5
- */
2
+// Copyright (C) 2018 Amarula Solutions B.V.
3
+// Author: Jagan Teki <jagan@amarulasolutions.com>
64
75 /dts-v1/;
86
97 #include "sun50i-a64.dtsi"
8
+#include "sun50i-a64-cpu-opp.dtsi"
109
1110 #include <dt-bindings/gpio/gpio.h>
1211
....@@ -22,6 +21,41 @@
2221 stdout-path = "serial0:115200n8";
2322 };
2423
24
+ i2c {
25
+ compatible = "i2c-gpio";
26
+ sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>;
27
+ scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>;
28
+ i2c-gpio,delay-us = <5>;
29
+ #address-cells = <1>;
30
+ #size-cells = <0>;
31
+
32
+ ov5640: camera@3c {
33
+ compatible = "ovti,ov5640";
34
+ reg = <0x3c>;
35
+ pinctrl-names = "default";
36
+ pinctrl-0 = <&csi_mclk_pin>;
37
+ clocks = <&ccu CLK_CSI_MCLK>;
38
+ clock-names = "xclk";
39
+
40
+ AVDD-supply = <&reg_aldo1>;
41
+ DOVDD-supply = <&reg_dldo3>;
42
+ DVDD-supply = <&reg_eldo3>;
43
+ reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* CSI-RST-R: PE14 */
44
+ powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* CSI-STBY-R: PE15 */
45
+
46
+ port {
47
+ ov5640_ep: endpoint {
48
+ remote-endpoint = <&csi_ep>;
49
+ bus-width = <8>;
50
+ hsync-active = <1>; /* Active high */
51
+ vsync-active = <0>; /* Active low */
52
+ data-active = <1>; /* Active high */
53
+ pclk-sample = <1>; /* Rising */
54
+ };
55
+ };
56
+ };
57
+ };
58
+
2559 wifi_pwrseq: wifi-pwrseq {
2660 compatible = "mmc-pwrseq-simple";
2761 clocks = <&rtc 1>;
....@@ -30,8 +64,68 @@
3064 };
3165 };
3266
67
+&cpu0 {
68
+ cpu-supply = <&reg_dcdc2>;
69
+};
70
+
71
+&cpu1 {
72
+ cpu-supply = <&reg_dcdc2>;
73
+};
74
+
75
+&cpu2 {
76
+ cpu-supply = <&reg_dcdc2>;
77
+};
78
+
79
+&cpu3 {
80
+ cpu-supply = <&reg_dcdc2>;
81
+};
82
+
83
+&csi {
84
+ status = "okay";
85
+
86
+ port {
87
+ csi_ep: endpoint {
88
+ remote-endpoint = <&ov5640_ep>;
89
+ bus-width = <8>;
90
+ hsync-active = <1>; /* Active high */
91
+ vsync-active = <0>; /* Active low */
92
+ data-active = <1>; /* Active high */
93
+ pclk-sample = <1>; /* Rising */
94
+ };
95
+ };
96
+};
97
+
3398 &ehci0 {
3499 status = "okay";
100
+};
101
+
102
+&i2c0 {
103
+ status = "okay";
104
+
105
+ sensor@48 {
106
+ compatible = "st,stlm75";
107
+ reg = <0x48>;
108
+ };
109
+};
110
+
111
+&i2c0_pins {
112
+ bias-pull-up;
113
+};
114
+
115
+&i2c1 {
116
+ status = "okay";
117
+
118
+ touchscreen@5d {
119
+ compatible = "goodix,gt5663";
120
+ reg = <0x5d>;
121
+ AVDD28-supply = <&reg_ldo_io0>; /* VCC-CTP: GPIO0-LDO */
122
+ interrupt-parent = <&pio>;
123
+ interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
124
+ irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
125
+ reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */
126
+ touchscreen-inverted-x;
127
+ touchscreen-inverted-y;
128
+ };
35129 };
36130
37131 &mmc1 {
....@@ -197,13 +291,20 @@
197291 regulator-name = "vdd-cpus";
198292 };
199293
294
+&reg_ldo_io0 {
295
+ regulator-min-microvolt = <2800000>;
296
+ regulator-max-microvolt = <2800000>;
297
+ regulator-name = "vcc-ctp";
298
+ status = "okay";
299
+};
300
+
200301 &reg_rtc_ldo {
201302 regulator-name = "vcc-rtc";
202303 };
203304
204305 &uart0 {
205306 pinctrl-names = "default";
206
- pinctrl-0 = <&uart0_pins_a>;
307
+ pinctrl-0 = <&uart0_pb_pins>;
207308 status = "okay";
208309 };
209310