From 3047d8706eb534356fc02a380a15ed066fedabde Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 13 Aug 2019 13:15:37 +0100 Subject: media: dt-bindings: add bindings for imx219 Add the devicetree binding for the IMX219 camera. Signed-off-by: Russell King --- .../devicetree/bindings/media/i2c/sony,imx219.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx219.txt diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx219.txt b/Documentation/devicetree/bindings/media/i2c/sony,imx219.txt new file mode 100644 index 000000000000..57101e58e8b2 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx219.txt @@ -0,0 +1,53 @@ +* Sony 8 Mega-Pixel CMOS Digital Image Sensor + +The Sony IMX219 is a diagonal 4.60 mm (Type 1/4.0) CMOS active pixel +digital image sensor with an active array size of 3280 x 2464. It is +programmable through an I2C interface. Image data is sent through MIPI +CSI-2, through 2 or 4 lanes at a maximum throughput of 755Mbps/lane +(with 4 lanes) or 912Mbps/lane (2 lanes.) + + +Required Properties: +- compatible: shall be "sony,imx219". +- reg: I2C bus address of the device, shall be <0x10>. +- clocks: single clock for the sensor INCK signal. +- xclr-gpios: a single active-low GPIO for the sensor XCLR signal. + +Optional Properties: +- virtual-channel: CSI-2 virtual channel identifier, shall be between 0 and 3, + defaults to 0. + +The imx219 device node should contain one 'port' child node with an +'endpoint' subnode. For further reading on port node refer to +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Required endpoint properties: +- clock-noncontinuous: the bus always operates in non-continuous mode. +- data-lanes: shall be <1 2> for 2 lane, or <1 2 3 4> for 4 lane. + +Optional endpoint properties: +- bus-type: shall be 4 - MIPI CSI-2 D-PHY. +- clock-lanes: shall be zero. +- lane-polarities: shall be zero (normal polarity) for each lane. + +Example: + + camera@10 { + compatible = "sony,imx219"; + reg = <0x10>; + xclr-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; + clocks = <&imx219_clk>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + imx219_out: endpoint { + clock-lanes = <0>; + clock-noncontinuous; + data-lanes = <1 2>; + remote-endpoint = <&mipi_csi_from_mipi_sensor>; + }; + }; + }; -- cgit