0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/media/renesas,jpu.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Renesas JPEG Processing Unit
0008
0009 maintainers:
0010 - Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
0011
0012 description:
0013 The JPEG processing unit (JPU) incorporates the JPEG codec with an encoding
0014 and decoding function conforming to the JPEG baseline process, so that the
0015 JPU can encode image data and decode JPEG data quickly.
0016
0017 properties:
0018 compatible:
0019 items:
0020 - enum:
0021 - renesas,jpu-r8a7790 # R-Car H2
0022 - renesas,jpu-r8a7791 # R-Car M2-W
0023 - renesas,jpu-r8a7792 # R-Car V2H
0024 - renesas,jpu-r8a7793 # R-Car M2-N
0025 - const: renesas,rcar-gen2-jpu # R-Car Gen2
0026
0027 reg:
0028 maxItems: 1
0029
0030 interrupts:
0031 maxItems: 1
0032
0033 clocks:
0034 maxItems: 1
0035
0036 power-domains:
0037 maxItems: 1
0038
0039 resets:
0040 maxItems: 1
0041
0042 required:
0043 - compatible
0044 - reg
0045 - interrupts
0046 - clocks
0047 - power-domains
0048 - resets
0049
0050 additionalProperties: false
0051
0052 examples:
0053 - |
0054 #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
0055 #include <dt-bindings/interrupt-controller/arm-gic.h>
0056 #include <dt-bindings/power/r8a7790-sysc.h>
0057
0058 jpeg-codec@fe980000 {
0059 compatible = "renesas,jpu-r8a7790", "renesas,rcar-gen2-jpu";
0060 reg = <0xfe980000 0x10300>;
0061 interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
0062 clocks = <&cpg CPG_MOD 106>;
0063 power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
0064 resets = <&cpg 106>;
0065 };