Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: dt-bindings: media: renesas,imr: Convert to json-schema

Convert the Renesas R-Car Image Renderer Device Tree binding
documentation to json-schema.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.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>

authored by

Geert Uytterhoeven and committed by
Mauro Carvalho Chehab
f2a7fc8c 5ba9c067

+67 -31
-31
Documentation/devicetree/bindings/media/renesas,imr.txt
··· 1 - Renesas R-Car Image Renderer (Distortion Correction Engine) 2 - ----------------------------------------------------------- 3 - 4 - The image renderer, or the distortion correction engine, is a drawing processor 5 - with a simple instruction system capable of referencing video capture data or 6 - data in an external memory as 2D texture data and performing texture mapping 7 - and drawing with respect to any shape that is split into triangular objects. 8 - 9 - Required properties: 10 - 11 - - compatible: "renesas,<soctype>-imr-lx4", "renesas,imr-lx4" as a fallback for 12 - the image renderer light extended 4 (IMR-LX4) found in the R-Car gen3 SoCs, 13 - where the examples with <soctype> are: 14 - - "renesas,r8a7795-imr-lx4" for R-Car H3, 15 - - "renesas,r8a7796-imr-lx4" for R-Car M3-W. 16 - - reg: offset and length of the register block; 17 - - interrupts: single interrupt specifier; 18 - - clocks: single clock phandle/specifier pair; 19 - - power-domains: power domain phandle/specifier pair; 20 - - resets: reset phandle/specifier pair. 21 - 22 - Example: 23 - 24 - imr-lx4@fe860000 { 25 - compatible = "renesas,r8a7795-imr-lx4", "renesas,imr-lx4"; 26 - reg = <0 0xfe860000 0 0x2000>; 27 - interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; 28 - clocks = <&cpg CPG_MOD 823>; 29 - power-domains = <&sysc R8A7795_PD_A3VC>; 30 - resets = <&cpg 823>; 31 - };
+67
Documentation/devicetree/bindings/media/renesas,imr.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/media/renesas,imr.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas R-Car Image Renderer (Distortion Correction Engine) 8 + 9 + maintainers: 10 + - Sergei Shtylyov <sergei.shtylyov@gmail.com> 11 + 12 + description: | 13 + The image renderer, or the distortion correction engine, is a drawing 14 + processor with a simple instruction system capable of referencing video 15 + capture data or data in an external memory as 2D texture data and performing 16 + texture mapping and drawing with respect to any shape that is split into 17 + triangular objects. 18 + 19 + The image renderer light extended 4 (IMR-LX4) is found in R-Car Gen3 SoCs. 20 + 21 + properties: 22 + compatible: 23 + items: 24 + - enum: 25 + - renesas,r8a7795-imr-lx4 # R-Car H3 26 + - renesas,r8a7796-imr-lx4 # R-Car M3-W 27 + - const: renesas,imr-lx4 # R-Car Gen3 28 + 29 + reg: 30 + maxItems: 1 31 + 32 + interrupts: 33 + maxItems: 1 34 + 35 + clocks: 36 + maxItems: 1 37 + 38 + power-domains: 39 + maxItems: 1 40 + 41 + resets: 42 + maxItems: 1 43 + 44 + required: 45 + - compatible 46 + - reg 47 + - interrupts 48 + - clocks 49 + - power-domains 50 + - resets 51 + 52 + additionalProperties: false 53 + 54 + examples: 55 + - | 56 + #include <dt-bindings/clock/r8a7795-cpg-mssr.h> 57 + #include <dt-bindings/interrupt-controller/arm-gic.h> 58 + #include <dt-bindings/power/r8a7795-sysc.h> 59 + 60 + imr-lx4@fe860000 { 61 + compatible = "renesas,r8a7795-imr-lx4", "renesas,imr-lx4"; 62 + reg = <0xfe860000 0x2000>; 63 + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; 64 + clocks = <&cpg CPG_MOD 823>; 65 + power-domains = <&sysc R8A7795_PD_A3VC>; 66 + resets = <&cpg 823>; 67 + };