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

dt-bindings: reset: nuvoton,npcm-reset: Convert to yaml

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

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Avi Fishman <avifishman70@gmail.com>
Cc: Tomer Maimon <tmaimon77@gmail.com>
Cc: Tali Perry <tali.perry1@gmail.com>
Cc: Patrick Venture <venture@google.com>
Cc: Nancy Yuen <yuenn@google.com>
Cc: Benjamin Fair <benjaminfair@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220407154338.4190674-6-p.zabel@pengutronix.de

+50 -32
-32
Documentation/devicetree/bindings/reset/nuvoton,npcm-reset.txt
··· 1 - Nuvoton NPCM Reset controller 2 - 3 - Required properties: 4 - - compatible : "nuvoton,npcm750-reset" for NPCM7XX BMC 5 - - reg : specifies physical base address and size of the register. 6 - - #reset-cells: must be set to 2 7 - 8 - Optional property: 9 - - nuvoton,sw-reset-number - Contains the software reset number to restart the SoC. 10 - NPCM7xx contain four software reset that represent numbers 1 to 4. 11 - 12 - If 'nuvoton,sw-reset-number' is not specified software reset is disabled. 13 - 14 - Example: 15 - rstc: rstc@f0801000 { 16 - compatible = "nuvoton,npcm750-reset"; 17 - reg = <0xf0801000 0x70>; 18 - #reset-cells = <2>; 19 - nuvoton,sw-reset-number = <2>; 20 - }; 21 - 22 - Specifying reset lines connected to IP NPCM7XX modules 23 - ====================================================== 24 - example: 25 - 26 - spi0: spi@..... { 27 - ... 28 - resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>; 29 - ... 30 - }; 31 - 32 - The index could be found in <dt-bindings/reset/nuvoton,npcm7xx-reset.h>.
+50
Documentation/devicetree/bindings/reset/nuvoton,npcm750-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/nuvoton,npcm750-reset.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Nuvoton NPCM Reset controller 8 + 9 + maintainers: 10 + - Tomer Maimon <tmaimon77@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: nuvoton,npcm750-reset 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + '#reset-cells': 20 + const: 2 21 + 22 + nuvoton,sw-reset-number: 23 + $ref: /schemas/types.yaml#/definitions/uint32 24 + minimum: 1 25 + maximum: 4 26 + description: | 27 + Contains the software reset number to restart the SoC. 28 + If not specified, software reset is disabled. 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - '#reset-cells' 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/reset/nuvoton,npcm7xx-reset.h> 40 + rstc: rstc@f0801000 { 41 + compatible = "nuvoton,npcm750-reset"; 42 + reg = <0xf0801000 0x70>; 43 + #reset-cells = <2>; 44 + nuvoton,sw-reset-number = <2>; 45 + }; 46 + 47 + // Specifying reset lines connected to IP NPCM7XX modules 48 + spi0: spi { 49 + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>; 50 + };