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

dt-bindings: reset: snps,axs10x-reset: Convert to yaml

Convert the device tree bindings for the AXS10x reset controller to YAML
schema to allow participating in DT validation.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220407154338.4190674-8-p.zabel@pengutronix.de

+48 -33
-33
Documentation/devicetree/bindings/reset/snps,axs10x-reset.txt
··· 1 - Binding for the AXS10x reset controller 2 - 3 - This binding describes the ARC AXS10x boards custom IP-block which allows 4 - to control reset signals of selected peripherals. For example DW GMAC, etc... 5 - This block is controlled via memory-mapped register (AKA CREG) which 6 - represents up-to 32 reset lines. 7 - 8 - As of today only the following lines are used: 9 - - DW GMAC - line 5 10 - 11 - This binding uses the common reset binding[1]. 12 - 13 - [1] Documentation/devicetree/bindings/reset/reset.txt 14 - 15 - Required properties: 16 - - compatible: should be "snps,axs10x-reset". 17 - - reg: should always contain pair address - length: for creg reset 18 - bits register. 19 - - #reset-cells: from common reset binding; Should always be set to 1. 20 - 21 - Example: 22 - reset: reset-controller@11220 { 23 - compatible = "snps,axs10x-reset"; 24 - #reset-cells = <1>; 25 - reg = <0x11220 0x4>; 26 - }; 27 - 28 - Specifying reset lines connected to IP modules: 29 - ethernet@.... { 30 - .... 31 - resets = <&reset 5>; 32 - .... 33 - };
+48
Documentation/devicetree/bindings/reset/snps,axs10x-reset.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/reset/snps,axs10x-reset.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: AXS10x reset controller 8 + 9 + maintainers: 10 + - Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> 11 + 12 + description: | 13 + This binding describes the ARC AXS10x boards custom IP-block which allows 14 + to control reset signals of selected peripherals. For example DW GMAC, etc... 15 + This block is controlled via memory-mapped register (AKA CREG) which 16 + represents up-to 32 reset lines. 17 + As of today only the following lines are used: 18 + - DW GMAC - line 5 19 + 20 + properties: 21 + compatible: 22 + const: snps,axs10x-reset 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + '#reset-cells': 28 + const: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - '#reset-cells' 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + reset: reset-controller@11220 { 40 + compatible = "snps,axs10x-reset"; 41 + #reset-cells = <1>; 42 + reg = <0x11220 0x4>; 43 + }; 44 + 45 + // Specifying reset lines connected to IP modules: 46 + ethernet { 47 + resets = <&reset 5>; 48 + };