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

dt-bindings: arm: amlogic: amlogic,meson-gx-ao-secure: convert to yaml

Now that we have the DT validation in place, let's convert the device tree
bindings for the Amlogic Always-On Secure Registers over to a YAML schemas.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Neil Armstrong and committed by
Rob Herring
f50ffbc5 018562f3

+52 -28
-28
Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.txt
··· 1 - Amlogic Meson Firmware registers Interface 2 - ------------------------------------------ 3 - 4 - The Meson SoCs have a register bank with status and data shared with the 5 - secure firmware. 6 - 7 - Required properties: 8 - - compatible: For Meson GX SoCs, must be "amlogic,meson-gx-ao-secure", "syscon" 9 - 10 - Properties should indentify components of this register interface : 11 - 12 - Meson GX SoC Information 13 - ------------------------ 14 - A firmware register encodes the SoC type, package and revision information on 15 - the Meson GX SoCs. 16 - If present, the following property should be added : 17 - 18 - Optional properties: 19 - - amlogic,has-chip-id: If present, the interface gives the current SoC version. 20 - 21 - Example 22 - ------- 23 - 24 - ao-secure@140 { 25 - compatible = "amlogic,meson-gx-ao-secure", "syscon"; 26 - reg = <0x0 0x140 0x0 0x140>; 27 - amlogic,has-chip-id; 28 - };
+52
Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.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/arm/amlogic/amlogic,meson-gx-ao-secure.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: Amlogic Meson Firmware registers Interface 9 + 10 + maintainers: 11 + - Neil Armstrong <narmstrong@baylibre.com> 12 + 13 + description: | 14 + The Meson SoCs have a register bank with status and data shared with the 15 + secure firmware. 16 + 17 + # We need a select here so we don't match all nodes with 'syscon' 18 + select: 19 + properties: 20 + compatible: 21 + contains: 22 + const: amlogic,meson-gx-ao-secure 23 + required: 24 + - compatible 25 + 26 + properties: 27 + compatible: 28 + items: 29 + - const: amlogic,meson-gx-ao-secure 30 + - const: syscon 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + amlogic,has-chip-id: 36 + description: | 37 + A firmware register encodes the SoC type, package and revision 38 + information on the Meson GX SoCs. If present, the interface gives 39 + the current SoC version. 40 + type: boolean 41 + 42 + required: 43 + - compatible 44 + - reg 45 + 46 + examples: 47 + - | 48 + ao-secure@140 { 49 + compatible = "amlogic,meson-gx-ao-secure", "syscon"; 50 + reg = <0x140 0x140>; 51 + amlogic,has-chip-id; 52 + };