brintos

brintos / linux-shallow public Read only

0
0
Text · 3.4 KiB · 6c72e77 Raw
119 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright (C) 2021 Renesas Electronics Corp.3%YAML 1.24---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 Compatibility9 10maintainers:11  - Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>12 13description: |14  The MAX96712 deserializer converts GMSL2 or GMSL1 serial inputs into MIPI15  CSI-2 D-PHY or C-PHY formatted outputs. The device allows each link to16  simultaneously transmit bidirectional control-channel data while forward17  video transmissions are in progress. The MAX96712 can accommodate as many as18  four remotely located sensors using industry-standard coax or STP19  interconnects.20 21  Each GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the22  forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, the23  MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL124  serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mode.25 26properties:27  compatible:28    const: maxim,max9671229 30  reg:31    description: I2C device address32    maxItems: 133 34  enable-gpios: true35 36  ports:37    $ref: /schemas/graph.yaml#/properties/ports38 39    properties:40      port@0:41        $ref: /schemas/graph.yaml#/properties/port42        description: GMSL Input 043 44      port@1:45        $ref: /schemas/graph.yaml#/properties/port46        description: GMSL Input 147 48      port@2:49        $ref: /schemas/graph.yaml#/properties/port50        description: GMSL Input 251 52      port@3:53        $ref: /schemas/graph.yaml#/properties/port54        description: GMSL Input 355 56      port@4:57        $ref: /schemas/graph.yaml#/$defs/port-base58        unevaluatedProperties: false59        description: CSI-2 Output60 61        properties:62          endpoint:63            $ref: /schemas/media/video-interfaces.yaml#64            unevaluatedProperties: false65 66            properties:67              data-lanes: true68              bus-type:69                enum:70                  - 1 # MEDIA_BUS_TYPE_CSI2_CPHY71                  - 4 # MEDIA_BUS_TYPE_CSI2_DPHY72 73            required:74              - data-lanes75              - bus-type76 77    required:78      - port@479 80required:81  - compatible82  - reg83  - ports84 85additionalProperties: false86 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    };119