brintos

brintos / linux-shallow public Read only

0
0
Text · 5.0 KiB · 977ab18 Raw
170 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only2# Copyright (C) 2020 Renesas Electronics Corp.3%YAML 1.24---5$id: http://devicetree.org/schemas/media/renesas,csi2.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Renesas R-Car MIPI CSI-2 receiver9 10maintainers:11  - Niklas Söderlund <niklas.soderlund@ragnatech.se>12 13description:14  The R-Car CSI-2 receiver device provides MIPI CSI-2 capabilities for the15  Renesas R-Car and RZ/G2 family of devices. It is used in conjunction with the16  R-Car VIN module, which provides the video capture capabilities.17 18properties:19  compatible:20    items:21      - enum:22          - renesas,r8a774a1-csi2 # RZ/G2M23          - renesas,r8a774b1-csi2 # RZ/G2N24          - renesas,r8a774c0-csi2 # RZ/G2E25          - renesas,r8a774e1-csi2 # RZ/G2H26          - renesas,r8a7795-csi2  # R-Car H327          - renesas,r8a7796-csi2  # R-Car M3-W28          - renesas,r8a77961-csi2 # R-Car M3-W+29          - renesas,r8a77965-csi2 # R-Car M3-N30          - renesas,r8a77970-csi2 # R-Car V3M31          - renesas,r8a77980-csi2 # R-Car V3H32          - renesas,r8a77990-csi2 # R-Car E333          - renesas,r8a779a0-csi2 # R-Car V3U34          - renesas,r8a779g0-csi2 # R-Car V4H35 36  reg:37    maxItems: 138 39  interrupts:40    maxItems: 141 42  clocks:43    maxItems: 144 45  power-domains:46    maxItems: 147 48  resets:49    maxItems: 150 51  ports:52    $ref: /schemas/graph.yaml#/properties/ports53 54    properties:55      port@0:56        $ref: /schemas/graph.yaml#/$defs/port-base57        unevaluatedProperties: false58        description:59          Input port node, single endpoint describing the CSI-2 transmitter.60 61        properties:62          endpoint:63            $ref: video-interfaces.yaml#64            unevaluatedProperties: false65 66            properties:67              clock-lanes:68                maxItems: 169 70              data-lanes:71                minItems: 172                maxItems: 473                items:74                  maximum: 475 76            required:77              - clock-lanes78              - data-lanes79 80      port@1:81        $ref: /schemas/graph.yaml#/properties/port82        description:83          Output port node, multiple endpoints describing all the R-Car VIN84          modules connected the CSI-2 receiver.85 86    required:87      - port@088      - port@189 90required:91  - compatible92  - reg93  - interrupts94  - clocks95  - power-domains96  - resets97  - ports98 99additionalProperties: false100 101examples:102  - |103    #include <dt-bindings/clock/r8a7796-cpg-mssr.h>104    #include <dt-bindings/interrupt-controller/arm-gic.h>105    #include <dt-bindings/power/r8a7796-sysc.h>106 107    csi20: csi2@fea80000 {108            compatible = "renesas,r8a7796-csi2";109            reg = <0xfea80000 0x10000>;110            interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;111            clocks = <&cpg CPG_MOD 714>;112            power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;113            resets = <&cpg 714>;114 115            ports {116                    #address-cells = <1>;117                    #size-cells = <0>;118 119                    port@0 {120                            reg = <0>;121 122                            csi20_in: endpoint {123                                    clock-lanes = <0>;124                                    data-lanes = <1>;125                                    remote-endpoint = <&adv7482_txb>;126                            };127                    };128 129                    port@1 {130                            #address-cells = <1>;131                            #size-cells = <0>;132 133                            reg = <1>;134 135                            csi20vin0: endpoint@0 {136                                    reg = <0>;137                                    remote-endpoint = <&vin0csi20>;138                            };139                            csi20vin1: endpoint@1 {140                                    reg = <1>;141                                    remote-endpoint = <&vin1csi20>;142                            };143                            csi20vin2: endpoint@2 {144                                    reg = <2>;145                                    remote-endpoint = <&vin2csi20>;146                            };147                            csi20vin3: endpoint@3 {148                                    reg = <3>;149                                    remote-endpoint = <&vin3csi20>;150                            };151                            csi20vin4: endpoint@4 {152                                    reg = <4>;153                                    remote-endpoint = <&vin4csi20>;154                            };155                            csi20vin5: endpoint@5 {156                                    reg = <5>;157                                    remote-endpoint = <&vin5csi20>;158                            };159                            csi20vin6: endpoint@6 {160                                    reg = <6>;161                                    remote-endpoint = <&vin6csi20>;162                            };163                            csi20vin7: endpoint@7 {164                                    reg = <7>;165                                    remote-endpoint = <&vin7csi20>;166                            };167                    };168            };169    };170