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

dt-bindings: reset: amlogic,meson-axg-audio-arb: Convert to yaml

Convert the device tree bindings for the Amlogic audio memory arbiter
controller to YAML schema to allow participating in DT validation.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220407154338.4190674-1-p.zabel@pengutronix.de

+56 -22
-22
Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt
··· 1 - * Amlogic audio memory arbiter controller 2 - 3 - The Amlogic Audio ARB is a simple device which enables or 4 - disables the access of Audio FIFOs to DDR on AXG based SoC. 5 - 6 - Required properties: 7 - - compatible: 'amlogic,meson-axg-audio-arb' or 8 - 'amlogic,meson-sm1-audio-arb' 9 - - reg: physical base address of the controller and length of memory 10 - mapped region. 11 - - clocks: phandle to the fifo peripheral clock provided by the audio 12 - clock controller. 13 - - #reset-cells: must be 1. 14 - 15 - Example on the A113 SoC: 16 - 17 - arb: reset-controller@280 { 18 - compatible = "amlogic,meson-axg-audio-arb"; 19 - reg = <0x0 0x280 0x0 0x4>; 20 - #reset-cells = <1>; 21 - clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; 22 - };
+56
Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.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/reset/amlogic,meson-axg-audio-arb.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: Amlogic audio memory arbiter controller 9 + 10 + maintainers: 11 + - Jerome Brunet <jbrunet@baylibre.com> 12 + 13 + description: The Amlogic Audio ARB is a simple device which enables or disables 14 + the access of Audio FIFOs to DDR on AXG based SoC. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - amlogic,meson-axg-audio-arb 20 + - amlogic,meson-sm1-audio-arb 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + description: | 28 + phandle to the fifo peripheral clock provided by the audio clock 29 + controller. 30 + 31 + "#reset-cells": 32 + const: 1 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - clocks 38 + - "#reset-cells" 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + // on the A113 SoC: 45 + #include <dt-bindings/clock/axg-audio-clkc.h> 46 + bus { 47 + #address-cells = <2>; 48 + #size-cells = <2>; 49 + 50 + arb: reset-controller@280 { 51 + compatible = "amlogic,meson-axg-audio-arb"; 52 + reg = <0x0 0x280 0x0 0x4>; 53 + #reset-cells = <1>; 54 + clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; 55 + }; 56 + };