diff --git a/Documentation/devicetree/bindings/media/i2c/os05a20.txt b/Documentation/devicetree/bindings/media/i2c/os05a20.txt new file mode 100644 index 000000000000..c713d74ee090 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/os05a20.txt @@ -0,0 +1,48 @@ +* Ovti os05a20 MIPI sensor + +Required Properties: +- compatible: should be "ovti,os05a20" +- clocks: reference to the 24M 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: Low active reset gpio + +Attention: +os05a20 device address 0x36(7bit) or 0x10(7bit) is decided by SID pin; + +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: +//rv1126 evb13 board +&i2c1 { + status = "okay"; + os05a20: os05a20@36 { + compatible = "ovti,os05a20"; + reg = <0x36>; + 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>; + power-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>; + pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>; + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "front"; + rockchip,camera-module-name = "JSD3425-C1"; + rockchip,camera-module-lens-name = "JSD3425-C1-36IRC-4M-F20"; + ir-cut = <&cam_ircut0>; + port { + ucam_out0: endpoint { + remote-endpoint = <&mipi_in_ucam0>; + data-lanes = <1 2 3 4>; + }; + }; + }; +};