Skip to content

Commit 8fc3fe3

Browse files
chenxmqqqqRadxaYuntian
authored andcommitted
feat: add ROCK 5C AR0234 RAW8 and RAW10 overlays
Replace the existing fixed-mode overlay because RAW8 and RAW10 require different link frequencies. Signed-off-by: Xinming Chen <chenxinming@radxa.com>
1 parent 486008b commit 8fc3fe3

3 files changed

Lines changed: 160 additions & 3 deletions

File tree

‎arch/arm64/boot/dts/rockchip/overlays/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,8 @@ dtb-$(CONFIG_CPU_RK3588) += \
641641
rock-5a-okdo-5mp-camera.dtbo \
642642
rock-5a-radxa-camera-12m-577.dtbo \
643643
rock-5a-radxa-camera-4k.dtbo \
644-
rock-5a-radxa-camera-2m-ar0234.dtbo \
644+
rock-5a-radxa-camera-2m-ar0234-8bit.dtbo \
645+
rock-5a-radxa-camera-2m-ar0234-10bit.dtbo \
645646
rock-5a-radxa-camera-8m-219.dtbo \
646647
rock-5a-radxa-camera-13m-214.dtbo \
647648
rock-5a-radxa-hdmi-in-4k-rk628.dtbo \
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
#include <dt-bindings/gpio/gpio.h>
5+
#include <dt-bindings/pinctrl/rockchip.h>
6+
7+
/ {
8+
metadata {
9+
title = "Enable Radxa Camera 2M AR0234 with RAW10 format";
10+
compatible = "radxa,rock-5a", "radxa,rock-5c";
11+
category = "camera";
12+
exclusive = "csi2_dphy0", "GPIO1_D2";
13+
description = "Enable Radxa Camera 2M AR0234 with RAW10 format.";
14+
};
15+
};
16+
17+
&i2c3 {
18+
status = "okay";
19+
#address-cells = <1>;
20+
#size-cells = <0>;
21+
22+
camera_ar0234: camera-ar0234@10 {
23+
compatible = "onnn,ar0234cs";
24+
reg = <0x10>;
25+
reset-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
26+
rockchip,camera-module-index = <0>;
27+
rockchip,camera-module-facing = "back";
28+
rockchip,camera-module-name = "default";
29+
rockchip,camera-module-lens-name = "default";
30+
31+
port {
32+
ar0234_out0: endpoint {
33+
remote-endpoint = <&mipidphy0_in_ucam1>;
34+
data-lanes = <1 2 3 4>;
35+
link-frequencies = /bits/ 64 <450000000>;
36+
};
37+
};
38+
};
39+
};
40+
41+
&csi2_dphy0_hw {
42+
status = "okay";
43+
};
44+
45+
&csi2_dphy0 {
46+
status = "okay";
47+
48+
ports {
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
52+
port@0 {
53+
reg = <0>;
54+
#address-cells = <1>;
55+
#size-cells = <0>;
56+
57+
mipidphy0_in_ucam1: endpoint@2 {
58+
reg = <2>;
59+
remote-endpoint = <&ar0234_out0>;
60+
data-lanes = <1 2 3 4>;
61+
};
62+
};
63+
64+
port@1 {
65+
reg = <1>;
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
69+
csidphy0_out: endpoint@0 {
70+
reg = <0>;
71+
remote-endpoint = <&mipi2_csi2_input>;
72+
};
73+
};
74+
};
75+
};
76+
77+
&mipi2_csi2 {
78+
status = "okay";
79+
80+
ports {
81+
#address-cells = <1>;
82+
#size-cells = <0>;
83+
84+
port@0 {
85+
reg = <0>;
86+
#address-cells = <1>;
87+
#size-cells = <0>;
88+
89+
mipi2_csi2_input: endpoint@1 {
90+
reg = <1>;
91+
remote-endpoint = <&csidphy0_out>;
92+
};
93+
};
94+
95+
port@1 {
96+
reg = <1>;
97+
#address-cells = <1>;
98+
#size-cells = <0>;
99+
100+
mipi2_csi2_output: endpoint@0 {
101+
reg = <0>;
102+
remote-endpoint = <&cif_mipi2_in0>;
103+
};
104+
};
105+
};
106+
};
107+
108+
&rkcif {
109+
status = "okay";
110+
};
111+
112+
&rkcif_mipi_lvds2 {
113+
status = "okay";
114+
115+
port {
116+
cif_mipi2_in0: endpoint {
117+
remote-endpoint = <&mipi2_csi2_output>;
118+
};
119+
};
120+
};
121+
122+
&rkcif_mipi_lvds2_sditf {
123+
status = "okay";
124+
125+
port {
126+
mipi_lvds2_sditf: endpoint {
127+
remote-endpoint = <&isp0_vir0>;
128+
};
129+
};
130+
};
131+
132+
&rkcif_mmu {
133+
status = "okay";
134+
};
135+
136+
&isp0_mmu {
137+
status = "okay";
138+
};
139+
140+
&rkisp0 {
141+
status = "okay";
142+
};
143+
144+
&rkisp0_vir0 {
145+
status = "okay";
146+
147+
port {
148+
#address-cells = <1>;
149+
#size-cells = <0>;
150+
151+
isp0_vir0: endpoint@0 {
152+
reg = <0>;
153+
remote-endpoint = <&mipi_lvds2_sditf>;
154+
};
155+
};
156+
};

arch/arm64/boot/dts/rockchip/overlays/rock-5a-radxa-camera-2m-ar0234.dts renamed to arch/arm64/boot/dts/rockchip/overlays/rock-5a-radxa-camera-2m-ar0234-8bit.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
/ {
88
metadata {
9-
title = "Enable Radxa Camera 2M AR0234";
9+
title = "Enable Radxa Camera 2M AR0234 with RAW8 format";
1010
compatible = "radxa,rock-5a", "radxa,rock-5c";
1111
category = "camera";
1212
exclusive = "csi2_dphy0", "GPIO1_D2";
13-
description = "Enable Radxa Camera AR0234.";
13+
description = "Enable Radxa Camera 2M AR0234 with RAW8 format.";
1414
};
1515
};
1616

0 commit comments

Comments
 (0)