From 9a090b04da099e2bb2c30262aee19bcbf49bdd6c Mon Sep 17 00:00:00 2001 From: Zefa Chen Date: Tue, 26 Mar 2019 10:16:58 +0800 Subject: [PATCH] dt-bindings: Document add imx258 Change-Id: I486552192ef43213a673db495b9da2f7e444b16c Signed-off-by: Zefa Chen --- .../devicetree/bindings/media/i2c/imx258.txt | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imx258.txt diff --git a/Documentation/devicetree/bindings/media/i2c/imx258.txt b/Documentation/devicetree/bindings/media/i2c/imx258.txt new file mode 100644 index 000000000000..1db76b89feb6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/imx258.txt @@ -0,0 +1,48 @@ +* Sony IMX258 MIPI sensor + +Required Properties: +- compatible: should be "sony,imx258" +- 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 + +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: +//rk3399 evb board +&i2c1 { + status = "okay"; + imx258_eeprom: imx258_eeprom@0x50 { + compatible = "sony,imx258_eeprom"; + status = "okay"; + reg = <0x50>; + }; + imx258: imx258@10 { + eeprom-ctrl = <&imx258_eeprom>; + compatible = "sony,imx258"; + status = "okay"; + reg = <0x10>; + clocks = <&cru SCLK_CIF_OUT>; + clock-names = "xvclk"; + //reset pin control by hardware,used this pin switch to mipi input + //1->mipi input, 0->hdmi in + reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; + pinctrl-names = "rockchip,camera_default"; + pinctrl-0 = <&cif_clkout>; + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "RK-GZ-13M-1-v1"; + rockchip,camera-module-lens-name = "LG500627G"; + port { + ucam_out0: endpoint { + remote-endpoint = <&mipi_in_ucam0>; + data-lanes = <1 2 3 4>; + }; + }; + }; +};