hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/rv1106-evb-dual-cam.dtsi
....@@ -7,6 +7,8 @@
77 * sc4336 0x30 lane2~3(dphy2)
88 * v1.1.0 gc2053 0x37 lane0~1(dphy1)
99 * gc2053 0x3f lane2~3(dphy2)
10
+ * v1.2.0 sc301iot 0x30 lane0~1(dphy1)
11
+ * sc301iot 0x32 lane2~3(dphy2)
1012 */
1113
1214 &csi2_dphy_hw {
....@@ -34,6 +36,12 @@
3436 csi_dphy_input2: endpoint@2 {
3537 reg = <2>;
3638 remote-endpoint = <&gc2053_out>;
39
+ data-lanes = <1 2>;
40
+ };
41
+
42
+ csi_dphy_input4: endpoint@3 {
43
+ reg = <3>;
44
+ remote-endpoint = <&sc301iot_out>;
3745 data-lanes = <1 2>;
3846 };
3947 };
....@@ -72,6 +80,12 @@
7280 csi_dphy_input3: endpoint@2 {
7381 reg = <2>;
7482 remote-endpoint = <&gc2053_1_out>;
83
+ data-lanes = <1 2>;
84
+ };
85
+
86
+ csi_dphy_input5: endpoint@3 {
87
+ reg = <3>;
88
+ remote-endpoint = <&sc301iot_1_out>;
7589 data-lanes = <1 2>;
7690 };
7791 };
....@@ -139,6 +153,28 @@
139153 };
140154 };
141155
156
+ sc301iot: sc301iot@30 {
157
+ compatible = "smartsens,sc301iot";
158
+ status = "okay";
159
+ reg = <0x30>;
160
+ clocks = <&cru MCLK_REF_MIPI0>;
161
+ clock-names = "xvclk";
162
+ reset-gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
163
+ pwdn-gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>;
164
+ pinctrl-names = "default";
165
+ pinctrl-0 = <&mipi_refclk_out0>;
166
+ rockchip,camera-module-index = <0>;
167
+ rockchip,camera-module-facing = "back";
168
+ rockchip,camera-module-name = "CMK-OT2349-PC1";
169
+ rockchip,camera-module-lens-name = "65IRC-F20";
170
+ port {
171
+ sc301iot_out: endpoint {
172
+ remote-endpoint = <&csi_dphy_input4>;
173
+ data-lanes = <1 2>;
174
+ };
175
+ };
176
+ };
177
+
142178 sc4336: sc4336@30 {
143179 compatible = "smartsens,sc4336";
144180 status = "okay";
....@@ -182,6 +218,28 @@
182218 };
183219 };
184220 };
221
+
222
+ sc301iot_1: sc301iot_1@32 {
223
+ compatible = "smartsens,sc301iot";
224
+ status = "okay";
225
+ reg = <0x32>;
226
+ clocks = <&cru MCLK_REF_MIPI1>;
227
+ clock-names = "xvclk";
228
+ reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
229
+ pwdn-gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
230
+ pinctrl-names = "default";
231
+ pinctrl-0 = <&mipi_refclk_out1>;
232
+ rockchip,camera-module-index = <1>;
233
+ rockchip,camera-module-facing = "back";
234
+ rockchip,camera-module-name = "CMK-OT2349-PC1";
235
+ rockchip,camera-module-lens-name = "65IRC-F20";
236
+ port {
237
+ sc301iot_1_out: endpoint {
238
+ remote-endpoint = <&csi_dphy_input5>;
239
+ data-lanes = <1 2>;
240
+ };
241
+ };
242
+ };
185243 };
186244
187245 &mipi0_csi2 {