blob: 6c72e77b927c0d5917063b87464b5c109694b463 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
8title: Quad GMSL2 to CSI-2 Deserializer with GMSL1 Compatibility
9
10maintainers:
11 - Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
12
13description: |
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
26properties:
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 bus-type:
69 enum:
70 - 1 # MEDIA_BUS_TYPE_CSI2_CPHY
71 - 4 # MEDIA_BUS_TYPE_CSI2_DPHY
72
73 required:
74 - data-lanes
75 - bus-type
76
77 required:
78 - port@4
79
80required:
81 - compatible
82 - reg
83 - ports
84
85additionalProperties: false
86
87examples:
88 - |
89 #include <dt-bindings/gpio/gpio.h>
90 #include <dt-bindings/media/video-interfaces.h>
91
92 i2c@e6508000 {
93 #address-cells = <1>;
94 #size-cells = <0>;
95
96 reg = <0 0xe6508000>;
97
98 gmsl0: gmsl-deserializer@49 {
99 compatible = "maxim,max96712";
100 reg = <0x49>;
101 enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>;
102
103 ports {
104 #address-cells = <1>;
105 #size-cells = <0>;
106
107 port@4 {
108 reg = <4>;
109 max96712_out0: endpoint {
110 bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
111 clock-lanes = <0>;
112 data-lanes = <1 2 3 4>;
113 remote-endpoint = <&csi40_in>;
114 };
115 };
116 };
117 };
118 };