GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / media / i2c / maxim,max96712.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2021 Renesas Electronics Corp.
3 %YAML 1.2
4 ---
5 $id: http://devicetree.org/schemas/media/i2c/maxim,max96712.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
7
8 title: Quad GMSL2 to CSI-2 Deserializer with GMSL1 Compatibility
9
10 maintainers:
11   - Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
12
13 description: |
14   The MAX96712 deserializer converts GMSL2 or GMSL1 serial inputs into MIPI
15   CSI-2 D-PHY or C-PHY formatted outputs. The device allows each link to
16   simultaneously transmit bidirectional control-channel data while forward
17   video transmissions are in progress. The MAX96712 can accommodate as many as
18   four remotely located sensors using industry-standard coax or STP
19   interconnects.
20
21   Each GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the
22   forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, the
23   MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL1
24   serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mode.
25
26 properties:
27   compatible:
28     const: maxim,max96712
29
30   reg:
31     description: I2C device address
32     maxItems: 1
33
34   enable-gpios: true
35
36   ports:
37     $ref: /schemas/graph.yaml#/properties/ports
38
39     properties:
40       port@0:
41         $ref: /schemas/graph.yaml#/properties/port
42         description: GMSL Input 0
43
44       port@1:
45         $ref: /schemas/graph.yaml#/properties/port
46         description: GMSL Input 1
47
48       port@2:
49         $ref: /schemas/graph.yaml#/properties/port
50         description: GMSL Input 2
51
52       port@3:
53         $ref: /schemas/graph.yaml#/properties/port
54         description: GMSL Input 3
55
56       port@4:
57         $ref: /schemas/graph.yaml#/$defs/port-base
58         unevaluatedProperties: false
59         description: CSI-2 Output
60
61         properties:
62           endpoint:
63             $ref: /schemas/media/video-interfaces.yaml#
64             unevaluatedProperties: false
65
66             properties:
67               data-lanes: true
68
69             required:
70               - data-lanes
71
72     required:
73       - port@4
74
75 required:
76   - compatible
77   - reg
78   - ports
79
80 additionalProperties: false
81
82 examples:
83   - |
84     #include <dt-bindings/gpio/gpio.h>
85
86     i2c@e6508000 {
87             #address-cells = <1>;
88             #size-cells = <0>;
89
90             reg = <0 0xe6508000>;
91
92             gmsl0: gmsl-deserializer@49 {
93                     compatible = "maxim,max96712";
94                     reg = <0x49>;
95                     enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>;
96
97                     ports {
98                             #address-cells = <1>;
99                             #size-cells = <0>;
100
101                             port@4 {
102                                     reg = <4>;
103                                     max96712_out0: endpoint {
104                                             clock-lanes = <0>;
105                                             data-lanes = <1 2 3 4>;
106                                             remote-endpoint = <&csi40_in>;
107                                     };
108                             };
109                     };
110             };
111     };