-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: dt-bindings: media: renesas,jpu: Convert to json-schema
Convert the Renesas JPEG Processing Unit Device Tree binding documentation to json-schema. Document missing properties. Update the example to match reality. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
- Loading branch information
Geert Uytterhoeven
authored and
Mauro Carvalho Chehab
committed
Nov 30, 2021
1 parent
0abb8f9
commit 4ce875a
Showing
2 changed files
with
65 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/media/renesas,jpu.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Renesas JPEG Processing Unit | ||
|
||
maintainers: | ||
- Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com> | ||
|
||
description: | ||
The JPEG processing unit (JPU) incorporates the JPEG codec with an encoding | ||
and decoding function conforming to the JPEG baseline process, so that the | ||
JPU can encode image data and decode JPEG data quickly. | ||
|
||
properties: | ||
compatible: | ||
items: | ||
- enum: | ||
- renesas,jpu-r8a7790 # R-Car H2 | ||
- renesas,jpu-r8a7791 # R-Car M2-W | ||
- renesas,jpu-r8a7792 # R-Car V2H | ||
- renesas,jpu-r8a7793 # R-Car M2-N | ||
- const: renesas,rcar-gen2-jpu # R-Car Gen2 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
power-domains: | ||
maxItems: 1 | ||
|
||
resets: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- clocks | ||
- power-domains | ||
- resets | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/r8a7790-cpg-mssr.h> | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/power/r8a7790-sysc.h> | ||
jpeg-codec@fe980000 { | ||
compatible = "renesas,jpu-r8a7790", "renesas,rcar-gen2-jpu"; | ||
reg = <0xfe980000 0x10300>; | ||
interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&cpg CPG_MOD 106>; | ||
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; | ||
resets = <&cpg 106>; | ||
}; |