brintos

brintos / linux-shallow public Read only

0
0
Text · 4.9 KiB · 3ace50e Raw
175 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright (C) 2024 Collabora Ltd.3%YAML 1.24---5$id: http://devicetree.org/schemas/media/i2c/maxim,max96714.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Maxim MAX96714 GMSL2 to CSI-2 Deserializer9 10maintainers:11  - Julien Massot <julien.massot@collabora.com>12 13description:14  The MAX96714 deserializer converts GMSL2 serial inputs into MIPI15  CSI-2 D-PHY formatted output. The device allows the GMSL2 link to16  simultaneously transmit bidirectional control-channel data while forward17  video transmissions are in progress. The MAX96714 can connect to one18  remotely located serializer using industry-standard coax or STP19  interconnects. The device cans operate in pixel or tunnel mode. In pixel mode20  the MAX96714 can select individual video stream, while the tunnel mode forward all21  the MIPI data received by the serializer.22 23  The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the24  forward direction and 187.5Mbps in the reverse direction.25  MAX96714F only supports a fixed rate of 3Gbps in the forward direction.26 27properties:28  compatible:29    oneOf:30      - const: maxim,max96714f31      - items:32          - enum:33              - maxim,max9671434          - const: maxim,max96714f35 36  reg:37    maxItems: 138 39  powerdown-gpios:40    maxItems: 141    description:42      Specifier for the GPIO connected to the PWDNB pin.43 44  ports:45    $ref: /schemas/graph.yaml#/properties/ports46 47    properties:48      port@0:49        $ref: /schemas/graph.yaml#/properties/port50        unevaluatedProperties: false51        description: GMSL Input52        properties:53          endpoint:54            $ref: /schemas/media/video-interfaces.yaml#55            unevaluatedProperties: false56            description:57              Endpoint for GMSL2-Link port.58 59      port@1:60        $ref: /schemas/graph.yaml#/$defs/port-base61        unevaluatedProperties: false62        description: CSI-2 Output port63 64        properties:65          endpoint:66            $ref: /schemas/media/video-interfaces.yaml#67            unevaluatedProperties: false68 69            properties:70              data-lanes:71                minItems: 172                maxItems: 473 74              lane-polarities:75                minItems: 176                maxItems: 577 78              link-frequencies:79                maxItems: 180 81            required:82              - data-lanes83 84    required:85      - port@186 87  i2c-gate:88    $ref: /schemas/i2c/i2c-gate.yaml89    unevaluatedProperties: false90    description:91      The MAX96714 will pass through and forward the I2C requests from the92      incoming I2C bus over the GMSL2 link. Therefore it supports an i2c-gate93      subnode to configure a serializer.94 95  port0-poc-supply:96    description: Regulator providing Power over Coax for the GMSL port97 98required:99  - compatible100  - reg101  - ports102 103additionalProperties: false104 105examples:106  - |107    #include <dt-bindings/gpio/gpio.h>108    #include <dt-bindings/media/video-interfaces.h>109 110    i2c {111        #address-cells = <1>;112        #size-cells = <0>;113 114        deserializer@28 {115            compatible = "maxim,max96714f";116            reg = <0x28>;117            powerdown-gpios = <&main_gpio0 37 GPIO_ACTIVE_LOW>;118 119            ports {120                #address-cells = <1>;121                #size-cells = <0>;122                port@0 {123                    reg = <0>;124                    max96714_gmsl_in: endpoint {125                        remote-endpoint = <&max96917f_gmsl_out>;126                    };127                };128 129                port@1 {130                    reg = <1>;131                    max96714_csi_out: endpoint {132                        data-lanes = <1 2 3 4>;133                        link-frequencies = /bits/ 64 <400000000>;134                        remote-endpoint = <&csi_in>;135                    };136                };137            };138 139            i2c-gate {140                #address-cells = <1>;141                #size-cells = <0>;142 143                serializer@40 {144                    compatible = "maxim,max96717f";145                    reg = <0x40>;146                    gpio-controller;147                    #gpio-cells = <2>;148                    #clock-cells = <0>;149 150                    ports {151                        #address-cells = <1>;152                        #size-cells = <0>;153 154                        port@0 {155                            reg = <0>;156                            max96717f_csi_in: endpoint {157                                data-lanes = <1 2>;158                                lane-polarities = <1 0 1>;159                                remote-endpoint = <&sensor_out>;160                            };161                        };162 163                        port@1 {164                            reg = <1>;165                            max96917f_gmsl_out: endpoint {166                                remote-endpoint = <&max96714_gmsl_in>;167                            };168                        };169                    };170                };171            };172        };173    };174...175