From 07557e4f903e48516d0f294d65d775bbd605bee9 Mon Sep 17 00:00:00 2001 From: Zhenke Fan Date: Wed, 30 Dec 2020 17:00:32 +0800 Subject: [PATCH] dt-bindings: media: i2c: Document add sc200ai Signed-off-by: Zhenke Fan Change-Id: Idc1eb72b4b918079ac886b41aa8d671b94c43598 --- .../devicetree/bindings/media/i2c/sc200ai.txt | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/sc200ai.txt diff --git a/Documentation/devicetree/bindings/media/i2c/sc200ai.txt b/Documentation/devicetree/bindings/media/i2c/sc200ai.txt new file mode 100644 index 000000000000..259c45638cc0 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/sc200ai.txt @@ -0,0 +1,50 @@ +* smartsens,sc200ai MIPI sensor + +Required Properties: +- compatible: should be "smartsens,sc200ai" +- clocks: reference to the 27M xvclk input clock. +- clock-names: should be "xvclk". +- dovdd-supply: Digital I/O voltage supply, 1.8 volts +- avdd-supply: Analog voltage supply, 2.8 volts +- dvdd-supply: Digital core voltage supply, 1.2 volts +- reset-gpios: High active reset gpio + +Attention: +SC4238 device address 0x30(7bit); + +The device node must contain one 'port' child node for its digital output +video port, in accordance with the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Example: + +&i2c1 { + status = "okay"; + sc200ai: sc200ai@30 { + compatible = "smartsens,sc200ai"; + reg = <0x30>; + clocks = <&cru CLK_MIPICSI_OUT>; + clock-names = "xvclk"; + power-domains = <&power RV1126_PD_VI>; + pinctrl-names = "rockchip,camera_default"; + pinctrl-0 = <&mipicsi_clk0>; + avdd-supply = <&vcc_avdd>; + dovdd-supply = <&vcc_dovdd>; + dvdd-supply = <&vcc_dvdd>; + pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "front"; + rockchip,camera-module-name = "C7234A-400"; + rockchip,camera-module-lens-name = "30IRC-2MP-F20"; + /* NO_HDR:0 HDR_X2:5 HDR_X3:6 */ + rockchip,camera-hdr-mode = <5>; + + port { + sc4238_out: endpoint { + remote-endpoint = <&mipi_in_ucam1>; + data-lanes = <1 2>; + }; + }; + }; +};