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

dt-bindings: reset: socfpga: Convert to yaml

Convert the device tree bindings for the Altera SOCFPGA reset manager to
YAML schema to allow participating in DT validation.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Dinh Nguyen <dinguyen@altera.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220407154338.4190674-11-p.zabel@pengutronix.de

+47 -16
+47
Documentation/devicetree/bindings/reset/altr,rst-mgr.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/altr,rst-mgr.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Altera SOCFPGA Reset Manager 8 + 9 + maintainers: 10 + - Dinh Nguyen <dinguyen@altera.com> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - description: Cyclone5/Arria5/Arria10 16 + const: altr,rst-mgr 17 + - description: Stratix10 ARM64 SoC 18 + items: 19 + - const: altr,stratix10-rst-mgr 20 + - const: altr,rst-mgr 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + altr,modrst-offset: 26 + $ref: /schemas/types.yaml#/definitions/uint32 27 + description: Offset of the first modrst register 28 + 29 + '#reset-cells': 30 + const: 1 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - altr,modrst-offset 36 + - '#reset-cells' 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + rstmgr@ffd05000 { 43 + compatible = "altr,rst-mgr"; 44 + reg = <0xffd05000 0x1000>; 45 + altr,modrst-offset = <0x10>; 46 + #reset-cells = <1>; 47 + };
-16
Documentation/devicetree/bindings/reset/socfpga-reset.txt
··· 1 - Altera SOCFPGA Reset Manager 2 - 3 - Required properties: 4 - - compatible : "altr,rst-mgr" for (Cyclone5/Arria5/Arria10) 5 - "altr,stratix10-rst-mgr","altr,rst-mgr" for Stratix10 ARM64 SoC 6 - - reg : Should contain 1 register ranges(address and length) 7 - - altr,modrst-offset : Should contain the offset of the first modrst register. 8 - - #reset-cells: 1 9 - 10 - Example: 11 - rstmgr@ffd05000 { 12 - #reset-cells = <1>; 13 - compatible = "altr,rst-mgr"; 14 - reg = <0xffd05000 0x1000>; 15 - altr,modrst-offset = <0x10>; 16 - };