summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-08-13 13:15:37 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-10-12 22:15:25 +0100
commit3047d8706eb534356fc02a380a15ed066fedabde (patch)
treede825f8f51660a17ef84806fb6269f57dfbbe05b
parentbbf5c979011a099af5dc76498918ed7df445635b (diff)
media: dt-bindings: add bindings for imx219
Add the devicetree binding for the IMX219 camera. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--Documentation/devicetree/bindings/media/i2c/sony,imx219.txt53
1 files changed, 53 insertions, 0 deletions
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>;
+ };
+ };
+ };