Skip to content

Commit 1e27211

Browse files
Wang PanzhenzhuanZhengShunQian
authored andcommitted
arm64: dts: rockchip: move camera node config to dts for rk3326-863-lp3-v10
Move rkisp1 and gc0312/gc2145, cif and cif_sensor node config to dts level not in dtsi. For rkisp1 and gc0312/gc2145 don't need by rk3326-863-lp3-v10.dts, otherwise it causes 8.0 863 machine camera register failed; And cif with cif_sensor don't need by rk3326-863-lp3-v10-avb.dts, otherwise it causes 9.0 863 machine camera register failed; So need to modify rk3326-863-lp3-v10-avb.dts and rk3326-863-lp3-v10.dts separately for camera node configs Change-Id: Ieac54c39cec1f2eae70e0d41829cc0ea1b6a3eb2 Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
1 parent f05b319 commit 1e27211

3 files changed

Lines changed: 89 additions & 72 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10-avb.dts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,84 @@
2828
};
2929
};
3030
};
31+
32+
&i2c2 {
33+
status = "okay";
34+
35+
gc0312@21 {
36+
status = "okay";
37+
compatible = "galaxycore,gc0312";
38+
reg = <0x21>;
39+
pinctrl-names = "default";
40+
pinctrl-0 = <&cif_clkout_m0>;
41+
42+
clocks = <&cru SCLK_CIF_OUT>;
43+
clock-names = "xvclk";
44+
45+
avdd-supply = <&vcc2v8_dvp>;
46+
dovdd-supply = <&vcc1v8_dvp>;
47+
dvdd-supply = <&vcc1v8_dvp>;
48+
49+
pwdn-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
50+
51+
port {
52+
gc0312_out: endpoint {
53+
remote-endpoint = <&dvp_in_fcam>;
54+
};
55+
};
56+
};
57+
58+
gc2145@3c {
59+
status = "okay";
60+
compatible = "galaxycore,gc2145";
61+
reg = <0x3c>;
62+
pinctrl-names = "default";
63+
pinctrl-0 = <&cif_clkout_m0>;
64+
65+
clocks = <&cru SCLK_CIF_OUT>;
66+
clock-names = "xvclk";
67+
68+
avdd-supply = <&vcc2v8_dvp>;
69+
dovdd-supply = <&vcc1v8_dvp>;
70+
dvdd-supply = <&vcc1v8_dvp>;
71+
72+
pwdn-gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
73+
74+
port {
75+
gc2145_out: endpoint {
76+
remote-endpoint = <&dvp_in_bcam>;
77+
};
78+
};
79+
};
80+
};
81+
82+
&isp_mmu {
83+
status = "okay";
84+
};
85+
86+
&rkisp1 {
87+
status = "okay";
88+
pinctrl-names = "default";
89+
pinctrl-0 = <&cif_clkout_m0 &dvp_d0d1_m0 &dvp_d2d9_m0 &dvp_d10d11_m0>;
90+
91+
ports {
92+
#address-cells = <1>;
93+
#size-cells = <0>;
94+
95+
port@0 {
96+
reg = <0>;
97+
#address-cells = <1>;
98+
#size-cells = <0>;
99+
100+
dvp_in_fcam: endpoint@0 {
101+
reg = <0>;
102+
remote-endpoint = <&gc0312_out>;
103+
};
104+
105+
dvp_in_bcam: endpoint@1 {
106+
reg = <1>;
107+
remote-endpoint = <&gc2145_out>;
108+
};
109+
};
110+
};
111+
};

arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
compatible = "rockchip,rk3326-863-lp3-v10", "rockchip,rk3326";
1313
};
1414

15+
&cif {
16+
status = "okay";
17+
};
18+
19+
&cif_sensor {
20+
status = "okay";
21+
};
22+
1523
&firmware_android {
1624
compatible = "android,firmware";
1725
fstab {

arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10.dtsi

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -156,78 +156,6 @@
156156
};
157157
};
158158

159-
&i2c2 {
160-
status = "okay";
161-
162-
gc0312@21 {
163-
status = "okay";
164-
compatible = "galaxycore,gc0312";
165-
reg = <0x21>;
166-
pinctrl-names = "default";
167-
pinctrl-0 = <&cif_clkout_m0>;
168-
169-
clocks = <&cru SCLK_CIF_OUT>;
170-
clock-names = "xvclk";
171-
172-
avdd-supply = <&vcc2v8_dvp>;
173-
dovdd-supply = <&vcc1v8_dvp>;
174-
dvdd-supply = <&vcc1v8_dvp>;
175-
176-
pwdn-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
177-
178-
port {
179-
gc0312_out: endpoint {
180-
remote-endpoint = <&dvp_in_fcam>;
181-
};
182-
};
183-
};
184-
185-
gc2145@3c {
186-
status = "okay";
187-
compatible = "galaxycore,gc2145";
188-
reg = <0x3c>;
189-
pinctrl-names = "default";
190-
pinctrl-0 = <&cif_clkout_m0>;
191-
192-
clocks = <&cru SCLK_CIF_OUT>;
193-
clock-names = "xvclk";
194-
195-
avdd-supply = <&vcc2v8_dvp>;
196-
dovdd-supply = <&vcc1v8_dvp>;
197-
dvdd-supply = <&vcc1v8_dvp>;
198-
199-
pwdn-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
200-
201-
port {
202-
gc2145_out: endpoint {
203-
remote-endpoint = <&dvp_in_bcam>;
204-
};
205-
};
206-
};
207-
};
208-
209-
&rkisp1 {
210-
status = "okay";
211-
212-
pinctrl-names = "default";
213-
pinctrl-0 = <&cif_clkout_m0 &dvp_d0d1_m0 &dvp_d2d9_m0 &dvp_d10d11_m0>;
214-
215-
ports {
216-
port@0 {
217-
dvp_in_fcam: endpoint@0 {
218-
remote-endpoint = <&gc0312_out>;
219-
};
220-
221-
dvp_in_bcam: endpoint@1 {
222-
remote-endpoint = <&gc2145_out>;
223-
};
224-
};
225-
};
226-
};
227-
228-
&isp_mmu {
229-
status = "okay";
230-
};
231159

232160
&display_subsystem {
233161
status = "okay";

0 commit comments

Comments
 (0)