xref: /freebsd/sys/contrib/device-tree/Bindings/arm/hisilicon/controller/cpuctrl.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/arm/hisilicon/controller/cpuctrl.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Hisilicon CPU controller
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Wei Xu <xuwei5@hisilicon.com>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotdescription: |
136be33864SEmmanuel Vadot  The clock registers and power registers of secondary cores are defined
146be33864SEmmanuel Vadot  in CPU controller, especially in HIX5HD2 SoC.
156be33864SEmmanuel Vadot
166be33864SEmmanuel Vadotproperties:
176be33864SEmmanuel Vadot  compatible:
186be33864SEmmanuel Vadot    items:
196be33864SEmmanuel Vadot      - const: hisilicon,cpuctrl
206be33864SEmmanuel Vadot
216be33864SEmmanuel Vadot  reg:
226be33864SEmmanuel Vadot    maxItems: 1
236be33864SEmmanuel Vadot
246be33864SEmmanuel Vadot  "#address-cells":
256be33864SEmmanuel Vadot    const: 1
266be33864SEmmanuel Vadot
276be33864SEmmanuel Vadot  "#size-cells":
286be33864SEmmanuel Vadot    const: 1
296be33864SEmmanuel Vadot
306be33864SEmmanuel Vadot  ranges: true
316be33864SEmmanuel Vadot
32*aa1a8ff2SEmmanuel VadotpatternProperties:
33*aa1a8ff2SEmmanuel Vadot  "^clock@[0-9a-f]+$":
34*aa1a8ff2SEmmanuel Vadot    type: object
35*aa1a8ff2SEmmanuel Vadot    additionalProperties: false
36*aa1a8ff2SEmmanuel Vadot
37*aa1a8ff2SEmmanuel Vadot    properties:
38*aa1a8ff2SEmmanuel Vadot      compatible:
39*aa1a8ff2SEmmanuel Vadot        const: hisilicon,hix5hd2-clock
40*aa1a8ff2SEmmanuel Vadot
41*aa1a8ff2SEmmanuel Vadot      reg:
42*aa1a8ff2SEmmanuel Vadot        maxItems: 1
43*aa1a8ff2SEmmanuel Vadot
44*aa1a8ff2SEmmanuel Vadot      "#clock-cells":
45*aa1a8ff2SEmmanuel Vadot        const: 1
46*aa1a8ff2SEmmanuel Vadot
47*aa1a8ff2SEmmanuel Vadot    required:
48*aa1a8ff2SEmmanuel Vadot      - compatible
49*aa1a8ff2SEmmanuel Vadot      - reg
50*aa1a8ff2SEmmanuel Vadot      - "#clock-cells"
51*aa1a8ff2SEmmanuel Vadot
526be33864SEmmanuel Vadotrequired:
536be33864SEmmanuel Vadot  - compatible
546be33864SEmmanuel Vadot  - reg
556be33864SEmmanuel Vadot
566be33864SEmmanuel VadotadditionalProperties:
576be33864SEmmanuel Vadot  type: object
586be33864SEmmanuel Vadot
596be33864SEmmanuel Vadotexamples:
606be33864SEmmanuel Vadot  - |
616be33864SEmmanuel Vadot    cpuctrl@a22000 {
626be33864SEmmanuel Vadot        compatible = "hisilicon,cpuctrl";
636be33864SEmmanuel Vadot        #address-cells = <1>;
646be33864SEmmanuel Vadot        #size-cells = <1>;
656be33864SEmmanuel Vadot        reg = <0x00a22000 0x2000>;
666be33864SEmmanuel Vadot        ranges = <0 0x00a22000 0x2000>;
676be33864SEmmanuel Vadot
686be33864SEmmanuel Vadot        clock: clock@0 {
696be33864SEmmanuel Vadot            compatible = "hisilicon,hix5hd2-clock";
706be33864SEmmanuel Vadot            reg = <0 0x2000>;
716be33864SEmmanuel Vadot            #clock-cells = <1>;
726be33864SEmmanuel Vadot        };
736be33864SEmmanuel Vadot    };
746be33864SEmmanuel Vadot...
75