xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/sprd,ums512-glbreg.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
27ef62cebSEmmanuel Vadot# Copyright 2022 Unisoc Inc.
37ef62cebSEmmanuel Vadot%YAML 1.2
47ef62cebSEmmanuel Vadot---
57ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/sprd,ums512-glbreg.yaml#
67ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
77ef62cebSEmmanuel Vadot
87ef62cebSEmmanuel Vadottitle: Unisoc System Global Register
97ef62cebSEmmanuel Vadot
107ef62cebSEmmanuel Vadotmaintainers:
117ef62cebSEmmanuel Vadot  - Orson Zhai <orsonzhai@gmail.com>
127ef62cebSEmmanuel Vadot  - Baolin Wang <baolin.wang7@gmail.com>
137ef62cebSEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
147ef62cebSEmmanuel Vadot
157ef62cebSEmmanuel Vadotdescription:
167ef62cebSEmmanuel Vadot  Unisoc system global registers provide register map
177ef62cebSEmmanuel Vadot  for clocks and some multimedia modules of the SoC.
187ef62cebSEmmanuel Vadot
197ef62cebSEmmanuel Vadotproperties:
207ef62cebSEmmanuel Vadot  compatible:
217ef62cebSEmmanuel Vadot    items:
22*8d13bc63SEmmanuel Vadot      - enum:
23*8d13bc63SEmmanuel Vadot          - sprd,ums512-glbregs
24*8d13bc63SEmmanuel Vadot          - sprd,ums9620-glbregs
257ef62cebSEmmanuel Vadot      - const: syscon
267ef62cebSEmmanuel Vadot      - const: simple-mfd
277ef62cebSEmmanuel Vadot
287ef62cebSEmmanuel Vadot  "#address-cells":
297ef62cebSEmmanuel Vadot    const: 1
307ef62cebSEmmanuel Vadot
317ef62cebSEmmanuel Vadot  "#size-cells":
327ef62cebSEmmanuel Vadot    const: 1
337ef62cebSEmmanuel Vadot
347ef62cebSEmmanuel Vadot  ranges:
357ef62cebSEmmanuel Vadot    maxItems: 1
367ef62cebSEmmanuel Vadot
377ef62cebSEmmanuel Vadot  reg:
387ef62cebSEmmanuel Vadot    maxItems: 1
397ef62cebSEmmanuel Vadot
407ef62cebSEmmanuel VadotpatternProperties:
417ef62cebSEmmanuel Vadot  "^clock-controller@[0-9a-f]+$":
427ef62cebSEmmanuel Vadot    type: object
437ef62cebSEmmanuel Vadot    $ref: /schemas/clock/sprd,ums512-clk.yaml#
447ef62cebSEmmanuel Vadot    description:
457ef62cebSEmmanuel Vadot      Clock controller for the SoC clocks.
467ef62cebSEmmanuel Vadot
477ef62cebSEmmanuel Vadotrequired:
487ef62cebSEmmanuel Vadot  - compatible
497ef62cebSEmmanuel Vadot  - reg
507ef62cebSEmmanuel Vadot
517ef62cebSEmmanuel VadotadditionalProperties: false
527ef62cebSEmmanuel Vadot
537ef62cebSEmmanuel Vadotexamples:
547ef62cebSEmmanuel Vadot  - |
557ef62cebSEmmanuel Vadot    ap_apb_regs: syscon@71000000 {
567ef62cebSEmmanuel Vadot      compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd";
577ef62cebSEmmanuel Vadot      reg = <0x71000000 0x3000>;
587ef62cebSEmmanuel Vadot      #address-cells = <1>;
597ef62cebSEmmanuel Vadot      #size-cells = <1>;
607ef62cebSEmmanuel Vadot      ranges = <0 0x71000000 0x3000>;
617ef62cebSEmmanuel Vadot
627ef62cebSEmmanuel Vadot      clock-controller@0 {
637ef62cebSEmmanuel Vadot        compatible = "sprd,ums512-apahb-gate";
647ef62cebSEmmanuel Vadot        reg = <0x0 0x2000>;
657ef62cebSEmmanuel Vadot        #clock-cells = <1>;
667ef62cebSEmmanuel Vadot      };
677ef62cebSEmmanuel Vadot    };
687ef62cebSEmmanuel Vadot
697ef62cebSEmmanuel Vadot  - |
707ef62cebSEmmanuel Vadot    ap_intc5_regs: syscon@32360000 {
717ef62cebSEmmanuel Vadot      compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd";
727ef62cebSEmmanuel Vadot      reg = <0x32360000 0x1000>;
737ef62cebSEmmanuel Vadot    };
74