xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/sprd,ums512-glbreg.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1*7ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*7ef62cebSEmmanuel Vadot# Copyright 2022 Unisoc Inc.
3*7ef62cebSEmmanuel Vadot%YAML 1.2
4*7ef62cebSEmmanuel Vadot---
5*7ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/sprd,ums512-glbreg.yaml#
6*7ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*7ef62cebSEmmanuel Vadot
8*7ef62cebSEmmanuel Vadottitle: Unisoc System Global Register
9*7ef62cebSEmmanuel Vadot
10*7ef62cebSEmmanuel Vadotmaintainers:
11*7ef62cebSEmmanuel Vadot  - Orson Zhai <orsonzhai@gmail.com>
12*7ef62cebSEmmanuel Vadot  - Baolin Wang <baolin.wang7@gmail.com>
13*7ef62cebSEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
14*7ef62cebSEmmanuel Vadot
15*7ef62cebSEmmanuel Vadotdescription:
16*7ef62cebSEmmanuel Vadot  Unisoc system global registers provide register map
17*7ef62cebSEmmanuel Vadot  for clocks and some multimedia modules of the SoC.
18*7ef62cebSEmmanuel Vadot
19*7ef62cebSEmmanuel Vadotproperties:
20*7ef62cebSEmmanuel Vadot  compatible:
21*7ef62cebSEmmanuel Vadot    items:
22*7ef62cebSEmmanuel Vadot      - const: sprd,ums512-glbregs
23*7ef62cebSEmmanuel Vadot      - const: syscon
24*7ef62cebSEmmanuel Vadot      - const: simple-mfd
25*7ef62cebSEmmanuel Vadot
26*7ef62cebSEmmanuel Vadot  "#address-cells":
27*7ef62cebSEmmanuel Vadot    const: 1
28*7ef62cebSEmmanuel Vadot
29*7ef62cebSEmmanuel Vadot  "#size-cells":
30*7ef62cebSEmmanuel Vadot    const: 1
31*7ef62cebSEmmanuel Vadot
32*7ef62cebSEmmanuel Vadot  ranges:
33*7ef62cebSEmmanuel Vadot    maxItems: 1
34*7ef62cebSEmmanuel Vadot
35*7ef62cebSEmmanuel Vadot  reg:
36*7ef62cebSEmmanuel Vadot    maxItems: 1
37*7ef62cebSEmmanuel Vadot
38*7ef62cebSEmmanuel VadotpatternProperties:
39*7ef62cebSEmmanuel Vadot  "^clock-controller@[0-9a-f]+$":
40*7ef62cebSEmmanuel Vadot    type: object
41*7ef62cebSEmmanuel Vadot    $ref: /schemas/clock/sprd,ums512-clk.yaml#
42*7ef62cebSEmmanuel Vadot    description:
43*7ef62cebSEmmanuel Vadot      Clock controller for the SoC clocks.
44*7ef62cebSEmmanuel Vadot
45*7ef62cebSEmmanuel Vadotrequired:
46*7ef62cebSEmmanuel Vadot  - compatible
47*7ef62cebSEmmanuel Vadot  - reg
48*7ef62cebSEmmanuel Vadot
49*7ef62cebSEmmanuel VadotadditionalProperties: false
50*7ef62cebSEmmanuel Vadot
51*7ef62cebSEmmanuel Vadotexamples:
52*7ef62cebSEmmanuel Vadot  - |
53*7ef62cebSEmmanuel Vadot    ap_apb_regs: syscon@71000000 {
54*7ef62cebSEmmanuel Vadot      compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd";
55*7ef62cebSEmmanuel Vadot      reg = <0x71000000 0x3000>;
56*7ef62cebSEmmanuel Vadot      #address-cells = <1>;
57*7ef62cebSEmmanuel Vadot      #size-cells = <1>;
58*7ef62cebSEmmanuel Vadot      ranges = <0 0x71000000 0x3000>;
59*7ef62cebSEmmanuel Vadot
60*7ef62cebSEmmanuel Vadot      clock-controller@0 {
61*7ef62cebSEmmanuel Vadot        compatible = "sprd,ums512-apahb-gate";
62*7ef62cebSEmmanuel Vadot        reg = <0x0 0x2000>;
63*7ef62cebSEmmanuel Vadot        #clock-cells = <1>;
64*7ef62cebSEmmanuel Vadot      };
65*7ef62cebSEmmanuel Vadot    };
66*7ef62cebSEmmanuel Vadot
67*7ef62cebSEmmanuel Vadot  - |
68*7ef62cebSEmmanuel Vadot    ap_intc5_regs: syscon@32360000 {
69*7ef62cebSEmmanuel Vadot      compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd";
70*7ef62cebSEmmanuel Vadot      reg = <0x32360000 0x1000>;
71*7ef62cebSEmmanuel Vadot    };
72