From 4839d7edd03695dec8feff1c733dec44b04a3c3b Mon Sep 17 00:00:00 2001 From: Wang Panzhenzhuan Date: Sun, 28 Apr 2019 17:32:46 +0800 Subject: [PATCH] dt-bindings: media: i2c: Document add bf3925 Change-Id: I94900c7cb3c06702ac09350373d7868a9b0a6f8f Signed-off-by: Wang Panzhenzhuan --- .../devicetree/bindings/media/i2c/bf3925.txt | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/bf3925.txt diff --git a/Documentation/devicetree/bindings/media/i2c/bf3925.txt b/Documentation/devicetree/bindings/media/i2c/bf3925.txt new file mode 100644 index 000000000000..dc9700157bc6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/bf3925.txt @@ -0,0 +1,52 @@ +* BF3925 1/5-Inch 2Mp SOC Camera + +The BYD BF3925 is a 1/5-inch SOC camera, with an active array size of +1616H x 1216V. It is programmable through a SCCB. The BF3925 sensor supports +multiple resolutions output, such as UXGA, SVGA. It also can support +YUV422 or raw RGB output formats. + +Required Properties: +- compatible: Must be "byd,bf3925" +- reg: I2C slave address +- clocks: reference to the xvclk input clock. +- clock-names: should be "xvclk". +- dovdd-supply: Digital I/O voltage supply, 1.7~3.1 volts +- avdd-supply: Analog voltage supply, 2.8 volts +- dvdd-supply: Digital core voltage supply, 1.8 volts +- reset-gpios: Low active reset gpio +- powerdown-gpios: HIGH active powerdown gpio + +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: +&i2c2 { + status = "okay"; + + bf3925: bf3925@6e { + status = "okay"; + compatible = "byd,bf3925"; + reg = <0x6e>; + clocks = <&cru SCLK_CIF_OUT>; + clock-names = "xvclk"; + + avdd-supply = <&vcc2v8_dvp>; + dovdd-supply = <&vcc1v8_dvp>; + dvdd-supply = <&vdd1v8_dvp>; + pinctrl-names = "default"; + pinctrl-0 = <&cif_clkout_m0>; + reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; + pwdn-gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "default"; + rockchip,camera-module-lens-name = "default"; + + port { + bf3925_out: endpoint { + remote-endpoint = <&dvp_in_bcam>; + }; + }; + }; +};