dt-bindings: soc: amlogic: canvas: convert to yaml
Subsystems (2)
PATCH 1/1 dt-bindings: soc: amlogic: canvas: convert to yaml
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic Canvas over to a YAML schemas.
--- .../bindings/soc/amlogic/amlogic,canvas.txt | 33 ------------- .../bindings/soc/amlogic/amlogic,canvas.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt create mode 100644 Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt deleted +0 -33
@@ -1,33 +0,0 @@ -Amlogic Canvas -================================ - -A canvas is a collection of metadata that describes a pixel buffer. -Those metadata include: width, height, phyaddr, wrapping and block mode. -Starting with GXBB the endianness can also be described. - -Many IPs within Amlogic SoCs rely on canvas indexes to read/write pixel data -rather than use the phy addresses directly. For instance, this is the case for -the video decoders and the display. - -Amlogic SoCs have 256 canvas. - -Device Tree Bindings: ---------------------- - -Video Lookup Table --------------------------- - -Required properties: -- compatible: has to be one of: - - "amlogic,meson8-canvas", "amlogic,canvas" on Meson8 - - "amlogic,meson8b-canvas", "amlogic,canvas" on Meson8b - - "amlogic,meson8m2-canvas", "amlogic,canvas" on Meson8m2 - - "amlogic,canvas" on GXBB and newer -- reg: Base physical address and size of the canvas registers. - -Example: - -canvas: video-lut@48 { - compatible = "amlogic,canvas"; - reg = <0x0 0x48 0x0 0x14>; -};
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml new file +49 -0
49 lines not on this page · raw message
Signature · 7 lines
2.22.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 6 lines · Neil Armstrong
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic Canvas over to a YAML schemas.
Cc Maxime Jourdan <[email protected]>Signed-off-by Neil Armstrong <[email protected]>
one nit-pick below, but I leave it up to Maxime to decide whether it's needed:
[...]
Quoted 6 lines
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml new file +0
-0
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml line 8
Quoted 8 lines
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml new file +8
-0@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 BayLibre, SAS +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/amlogic/amlogic,canvas.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Amlogic Canvas
personally I prefer "Amlogic Canvas Video Lookup Table" because that's also what we use (abbreviated as video-lut) for the node name
Martin
Rob Herring
maintainerQuoted 12 lines · Neil Armstrong
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic Canvas over to a YAML schemas.
Cc Maxime Jourdan <[email protected]>Signed-off-by Neil Armstrong <[email protected]>--- .../bindings/soc/amlogic/amlogic,canvas.txt | 33 ------------- .../bindings/soc/amlogic/amlogic,canvas.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt create mode 100644 Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml
Updated 'title' and applied, thanks.
Rob