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