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

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.

Cc: Maxime Jourdan <mjourdan@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
[robh: update title]
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Neil Armstrong and committed by
Rob Herring
2ff0b450 a90cc244

+49 -33
-33
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt
··· 1 - Amlogic Canvas 2 - ================================ 3 - 4 - A canvas is a collection of metadata that describes a pixel buffer. 5 - Those metadata include: width, height, phyaddr, wrapping and block mode. 6 - Starting with GXBB the endianness can also be described. 7 - 8 - Many IPs within Amlogic SoCs rely on canvas indexes to read/write pixel data 9 - rather than use the phy addresses directly. For instance, this is the case for 10 - the video decoders and the display. 11 - 12 - Amlogic SoCs have 256 canvas. 13 - 14 - Device Tree Bindings: 15 - --------------------- 16 - 17 - Video Lookup Table 18 - -------------------------- 19 - 20 - Required properties: 21 - - compatible: has to be one of: 22 - - "amlogic,meson8-canvas", "amlogic,canvas" on Meson8 23 - - "amlogic,meson8b-canvas", "amlogic,canvas" on Meson8b 24 - - "amlogic,meson8m2-canvas", "amlogic,canvas" on Meson8m2 25 - - "amlogic,canvas" on GXBB and newer 26 - - reg: Base physical address and size of the canvas registers. 27 - 28 - Example: 29 - 30 - canvas: video-lut@48 { 31 - compatible = "amlogic,canvas"; 32 - reg = <0x0 0x48 0x0 0x14>; 33 - };
+49
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + # Copyright 2019 BayLibre, SAS 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/soc/amlogic/amlogic,canvas.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: Amlogic Canvas Video Lookup Table 9 + 10 + maintainers: 11 + - Neil Armstrong <narmstrong@baylibre.com> 12 + - Maxime Jourdan <mjourdan@baylibre.com> 13 + 14 + description: | 15 + A canvas is a collection of metadata that describes a pixel buffer. 16 + Those metadata include: width, height, phyaddr, wrapping and block mode. 17 + Starting with GXBB the endianness can also be described. 18 + 19 + Many IPs within Amlogic SoCs rely on canvas indexes to read/write pixel data 20 + rather than use the phy addresses directly. For instance, this is the case for 21 + the video decoders and the display. 22 + 23 + Amlogic SoCs have 256 canvas. 24 + 25 + properties: 26 + compatible: 27 + oneOf: 28 + - items: 29 + - enum: 30 + - amlogic,meson8-canvas 31 + - amlogic,meson8b-canvas 32 + - amlogic,meson8m2-canvas 33 + - const: amlogic,canvas 34 + - const: amlogic,canvas # GXBB and newer SoCs 35 + 36 + reg: 37 + maxItems: 1 38 + 39 + required: 40 + - compatible 41 + - reg 42 + 43 + examples: 44 + - | 45 + canvas: video-lut@48 { 46 + compatible = "amlogic,canvas"; 47 + reg = <0x48 0x14>; 48 + }; 49 +