Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
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 items:
29 - enum:
30 - maxim,max96712
31 - maxim,max96724
32
33 reg:
34 description: I2C device address
35 maxItems: 1
36
37 enable-gpios: true
38
39 ports:
40 $ref: /schemas/graph.yaml#/properties/ports
41
42 properties:
43 port@0:
44 $ref: /schemas/graph.yaml#/properties/port
45 description: GMSL Input 0
46
47 port@1:
48 $ref: /schemas/graph.yaml#/properties/port
49 description: GMSL Input 1
50
51 port@2:
52 $ref: /schemas/graph.yaml#/properties/port
53 description: GMSL Input 2
54
55 port@3:
56 $ref: /schemas/graph.yaml#/properties/port
57 description: GMSL Input 3
58
59 port@4:
60 $ref: /schemas/graph.yaml#/$defs/port-base
61 unevaluatedProperties: false
62 description: CSI-2 Output
63
64 properties:
65 endpoint:
66 $ref: /schemas/media/video-interfaces.yaml#
67 unevaluatedProperties: false
68
69 properties:
70 data-lanes: true
71 bus-type:
72 enum:
73 - 1 # MEDIA_BUS_TYPE_CSI2_CPHY
74 - 4 # MEDIA_BUS_TYPE_CSI2_DPHY
75
76 required:
77 - data-lanes
78 - bus-type
79
80 required:
81 - port@4
82
83required:
84 - compatible
85 - reg
86 - ports
87
88additionalProperties: false
89
90examples:
91 - |
92 #include <dt-bindings/gpio/gpio.h>
93 #include <dt-bindings/media/video-interfaces.h>
94
95 i2c@e6508000 {
96 #address-cells = <1>;
97 #size-cells = <0>;
98
99 reg = <0 0xe6508000>;
100
101 gmsl0: gmsl-deserializer@49 {
102 compatible = "maxim,max96712";
103 reg = <0x49>;
104 enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>;
105
106 ports {
107 #address-cells = <1>;
108 #size-cells = <0>;
109
110 port@4 {
111 reg = <4>;
112 max96712_out0: endpoint {
113 bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
114 clock-lanes = <0>;
115 data-lanes = <1 2 3 4>;
116 remote-endpoint = <&csi40_in>;
117 };
118 };
119 };
120 };
121 };