From 232162e61e4e5d39b9b2feb919182966e49666b1 Mon Sep 17 00:00:00 2001 From: LongChang Ma Date: Fri, 1 Aug 2025 17:28:58 +0800 Subject: [PATCH] arm64: dts: rockchip: add dual sc200ai sensor for rv1126b evb dual cam Signed-off-by: LongChang Ma Change-Id: I2075cb7a4ed4d2ff2c84924b4daa51e469a1bf2d --- .../rockchip/rv1126b-evb-dual-cam-csi0.dtsi | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rv1126b-evb-dual-cam-csi0.dtsi b/arch/arm64/boot/dts/rockchip/rv1126b-evb-dual-cam-csi0.dtsi index 85ae0c78487e..2a552ebc7380 100644 --- a/arch/arm64/boot/dts/rockchip/rv1126b-evb-dual-cam-csi0.dtsi +++ b/arch/arm64/boot/dts/rockchip/rv1126b-evb-dual-cam-csi0.dtsi @@ -34,6 +34,11 @@ remote-endpoint = <&sc635hai_2_out>; data-lanes = <1 2>; }; + csi_dphy1_input4: endpoint@3 { + reg = <3>; + remote-endpoint = <&sc200ai_2_out>; + data-lanes = <1 2>; + }; }; port@1 { reg = <1>; @@ -69,6 +74,11 @@ remote-endpoint = <&sc635hai_1_out>; data-lanes = <1 2>; }; + csi_dphy2_input5: endpoint@3 { + reg = <3>; + remote-endpoint = <&sc200ai_1_out>; + data-lanes = <1 2>; + }; }; port@1 { @@ -88,6 +98,29 @@ status = "okay"; pinctrl-0 = <&i2c3m1_pins>; + sc200ai_1: sc200ai-1@30 { + compatible = "smartsens,sc200ai"; + status = "okay"; + reg = <0x30>; + clocks = <&cru CLK_MIPI1_OUT2IO>; + clock-names = "xvclk"; + reset-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>; + pwdn-gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&cam_clk1_pins>; + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "default"; + rockchip,camera-module-lens-name = "default"; + // rockchip,camera-module-sync-mode = "internal_master"; + port { + sc200ai_1_out: endpoint { + remote-endpoint = <&csi_dphy2_input5>; + data-lanes = <1 2>; + }; + }; + }; + sc450ai_1: sc450ai-1@30 { compatible = "smartsens,sc450ai"; status = "okay"; @@ -134,6 +167,29 @@ }; }; + sc200ai_2: sc200ai-2@32 { + compatible = "smartsens,sc200ai"; + status = "okay"; + reg = <0x32>; + clocks = <&cru CLK_MIPI0_OUT2IO>; + clock-names = "xvclk"; + reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; + pwdn-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&cam_clk0_pins>; + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "default"; + rockchip,camera-module-lens-name = "default"; + // rockchip,camera-module-sync-mode = "external_master"; + port { + sc200ai_2_out: endpoint { + remote-endpoint = <&csi_dphy1_input4>; + data-lanes = <1 2>; + }; + }; + }; + sc450ai_2: sc450ai-2@32 { compatible = "smartsens,sc450ai"; status = "okay";