xref: /linux/Documentation/devicetree/bindings/reset/nuvoton,npcm750-reset.yaml (revision 40b88f32ccf6bb0c27b26bfd0e38c6866a632b49)
15c9360eaSPhilipp Zabel# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25c9360eaSPhilipp Zabel%YAML 1.2
35c9360eaSPhilipp Zabel---
45c9360eaSPhilipp Zabel$id: http://devicetree.org/schemas/reset/nuvoton,npcm750-reset.yaml#
55c9360eaSPhilipp Zabel$schema: http://devicetree.org/meta-schemas/core.yaml#
65c9360eaSPhilipp Zabel
75c9360eaSPhilipp Zabeltitle: Nuvoton NPCM Reset controller
85c9360eaSPhilipp Zabel
95c9360eaSPhilipp Zabelmaintainers:
105c9360eaSPhilipp Zabel  - Tomer Maimon <tmaimon77@gmail.com>
115c9360eaSPhilipp Zabel
125c9360eaSPhilipp Zabelproperties:
135c9360eaSPhilipp Zabel  compatible:
145c9360eaSPhilipp Zabel    const: nuvoton,npcm750-reset
155c9360eaSPhilipp Zabel
165c9360eaSPhilipp Zabel  reg:
175c9360eaSPhilipp Zabel    maxItems: 1
185c9360eaSPhilipp Zabel
195c9360eaSPhilipp Zabel  '#reset-cells':
205c9360eaSPhilipp Zabel    const: 2
215c9360eaSPhilipp Zabel
22*40b88f32STomer Maimon  nuvoton,sysgcr:
23*40b88f32STomer Maimon    $ref: /schemas/types.yaml#/definitions/phandle
24*40b88f32STomer Maimon    description: a phandle to access GCR registers.
25*40b88f32STomer Maimon
265c9360eaSPhilipp Zabel  nuvoton,sw-reset-number:
275c9360eaSPhilipp Zabel    $ref: /schemas/types.yaml#/definitions/uint32
285c9360eaSPhilipp Zabel    minimum: 1
295c9360eaSPhilipp Zabel    maximum: 4
305c9360eaSPhilipp Zabel    description: |
315c9360eaSPhilipp Zabel      Contains the software reset number to restart the SoC.
325c9360eaSPhilipp Zabel      If not specified, software reset is disabled.
335c9360eaSPhilipp Zabel
345c9360eaSPhilipp Zabelrequired:
355c9360eaSPhilipp Zabel  - compatible
365c9360eaSPhilipp Zabel  - reg
375c9360eaSPhilipp Zabel  - '#reset-cells'
38*40b88f32STomer Maimon  - nuvoton,sysgcr
395c9360eaSPhilipp Zabel
405c9360eaSPhilipp ZabeladditionalProperties: false
415c9360eaSPhilipp Zabel
425c9360eaSPhilipp Zabelexamples:
435c9360eaSPhilipp Zabel  - |
445c9360eaSPhilipp Zabel    #include <dt-bindings/reset/nuvoton,npcm7xx-reset.h>
455c9360eaSPhilipp Zabel    rstc: rstc@f0801000 {
465c9360eaSPhilipp Zabel        compatible = "nuvoton,npcm750-reset";
475c9360eaSPhilipp Zabel        reg = <0xf0801000 0x70>;
485c9360eaSPhilipp Zabel        #reset-cells = <2>;
49*40b88f32STomer Maimon        nuvoton,sysgcr = <&gcr>;
505c9360eaSPhilipp Zabel        nuvoton,sw-reset-number = <2>;
515c9360eaSPhilipp Zabel    };
525c9360eaSPhilipp Zabel
535c9360eaSPhilipp Zabel    // Specifying reset lines connected to IP NPCM7XX modules
545c9360eaSPhilipp Zabel    spi0: spi {
555c9360eaSPhilipp Zabel        resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>;
565c9360eaSPhilipp Zabel    };
57