1*0545810fSJacky Huang# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*0545810fSJacky Huang%YAML 1.2
3*0545810fSJacky Huang---
4*0545810fSJacky Huang$id: http://devicetree.org/schemas/soc/nuvoton/nuvoton,npcm-gcr.yaml#
5*0545810fSJacky Huang$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0545810fSJacky Huang
7*0545810fSJacky Huangtitle: Global Control Registers block in Nuvoton SoCs
8*0545810fSJacky Huang
9*0545810fSJacky Huangmaintainers:
10*0545810fSJacky Huang  - Jonathan Neuschäfer <j.neuschaefer@gmx.net>
11*0545810fSJacky Huang  - Tomer Maimon <tmaimon77@gmail.com>
12*0545810fSJacky Huang
13*0545810fSJacky Huangdescription:
14*0545810fSJacky Huang  The Global Control Registers (GCR) are a block of registers in Nuvoton SoCs
15*0545810fSJacky Huang  that expose misc functionality such as chip model and version information or
16*0545810fSJacky Huang  pinmux settings.
17*0545810fSJacky Huang
18*0545810fSJacky Huangproperties:
19*0545810fSJacky Huang  compatible:
20*0545810fSJacky Huang    items:
21*0545810fSJacky Huang      - enum:
22*0545810fSJacky Huang          - nuvoton,wpcm450-gcr
23*0545810fSJacky Huang          - nuvoton,npcm750-gcr
24*0545810fSJacky Huang          - nuvoton,npcm845-gcr
25*0545810fSJacky Huang      - const: syscon
26*0545810fSJacky Huang      - const: simple-mfd
27*0545810fSJacky Huang
28*0545810fSJacky Huang  reg:
29*0545810fSJacky Huang    maxItems: 1
30*0545810fSJacky Huang
31*0545810fSJacky Huangrequired:
32*0545810fSJacky Huang  - compatible
33*0545810fSJacky Huang  - reg
34*0545810fSJacky Huang
35*0545810fSJacky HuangadditionalProperties:
36*0545810fSJacky Huang  type: object
37*0545810fSJacky Huang
38*0545810fSJacky Huangexamples:
39*0545810fSJacky Huang  - |
40*0545810fSJacky Huang    gcr: syscon@800000 {
41*0545810fSJacky Huang      compatible = "nuvoton,npcm750-gcr", "syscon", "simple-mfd";
42*0545810fSJacky Huang      reg = <0x800000 0x1000>;
43*0545810fSJacky Huang
44*0545810fSJacky Huang      mux-controller {
45*0545810fSJacky Huang        compatible = "mmio-mux";
46*0545810fSJacky Huang        #mux-control-cells = <1>;
47*0545810fSJacky Huang        mux-reg-masks = <0x38 0x07>;
48*0545810fSJacky Huang        idle-states = <2>;
49*0545810fSJacky Huang      };
50*0545810fSJacky Huang    };
51