aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/renesas,isp.yaml
blob: d25e020f5e5ec6d4e965ebd80aba8e8e734647ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
# Copyright (C) 2021 Renesas Electronics Corp.
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/renesas,isp.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Renesas R-Car ISP Channel Selector

maintainers:
  - Niklas Söderlund <niklas.soderlund@ragnatech.se>

description:
  The R-Car ISP Channel Selector provides MIPI CSI-2 VC and DT filtering
  capabilities for the Renesas R-Car family of devices. It is used in
  conjunction with the R-Car VIN and CSI-2 modules, which provides the video
  capture capabilities.

properties:
  compatible:
    items:
      - enum:
          - renesas,r8a779a0-isp # V3U
          - renesas,r8a779g0-isp # V4H
          - renesas,r8a779h0-isp # V4M
      - const: renesas,rcar-gen4-isp # Generic R-Car Gen4
  reg:
    minItems: 1
    maxItems: 2

  reg-names:
    minItems: 1
    items:
      - const: cs
      - const: core

  interrupts:
    minItems: 1
    maxItems: 2

  interrupt-names:
    minItems: 1
    items:
      - const: cs
      - const: core

  clocks:
    minItems: 1
    maxItems: 2

  clock-names:
    minItems: 1
    items:
      - const: cs
      - const: core

  power-domains:
    maxItems: 1

  resets:
    minItems: 1
    maxItems: 2

  reset-names:
    minItems: 1
    items:
      - const: cs
      - const: core

  renesas,vspx:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      A phandle to the companion VSPX responsible for the Streaming Bridge
      functionality. The Streaming Bridge is responsible for feeding image
      and configuration data to the ISP when operating in memory-to-memory
      mode.

  ports:
    $ref: /schemas/graph.yaml#/properties/ports

    properties:
      port@0:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Input port node, multiple endpoints describing the connected R-Car
          CSI-2 receivers.

      port@1:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 0.

      port@2:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 1.

      port@3:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 2.

      port@4:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 3.

      port@5:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 4.

      port@6:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 5.

      port@7:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 6.

      port@8:
        $ref: /schemas/graph.yaml#/properties/port
        description:
          Single endpoint describing the R-Car VIN connected to output port 7.

    required:
      - port@0
      - port@1
      - port@2
      - port@3
      - port@4
      - port@5
      - port@6
      - port@7
      - port@8

required:
  - compatible
  - reg
  - reg-names
  - interrupts
  - interrupt-names
  - clocks
  - clock-names
  - power-domains
  - resets
  - reset-names
  - ports

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/r8a779a0-cpg-mssr.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/power/r8a779a0-sysc.h>

    isp1: isp@fed20000 {
            compatible = "renesas,r8a779a0-isp", "renesas,rcar-gen4-isp";
            reg = <0xfed20000 0x10000>, <0xfee00000 0x100000>;
            reg-names = "cs", "core";
            interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
                         <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
            interrupt-names = "cs", "core";
            clocks = <&cpg CPG_MOD 613>, <&cpg CPG_MOD 17>;
            clock-names = "cs", "core";
            power-domains = <&sysc R8A779A0_PD_A3ISP01>;
            resets = <&cpg 613>, <&cpg 17>;
            reset-names = "cs", "core";

            renesas,vspx = <&vspx1>;

            ports {
                    #address-cells = <1>;
                    #size-cells = <0>;

                    port@0 {
                            #address-cells = <1>;
                            #size-cells = <0>;

                            reg = <0>;
                            isp1csi41: endpoint@1 {
                                    reg = <1>;
                                    remote-endpoint = <&csi41isp1>;
                            };
                    };

                    port@1 {
                            reg = <1>;
                            isp1vin08: endpoint {
                                    remote-endpoint = <&vin08isp1>;
                            };
                    };

                    port@2 {
                            reg = <2>;
                            isp1vin09: endpoint {
                                    remote-endpoint = <&vin09isp1>;
                            };
                    };

                    port@3 {
                            reg = <3>;
                            isp1vin10: endpoint {
                                    remote-endpoint = <&vin10isp1>;
                            };
                    };

                    port@4 {
                            reg = <4>;
                            isp1vin11: endpoint {
                                    remote-endpoint = <&vin11isp1>;
                            };
                    };

                    port@5 {
                            reg = <5>;
                            isp1vin12: endpoint {
                                    remote-endpoint = <&vin12isp1>;
                            };
                    };

                    port@6 {
                            reg = <6>;
                            isp1vin13: endpoint {
                                    remote-endpoint = <&vin13isp1>;
                            };
                    };

                    port@7 {
                            reg = <7>;
                            isp1vin14: endpoint {
                                    remote-endpoint = <&vin14isp1>;
                            };
                    };

                    port@8 {
                            reg = <8>;
                            isp1vin15: endpoint {
                                    remote-endpoint = <&vin15isp1>;
                            };
                    };
            };
    };