* [PATCH v2] dt-bindings: media: renesas,jpu: Convert to json-schema
@ 2021-07-14 11:17 Geert Uytterhoeven
2021-11-24 9:06 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2021-07-14 11:17 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Rob Herring, Mikhail Ulyanov, linux-media, devicetree,
Geert Uytterhoeven, Laurent Pinchart, Rob Herring
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>
---
v2:
- Add Reviewed-by.
---
.../devicetree/bindings/media/renesas,jpu.txt | 25 -------
.../bindings/media/renesas,jpu.yaml | 65 +++++++++++++++++++
2 files changed, 65 insertions(+), 25 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/media/renesas,jpu.txt
create mode 100644 Documentation/devicetree/bindings/media/renesas,jpu.yaml
diff --git a/Documentation/devicetree/bindings/media/renesas,jpu.txt b/Documentation/devicetree/bindings/media/renesas,jpu.txt
deleted file mode 100644
index d3436e5190f9196a..0000000000000000
--- a/Documentation/devicetree/bindings/media/renesas,jpu.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-* Renesas JPEG Processing Unit
-
-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.
-
-Required properties:
-- compatible: "renesas,jpu-<soctype>", "renesas,rcar-gen2-jpu" as fallback.
- Examples with soctypes are:
- - "renesas,jpu-r8a7790" for R-Car H2
- - "renesas,jpu-r8a7791" for R-Car M2-W
- - "renesas,jpu-r8a7792" for R-Car V2H
- - "renesas,jpu-r8a7793" for R-Car M2-N
-
- - reg: Base address and length of the registers block for the JPU.
- - interrupts: JPU interrupt specifier.
- - clocks: A phandle + clock-specifier pair for the JPU functional clock.
-
-Example: R8A7790 (R-Car H2) JPU node
- jpeg-codec@fe980000 {
- compatible = "renesas,jpu-r8a7790", "renesas,rcar-gen2-jpu";
- reg = <0 0xfe980000 0 0x10300>;
- interrupts = <0 272 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&mstp1_clks R8A7790_CLK_JPU>;
- };
diff --git a/Documentation/devicetree/bindings/media/renesas,jpu.yaml b/Documentation/devicetree/bindings/media/renesas,jpu.yaml
new file mode 100644
index 0000000000000000..2f55968e864fe2f5
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/renesas,jpu.yaml
@@ -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>;
+ };
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: media: renesas,jpu: Convert to json-schema
2021-07-14 11:17 [PATCH v2] dt-bindings: media: renesas,jpu: Convert to json-schema Geert Uytterhoeven
@ 2021-11-24 9:06 ` Geert Uytterhoeven
2021-11-24 9:14 ` Sakari Ailus
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2021-11-24 9:06 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Sakari Ailus
Cc: Rob Herring, Mikhail Ulyanov, Linux Media Mailing List,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Laurent Pinchart, Rob Herring
Hi Mauro, Sakari,
On Wed, Jul 14, 2021 at 1:17 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> 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>
> ---
> v2:
> - Add Reviewed-by.
Why was the status of this patch changed from "Reviewed" to "Not
Applicable" in the linux-media patchwork?
https://patchwork.linuxtv.org/project/linux-media/patch/4f8526dafcd3a88631ef2bc8bd2bb4652368d3cb.1626261172.git.geert+renesas@glider.be/
Who's gonna take it?
Thanks!
> ---
> .../devicetree/bindings/media/renesas,jpu.txt | 25 -------
> .../bindings/media/renesas,jpu.yaml | 65 +++++++++++++++++++
> 2 files changed, 65 insertions(+), 25 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/media/renesas,jpu.txt
> create mode 100644 Documentation/devicetree/bindings/media/renesas,jpu.yaml
>
> diff --git a/Documentation/devicetree/bindings/media/renesas,jpu.txt b/Documentation/devicetree/bindings/media/renesas,jpu.txt
> deleted file mode 100644
> index d3436e5190f9196a..0000000000000000
> --- a/Documentation/devicetree/bindings/media/renesas,jpu.txt
> +++ /dev/null
> @@ -1,25 +0,0 @@
> -* Renesas JPEG Processing Unit
> -
> -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.
> -
> -Required properties:
> -- compatible: "renesas,jpu-<soctype>", "renesas,rcar-gen2-jpu" as fallback.
> - Examples with soctypes are:
> - - "renesas,jpu-r8a7790" for R-Car H2
> - - "renesas,jpu-r8a7791" for R-Car M2-W
> - - "renesas,jpu-r8a7792" for R-Car V2H
> - - "renesas,jpu-r8a7793" for R-Car M2-N
> -
> - - reg: Base address and length of the registers block for the JPU.
> - - interrupts: JPU interrupt specifier.
> - - clocks: A phandle + clock-specifier pair for the JPU functional clock.
> -
> -Example: R8A7790 (R-Car H2) JPU node
> - jpeg-codec@fe980000 {
> - compatible = "renesas,jpu-r8a7790", "renesas,rcar-gen2-jpu";
> - reg = <0 0xfe980000 0 0x10300>;
> - interrupts = <0 272 IRQ_TYPE_LEVEL_HIGH>;
> - clocks = <&mstp1_clks R8A7790_CLK_JPU>;
> - };
> diff --git a/Documentation/devicetree/bindings/media/renesas,jpu.yaml b/Documentation/devicetree/bindings/media/renesas,jpu.yaml
> new file mode 100644
> index 0000000000000000..2f55968e864fe2f5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/renesas,jpu.yaml
> @@ -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>;
> + };
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: media: renesas,jpu: Convert to json-schema
2021-11-24 9:06 ` Geert Uytterhoeven
@ 2021-11-24 9:14 ` Sakari Ailus
2021-11-24 9:21 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Sakari Ailus @ 2021-11-24 9:14 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Mauro Carvalho Chehab, Rob Herring, Mikhail Ulyanov,
Linux Media Mailing List,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Laurent Pinchart, Rob Herring
Hi Geert,
On Wed, Nov 24, 2021 at 10:06:38AM +0100, Geert Uytterhoeven wrote:
> Hi Mauro, Sakari,
>
> On Wed, Jul 14, 2021 at 1:17 PM Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
> > 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>
> > ---
> > v2:
> > - Add Reviewed-by.
>
> Why was the status of this patch changed from "Reviewed" to "Not
> Applicable" in the linux-media patchwork?
> https://patchwork.linuxtv.org/project/linux-media/patch/4f8526dafcd3a88631ef2bc8bd2bb4652368d3cb.1626261172.git.geert+renesas@glider.be/
>
> Who's gonna take it?
It seems to be assigned to me in Patchwork but I don't remember it. Hmm.
I can take it.
--
Kind regards,
Sakari Ailus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: media: renesas,jpu: Convert to json-schema
2021-11-24 9:14 ` Sakari Ailus
@ 2021-11-24 9:21 ` Geert Uytterhoeven
0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2021-11-24 9:21 UTC (permalink / raw)
To: Sakari Ailus
Cc: Mauro Carvalho Chehab, Rob Herring, Mikhail Ulyanov,
Linux Media Mailing List,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Laurent Pinchart, Rob Herring
Hi Sakari,
On Wed, Nov 24, 2021 at 10:14 AM Sakari Ailus <sakari.ailus@iki.fi> wrote:
> On Wed, Nov 24, 2021 at 10:06:38AM +0100, Geert Uytterhoeven wrote:
> > On Wed, Jul 14, 2021 at 1:17 PM Geert Uytterhoeven
> > <geert+renesas@glider.be> wrote:
> > > 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>
> > > ---
> > > v2:
> > > - Add Reviewed-by.
> >
> > Why was the status of this patch changed from "Reviewed" to "Not
> > Applicable" in the linux-media patchwork?
> > https://patchwork.linuxtv.org/project/linux-media/patch/4f8526dafcd3a88631ef2bc8bd2bb4652368d3cb.1626261172.git.geert+renesas@glider.be/
> >
> > Who's gonna take it?
>
> It seems to be assigned to me in Patchwork but I don't remember it. Hmm.
Yes, it was in that state since August 5.
> I can take it.
Thank you, this is one of the few remaining binding conversions for
Renesas SoC components.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-24 9:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14 11:17 [PATCH v2] dt-bindings: media: renesas,jpu: Convert to json-schema Geert Uytterhoeven
2021-11-24 9:06 ` Geert Uytterhoeven
2021-11-24 9:14 ` Sakari Ailus
2021-11-24 9:21 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).