xref: /linux/Documentation/devicetree/bindings/reset/nuvoton,npcm750-reset.yaml (revision 9f3a2ba62c7226a6604b8aaeb92b5ff906fa4e6b)
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:
1485331f56STomer Maimon    enum:
1585331f56STomer Maimon      - nuvoton,npcm750-reset        # Poleg NPCM7XX SoC
1685331f56STomer Maimon      - nuvoton,npcm845-reset        # Arbel NPCM8XX SoC
175c9360eaSPhilipp Zabel
185c9360eaSPhilipp Zabel  reg:
195c9360eaSPhilipp Zabel    maxItems: 1
205c9360eaSPhilipp Zabel
215c9360eaSPhilipp Zabel  '#reset-cells':
225c9360eaSPhilipp Zabel    const: 2
235c9360eaSPhilipp Zabel
24*d62f45b5STomer Maimon  '#clock-cells':
25*d62f45b5STomer Maimon    const: 1
26*d62f45b5STomer Maimon
27*d62f45b5STomer Maimon  clocks:
28*d62f45b5STomer Maimon    items:
29*d62f45b5STomer Maimon      - description: specify external 25MHz reference clock.
30*d62f45b5STomer Maimon
3140b88f32STomer Maimon  nuvoton,sysgcr:
3240b88f32STomer Maimon    $ref: /schemas/types.yaml#/definitions/phandle
3340b88f32STomer Maimon    description: a phandle to access GCR registers.
3440b88f32STomer Maimon
355c9360eaSPhilipp Zabel  nuvoton,sw-reset-number:
365c9360eaSPhilipp Zabel    $ref: /schemas/types.yaml#/definitions/uint32
375c9360eaSPhilipp Zabel    minimum: 1
385c9360eaSPhilipp Zabel    maximum: 4
395c9360eaSPhilipp Zabel    description: |
405c9360eaSPhilipp Zabel      Contains the software reset number to restart the SoC.
415c9360eaSPhilipp Zabel      If not specified, software reset is disabled.
425c9360eaSPhilipp Zabel
435c9360eaSPhilipp Zabelrequired:
445c9360eaSPhilipp Zabel  - compatible
455c9360eaSPhilipp Zabel  - reg
465c9360eaSPhilipp Zabel  - '#reset-cells'
4740b88f32STomer Maimon  - nuvoton,sysgcr
485c9360eaSPhilipp Zabel
49*d62f45b5STomer Maimonif:
50*d62f45b5STomer Maimon  properties:
51*d62f45b5STomer Maimon    compatible:
52*d62f45b5STomer Maimon      contains:
53*d62f45b5STomer Maimon        enum:
54*d62f45b5STomer Maimon          - nuvoton,npcm845-reset
55*d62f45b5STomer Maimonthen:
56*d62f45b5STomer Maimon  required:
57*d62f45b5STomer Maimon    - '#clock-cells'
58*d62f45b5STomer Maimon    - clocks
59*d62f45b5STomer Maimon
605c9360eaSPhilipp ZabeladditionalProperties: false
615c9360eaSPhilipp Zabel
625c9360eaSPhilipp Zabelexamples:
635c9360eaSPhilipp Zabel  - |
645c9360eaSPhilipp Zabel    #include <dt-bindings/reset/nuvoton,npcm7xx-reset.h>
655c9360eaSPhilipp Zabel    rstc: rstc@f0801000 {
665c9360eaSPhilipp Zabel        compatible = "nuvoton,npcm750-reset";
675c9360eaSPhilipp Zabel        reg = <0xf0801000 0x70>;
685c9360eaSPhilipp Zabel        #reset-cells = <2>;
6940b88f32STomer Maimon        nuvoton,sysgcr = <&gcr>;
705c9360eaSPhilipp Zabel        nuvoton,sw-reset-number = <2>;
715c9360eaSPhilipp Zabel    };
725c9360eaSPhilipp Zabel
735c9360eaSPhilipp Zabel    // Specifying reset lines connected to IP NPCM7XX modules
745c9360eaSPhilipp Zabel    spi0: spi {
755c9360eaSPhilipp Zabel        resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>;
765c9360eaSPhilipp Zabel    };
77