From 55e0b705bc8fa4f588c59185689caa051c8c54c3 Mon Sep 17 00:00:00 2001 From: LongChang Ma Date: Mon, 10 Jul 2023 15:15:23 +0800 Subject: [PATCH] ARM: dts: rockchip: support dual sc301iot for rv1106-evb-dual-cam.dtsi Signed-off-by: LongChang Ma Change-Id: Ib53cd7bd6189099b737b6e916c02dbdedff4d5f7 --- arch/arm/boot/dts/rv1106-evb-dual-cam.dtsi | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/rv1106-evb-dual-cam.dtsi b/arch/arm/boot/dts/rv1106-evb-dual-cam.dtsi index 2fbddb1879a8..bd3d8fe80a0b 100644 --- a/arch/arm/boot/dts/rv1106-evb-dual-cam.dtsi +++ b/arch/arm/boot/dts/rv1106-evb-dual-cam.dtsi @@ -7,6 +7,8 @@ * sc4336 0x30 lane2~3(dphy2) * v1.1.0 gc2053 0x37 lane0~1(dphy1) * gc2053 0x3f lane2~3(dphy2) + * v1.2.0 sc301iot 0x30 lane0~1(dphy1) + * sc301iot 0x32 lane2~3(dphy2) */ &csi2_dphy_hw { @@ -36,6 +38,12 @@ remote-endpoint = <&gc2053_out>; data-lanes = <1 2>; }; + + csi_dphy_input4: endpoint@3 { + reg = <3>; + remote-endpoint = <&sc301iot_out>; + data-lanes = <1 2>; + }; }; port@1 { @@ -74,6 +82,12 @@ remote-endpoint = <&gc2053_1_out>; data-lanes = <1 2>; }; + + csi_dphy_input5: endpoint@3 { + reg = <3>; + remote-endpoint = <&sc301iot_1_out>; + data-lanes = <1 2>; + }; }; port@1 { @@ -139,6 +153,28 @@ }; }; + sc301iot: sc301iot@30 { + compatible = "smartsens,sc301iot"; + 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 = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "CMK-OT2349-PC1"; + rockchip,camera-module-lens-name = "65IRC-F20"; + port { + sc301iot_out: endpoint { + remote-endpoint = <&csi_dphy_input4>; + data-lanes = <1 2>; + }; + }; + }; + sc4336: sc4336@30 { compatible = "smartsens,sc4336"; status = "okay"; @@ -182,6 +218,28 @@ }; }; }; + + sc301iot_1: sc301iot_1@32 { + compatible = "smartsens,sc301iot"; + status = "okay"; + reg = <0x32>; + clocks = <&cru MCLK_REF_MIPI1>; + clock-names = "xvclk"; + reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; + pwdn-gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&mipi_refclk_out1>; + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "CMK-OT2349-PC1"; + rockchip,camera-module-lens-name = "65IRC-F20"; + port { + sc301iot_1_out: endpoint { + remote-endpoint = <&csi_dphy_input5>; + data-lanes = <1 2>; + }; + }; + }; }; &mipi0_csi2 {