1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2d5b0e70fSEmmanuel Vadot%YAML 1.2 3d5b0e70fSEmmanuel Vadot--- 4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/reset/nuvoton,npcm750-reset.yaml# 5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6d5b0e70fSEmmanuel Vadot 7d5b0e70fSEmmanuel Vadottitle: Nuvoton NPCM Reset controller 8d5b0e70fSEmmanuel Vadot 9d5b0e70fSEmmanuel Vadotmaintainers: 10d5b0e70fSEmmanuel Vadot - Tomer Maimon <tmaimon77@gmail.com> 11d5b0e70fSEmmanuel Vadot 12d5b0e70fSEmmanuel Vadotproperties: 13d5b0e70fSEmmanuel Vadot compatible: 14*b97ee269SEmmanuel Vadot enum: 15*b97ee269SEmmanuel Vadot - nuvoton,npcm750-reset # Poleg NPCM7XX SoC 16*b97ee269SEmmanuel Vadot - nuvoton,npcm845-reset # Arbel NPCM8XX SoC 17d5b0e70fSEmmanuel Vadot 18d5b0e70fSEmmanuel Vadot reg: 19d5b0e70fSEmmanuel Vadot maxItems: 1 20d5b0e70fSEmmanuel Vadot 21d5b0e70fSEmmanuel Vadot '#reset-cells': 22d5b0e70fSEmmanuel Vadot const: 2 23d5b0e70fSEmmanuel Vadot 24*b97ee269SEmmanuel Vadot nuvoton,sysgcr: 25*b97ee269SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 26*b97ee269SEmmanuel Vadot description: a phandle to access GCR registers. 27*b97ee269SEmmanuel Vadot 28d5b0e70fSEmmanuel Vadot nuvoton,sw-reset-number: 29d5b0e70fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 30d5b0e70fSEmmanuel Vadot minimum: 1 31d5b0e70fSEmmanuel Vadot maximum: 4 32d5b0e70fSEmmanuel Vadot description: | 33d5b0e70fSEmmanuel Vadot Contains the software reset number to restart the SoC. 34d5b0e70fSEmmanuel Vadot If not specified, software reset is disabled. 35d5b0e70fSEmmanuel Vadot 36d5b0e70fSEmmanuel Vadotrequired: 37d5b0e70fSEmmanuel Vadot - compatible 38d5b0e70fSEmmanuel Vadot - reg 39d5b0e70fSEmmanuel Vadot - '#reset-cells' 40*b97ee269SEmmanuel Vadot - nuvoton,sysgcr 41d5b0e70fSEmmanuel Vadot 42d5b0e70fSEmmanuel VadotadditionalProperties: false 43d5b0e70fSEmmanuel Vadot 44d5b0e70fSEmmanuel Vadotexamples: 45d5b0e70fSEmmanuel Vadot - | 46d5b0e70fSEmmanuel Vadot #include <dt-bindings/reset/nuvoton,npcm7xx-reset.h> 47d5b0e70fSEmmanuel Vadot rstc: rstc@f0801000 { 48d5b0e70fSEmmanuel Vadot compatible = "nuvoton,npcm750-reset"; 49d5b0e70fSEmmanuel Vadot reg = <0xf0801000 0x70>; 50d5b0e70fSEmmanuel Vadot #reset-cells = <2>; 51*b97ee269SEmmanuel Vadot nuvoton,sysgcr = <&gcr>; 52d5b0e70fSEmmanuel Vadot nuvoton,sw-reset-number = <2>; 53d5b0e70fSEmmanuel Vadot }; 54d5b0e70fSEmmanuel Vadot 55d5b0e70fSEmmanuel Vadot // Specifying reset lines connected to IP NPCM7XX modules 56d5b0e70fSEmmanuel Vadot spi0: spi { 57d5b0e70fSEmmanuel Vadot resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>; 58d5b0e70fSEmmanuel Vadot }; 59