Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / Documentation / devicetree / bindings / media / i2c / irs1125.txt
1 * Infineon irs1125 time of flight sensor
2
3 The Infineon irs1125 is a time of flight digital image sensor with
4 an active array size of 352H x 286V. It is programmable through I2C
5 interface. The I2C address defaults to 0x3D, but can be reconfigured
6 to address 0x3C or 0x41 via I2C commands. Image data is sent through
7 MIPI CSI-2, which is configured as either 1 or 2 data lanes.
8
9 Required Properties:
10 - compatible: value should be "infineon,irs1125" for irs1125 sensor
11 - reg: I2C bus address of the device
12 - clocks: reference to the xclk input clock.
13 - pwdn-gpios: reference to the GPIO connected to the reset pin.
14               This is an active low signal to the iirs1125.
15
16 The irs1125 device node should contain one 'port' child node with
17 an 'endpoint' subnode. For further reading on port node refer to
18 Documentation/devicetree/bindings/media/video-interfaces.txt.
19
20 Endpoint node required properties for CSI-2 connection are:
21 - remote-endpoint: a phandle to the bus receiver's endpoint node.
22 - clock-lanes: should be set to <0> (clock lane on hardware lane 0)
23 - data-lanes: should be set to <1> or <1 2> (one or two lane CSI-2
24   supported)
25
26 Example:
27         sensor@10 {
28                 compatible = "infineon,irs1125";
29                 reg = <0x3D>;
30                 #address-cells = <1>;
31                 #size-cells = <0>;
32                 clocks = <&irs1125_clk>;
33                 pwdn-gpios = <&gpio 5 0>;
34
35                 irs1125_clk: camera-clk {
36                         compatible = "fixed-clock";
37                         #clock-cells = <0>;
38                         clock-frequency = <26000000>;
39                 };
40
41                 port {
42                         sensor_out: endpoint {
43                                 remote-endpoint = <&csiss_in>;
44                                 clock-lanes = <0>;
45                                 data-lanes = <1 2>;
46                         };
47                 };
48         };