18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/media/renesas,vsp1.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: Renesas VSP Video Processing Engine
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cidescription:
138c2ecf20Sopenharmony_ci  The VSP is a video processing engine that supports up-/down-scaling, alpha
148c2ecf20Sopenharmony_ci  blending, color space conversion and various other image processing features.
158c2ecf20Sopenharmony_ci  It can be found in the Renesas R-Car Gen2, R-Car Gen3, RZ/G1, and RZ/G2 SoCs.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciproperties:
188c2ecf20Sopenharmony_ci  compatible:
198c2ecf20Sopenharmony_ci    enum:
208c2ecf20Sopenharmony_ci      - renesas,vsp1 # R-Car Gen2 and RZ/G1
218c2ecf20Sopenharmony_ci      - renesas,vsp2 # R-Car Gen3 and RZ/G2
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci  reg:
248c2ecf20Sopenharmony_ci    maxItems: 1
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci  interrupts:
278c2ecf20Sopenharmony_ci    maxItems: 1
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci  clocks:
308c2ecf20Sopenharmony_ci    maxItems: 1
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci  power-domains:
338c2ecf20Sopenharmony_ci    maxItems: 1
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci  resets:
368c2ecf20Sopenharmony_ci    maxItems: 1
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci  renesas,fcp:
398c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/phandle
408c2ecf20Sopenharmony_ci    description:
418c2ecf20Sopenharmony_ci      A phandle referencing the FCP that handles memory accesses for the VSP.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_cirequired:
448c2ecf20Sopenharmony_ci  - compatible
458c2ecf20Sopenharmony_ci  - reg
468c2ecf20Sopenharmony_ci  - interrupts
478c2ecf20Sopenharmony_ci  - clocks
488c2ecf20Sopenharmony_ci  - power-domains
498c2ecf20Sopenharmony_ci  - resets
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciadditionalProperties: false
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ciif:
548c2ecf20Sopenharmony_ci  properties:
558c2ecf20Sopenharmony_ci    compatible:
568c2ecf20Sopenharmony_ci      items:
578c2ecf20Sopenharmony_ci        - const: renesas,vsp1
588c2ecf20Sopenharmony_cithen:
598c2ecf20Sopenharmony_ci  properties:
608c2ecf20Sopenharmony_ci    renesas,fcp: false
618c2ecf20Sopenharmony_cielse:
628c2ecf20Sopenharmony_ci  required:
638c2ecf20Sopenharmony_ci    - renesas,fcp
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciexamples:
668c2ecf20Sopenharmony_ci  # R8A7790 (R-Car H2) VSP1-S
678c2ecf20Sopenharmony_ci  - |
688c2ecf20Sopenharmony_ci    #include <dt-bindings/clock/renesas-cpg-mssr.h>
698c2ecf20Sopenharmony_ci    #include <dt-bindings/interrupt-controller/arm-gic.h>
708c2ecf20Sopenharmony_ci    #include <dt-bindings/power/r8a7790-sysc.h>
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci    vsp@fe928000 {
738c2ecf20Sopenharmony_ci        compatible = "renesas,vsp1";
748c2ecf20Sopenharmony_ci        reg = <0xfe928000 0x8000>;
758c2ecf20Sopenharmony_ci        interrupts = <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>;
768c2ecf20Sopenharmony_ci        clocks = <&cpg CPG_MOD 131>;
778c2ecf20Sopenharmony_ci        power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
788c2ecf20Sopenharmony_ci        resets = <&cpg 131>;
798c2ecf20Sopenharmony_ci    };
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci  # R8A77951 (R-Car H3) VSP2-BC
828c2ecf20Sopenharmony_ci  - |
838c2ecf20Sopenharmony_ci    #include <dt-bindings/clock/renesas-cpg-mssr.h>
848c2ecf20Sopenharmony_ci    #include <dt-bindings/interrupt-controller/arm-gic.h>
858c2ecf20Sopenharmony_ci    #include <dt-bindings/power/r8a7795-sysc.h>
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci    vsp@fe920000 {
888c2ecf20Sopenharmony_ci        compatible = "renesas,vsp2";
898c2ecf20Sopenharmony_ci        reg = <0xfe920000 0x8000>;
908c2ecf20Sopenharmony_ci        interrupts = <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>;
918c2ecf20Sopenharmony_ci        clocks = <&cpg CPG_MOD 624>;
928c2ecf20Sopenharmony_ci        power-domains = <&sysc R8A7795_PD_A3VP>;
938c2ecf20Sopenharmony_ci        resets = <&cpg 624>;
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci        renesas,fcp = <&fcpvb1>;
968c2ecf20Sopenharmony_ci    };
978c2ecf20Sopenharmony_ci...
98