ae1a0e256cf14a25cb421296b671f552138fb96b
[openwrt/staging/ynezz.git] /
1 From effbf244f11642594a739755285cd16591831b13 Mon Sep 17 00:00:00 2001
2 From: Markus Proeller <markus.proeller@pieye.org>
3 Date: Thu, 10 Oct 2019 19:12:08 +0200
4 Subject: [PATCH] dt-bindings: Add binding for the Infineon IRS1125
5 sensor
6
7 Adds a binding for the Infineon IRS1125 time-of-flight depth
8 sensor.
9
10 Signed-off-by: Markus Proeller <markus.proeller@pieye.org>
11 ---
12 .../devicetree/bindings/media/i2c/irs1125.txt | 48 +++++++++++++++++++
13 1 file changed, 48 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/media/i2c/irs1125.txt
15
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/media/i2c/irs1125.txt
18 @@ -0,0 +1,48 @@
19 +* Infineon irs1125 time of flight sensor
20 +
21 +The Infineon irs1125 is a time of flight digital image sensor with
22 +an active array size of 352H x 286V. It is programmable through I2C
23 +interface. The I2C address defaults to 0x3D, but can be reconfigured
24 +to address 0x3C or 0x41 via I2C commands. Image data is sent through
25 +MIPI CSI-2, which is configured as either 1 or 2 data lanes.
26 +
27 +Required Properties:
28 +- compatible: value should be "infineon,irs1125" for irs1125 sensor
29 +- reg: I2C bus address of the device
30 +- clocks: reference to the xclk input clock.
31 +- pwdn-gpios: reference to the GPIO connected to the reset pin.
32 + This is an active low signal to the iirs1125.
33 +
34 +The irs1125 device node should contain one 'port' child node with
35 +an 'endpoint' subnode. For further reading on port node refer to
36 +Documentation/devicetree/bindings/media/video-interfaces.txt.
37 +
38 +Endpoint node required properties for CSI-2 connection are:
39 +- remote-endpoint: a phandle to the bus receiver's endpoint node.
40 +- clock-lanes: should be set to <0> (clock lane on hardware lane 0)
41 +- data-lanes: should be set to <1> or <1 2> (one or two lane CSI-2
42 + supported)
43 +
44 +Example:
45 + sensor@10 {
46 + compatible = "infineon,irs1125";
47 + reg = <0x3D>;
48 + #address-cells = <1>;
49 + #size-cells = <0>;
50 + clocks = <&irs1125_clk>;
51 + pwdn-gpios = <&gpio 5 0>;
52 +
53 + irs1125_clk: camera-clk {
54 + compatible = "fixed-clock";
55 + #clock-cells = <0>;
56 + clock-frequency = <26000000>;
57 + };
58 +
59 + port {
60 + sensor_out: endpoint {
61 + remote-endpoint = <&csiss_in>;
62 + clock-lanes = <0>;
63 + data-lanes = <1 2>;
64 + };
65 + };
66 + };