From f83e32d567fd5d2ef123400907fcd5920579682d Mon Sep 17 00:00:00 2001 From: Su Yuefu Date: Thu, 24 Mar 2022 23:00:38 +0800 Subject: [PATCH] ARM: dts: rockchip: rv1106-evb-cam: compatible to sc3336 sc4336 530ai Signed-off-by: Su Yuefu Change-Id: Id08faa19f5244f57cde6487d77f957eb27481a95 --- arch/arm/boot/dts/rv1106-evb-cam.dtsi | 64 ++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/rv1106-evb-cam.dtsi b/arch/arm/boot/dts/rv1106-evb-cam.dtsi index b8bd24d23a65..caff3623749b 100644 --- a/arch/arm/boot/dts/rv1106-evb-cam.dtsi +++ b/arch/arm/boot/dts/rv1106-evb-cam.dtsi @@ -20,8 +20,18 @@ #address-cells = <1>; #size-cells = <0>; - csi_dphy_input: endpoint@1 { + csi_dphy_input0: endpoint@0 { + reg = <0>; + remote-endpoint = <&sc530ai_out>; + data-lanes = <1 2>; + }; + csi_dphy_input1: endpoint@1 { reg = <1>; + remote-endpoint = <&sc3336_out>; + data-lanes = <1 2>; + }; + csi_dphy_input2: endpoint@2 { + reg = <2>; remote-endpoint = <&sc4336_out>; data-lanes = <1 2>; }; @@ -46,8 +56,8 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c4m2_xfer>; - sc4336: sc4336@30 { - compatible = "smartsens,sc4336"; + sc530ai: sc530ai@30 { + compatible = "smartsens,sc530ai"; status = "okay"; reg = <0x30>; clocks = <&cru MCLK_REF_MIPI0>; @@ -58,11 +68,55 @@ pinctrl-0 = <&mipi_refclk_out0>; rockchip,camera-module-index = <0>; rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "CMK-OT2115-PC1"; + rockchip,camera-module-lens-name = "30IRC-F16"; + port { + sc530ai_out: endpoint { + remote-endpoint = <&csi_dphy_input0>; + data-lanes = <1 2>; + }; + }; + }; + + sc3336: sc3336@30 { + compatible = "smartsens,sc3336"; + status = "okay"; + reg = <0x30>; + clocks = <&cru MCLK_REF_MIPI0>; + clock-names = "xvclk"; + reset-gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; + pwdn-gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&mipi_refclk_out0>; + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "CMK-OT2119-PC1"; + rockchip,camera-module-lens-name = "30IRC-F16"; + port { + sc3336_out: endpoint { + remote-endpoint = <&csi_dphy_input1>; + data-lanes = <1 2>; + }; + }; + }; + + sc4336: sc4336@30 { + compatible = "smartsens,sc4336"; + status = "okay"; + reg = <0x30>; + clocks = <&cru MCLK_REF_MIPI0>; + clock-names = "xvclk"; + reset-gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; + pwdn-gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&mipi_refclk_out0>; + rockchip,camera-module-index = <2>; + rockchip,camera-module-facing = "back"; rockchip,camera-module-name = "CMK-OT2117-PC1"; - rockchip,camera-module-lens-name = "YT10123-5MP"; + rockchip,camera-module-lens-name = "30IRC-F16"; port { sc4336_out: endpoint { - remote-endpoint = <&csi_dphy_input>; + remote-endpoint = <&csi_dphy_input2>; data-lanes = <1 2>; }; };