xref: /freebsd/sys/contrib/device-tree/Bindings/media/renesas,jpu.yaml (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1*e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*e67e8565SEmmanuel Vadot%YAML 1.2
3*e67e8565SEmmanuel Vadot---
4*e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/media/renesas,jpu.yaml#
5*e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e67e8565SEmmanuel Vadot
7*e67e8565SEmmanuel Vadottitle: Renesas JPEG Processing Unit
8*e67e8565SEmmanuel Vadot
9*e67e8565SEmmanuel Vadotmaintainers:
10*e67e8565SEmmanuel Vadot  - Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
11*e67e8565SEmmanuel Vadot
12*e67e8565SEmmanuel Vadotdescription:
13*e67e8565SEmmanuel Vadot  The JPEG processing unit (JPU) incorporates the JPEG codec with an encoding
14*e67e8565SEmmanuel Vadot  and decoding function conforming to the JPEG baseline process, so that the
15*e67e8565SEmmanuel Vadot  JPU can encode image data and decode JPEG data quickly.
16*e67e8565SEmmanuel Vadot
17*e67e8565SEmmanuel Vadotproperties:
18*e67e8565SEmmanuel Vadot  compatible:
19*e67e8565SEmmanuel Vadot    items:
20*e67e8565SEmmanuel Vadot      - enum:
21*e67e8565SEmmanuel Vadot          - renesas,jpu-r8a7790      # R-Car H2
22*e67e8565SEmmanuel Vadot          - renesas,jpu-r8a7791      # R-Car M2-W
23*e67e8565SEmmanuel Vadot          - renesas,jpu-r8a7792      # R-Car V2H
24*e67e8565SEmmanuel Vadot          - renesas,jpu-r8a7793      # R-Car M2-N
25*e67e8565SEmmanuel Vadot      - const: renesas,rcar-gen2-jpu # R-Car Gen2
26*e67e8565SEmmanuel Vadot
27*e67e8565SEmmanuel Vadot  reg:
28*e67e8565SEmmanuel Vadot    maxItems: 1
29*e67e8565SEmmanuel Vadot
30*e67e8565SEmmanuel Vadot  interrupts:
31*e67e8565SEmmanuel Vadot    maxItems: 1
32*e67e8565SEmmanuel Vadot
33*e67e8565SEmmanuel Vadot  clocks:
34*e67e8565SEmmanuel Vadot    maxItems: 1
35*e67e8565SEmmanuel Vadot
36*e67e8565SEmmanuel Vadot  power-domains:
37*e67e8565SEmmanuel Vadot    maxItems: 1
38*e67e8565SEmmanuel Vadot
39*e67e8565SEmmanuel Vadot  resets:
40*e67e8565SEmmanuel Vadot    maxItems: 1
41*e67e8565SEmmanuel Vadot
42*e67e8565SEmmanuel Vadotrequired:
43*e67e8565SEmmanuel Vadot  - compatible
44*e67e8565SEmmanuel Vadot  - reg
45*e67e8565SEmmanuel Vadot  - interrupts
46*e67e8565SEmmanuel Vadot  - clocks
47*e67e8565SEmmanuel Vadot  - power-domains
48*e67e8565SEmmanuel Vadot  - resets
49*e67e8565SEmmanuel Vadot
50*e67e8565SEmmanuel VadotadditionalProperties: false
51*e67e8565SEmmanuel Vadot
52*e67e8565SEmmanuel Vadotexamples:
53*e67e8565SEmmanuel Vadot  - |
54*e67e8565SEmmanuel Vadot    #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
55*e67e8565SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
56*e67e8565SEmmanuel Vadot    #include <dt-bindings/power/r8a7790-sysc.h>
57*e67e8565SEmmanuel Vadot
58*e67e8565SEmmanuel Vadot    jpeg-codec@fe980000 {
59*e67e8565SEmmanuel Vadot            compatible = "renesas,jpu-r8a7790", "renesas,rcar-gen2-jpu";
60*e67e8565SEmmanuel Vadot            reg = <0xfe980000 0x10300>;
61*e67e8565SEmmanuel Vadot            interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
62*e67e8565SEmmanuel Vadot            clocks = <&cpg CPG_MOD 106>;
63*e67e8565SEmmanuel Vadot            power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
64*e67e8565SEmmanuel Vadot            resets = <&cpg 106>;
65*e67e8565SEmmanuel Vadot    };
66