xref: /linux/Documentation/devicetree/bindings/arm/hisilicon/controller/cpuctrl.yaml (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
15b6b3e21SZhen Lei# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25b6b3e21SZhen Lei%YAML 1.2
35b6b3e21SZhen Lei---
45b6b3e21SZhen Lei$id: http://devicetree.org/schemas/arm/hisilicon/controller/cpuctrl.yaml#
55b6b3e21SZhen Lei$schema: http://devicetree.org/meta-schemas/core.yaml#
65b6b3e21SZhen Lei
75b6b3e21SZhen Leititle: Hisilicon CPU controller
85b6b3e21SZhen Lei
95b6b3e21SZhen Leimaintainers:
105b6b3e21SZhen Lei  - Wei Xu <xuwei5@hisilicon.com>
115b6b3e21SZhen Lei
125b6b3e21SZhen Leidescription: |
135b6b3e21SZhen Lei  The clock registers and power registers of secondary cores are defined
145b6b3e21SZhen Lei  in CPU controller, especially in HIX5HD2 SoC.
155b6b3e21SZhen Lei
165b6b3e21SZhen Leiproperties:
175b6b3e21SZhen Lei  compatible:
185b6b3e21SZhen Lei    items:
195b6b3e21SZhen Lei      - const: hisilicon,cpuctrl
205b6b3e21SZhen Lei
215b6b3e21SZhen Lei  reg:
225b6b3e21SZhen Lei    maxItems: 1
235b6b3e21SZhen Lei
240450d1f9SZhen Lei  "#address-cells":
250450d1f9SZhen Lei    const: 1
260450d1f9SZhen Lei
270450d1f9SZhen Lei  "#size-cells":
280450d1f9SZhen Lei    const: 1
290450d1f9SZhen Lei
300450d1f9SZhen Lei  ranges: true
310450d1f9SZhen Lei
32*dac7d7a8SRob HerringpatternProperties:
33*dac7d7a8SRob Herring  "^clock@[0-9a-f]+$":
34*dac7d7a8SRob Herring    type: object
35*dac7d7a8SRob Herring    additionalProperties: false
36*dac7d7a8SRob Herring
37*dac7d7a8SRob Herring    properties:
38*dac7d7a8SRob Herring      compatible:
39*dac7d7a8SRob Herring        const: hisilicon,hix5hd2-clock
40*dac7d7a8SRob Herring
41*dac7d7a8SRob Herring      reg:
42*dac7d7a8SRob Herring        maxItems: 1
43*dac7d7a8SRob Herring
44*dac7d7a8SRob Herring      "#clock-cells":
45*dac7d7a8SRob Herring        const: 1
46*dac7d7a8SRob Herring
47*dac7d7a8SRob Herring    required:
48*dac7d7a8SRob Herring      - compatible
49*dac7d7a8SRob Herring      - reg
50*dac7d7a8SRob Herring      - "#clock-cells"
51*dac7d7a8SRob Herring
525b6b3e21SZhen Leirequired:
535b6b3e21SZhen Lei  - compatible
545b6b3e21SZhen Lei  - reg
555b6b3e21SZhen Lei
560450d1f9SZhen LeiadditionalProperties:
570450d1f9SZhen Lei  type: object
580450d1f9SZhen Lei
590450d1f9SZhen Leiexamples:
600450d1f9SZhen Lei  - |
610450d1f9SZhen Lei    cpuctrl@a22000 {
620450d1f9SZhen Lei        compatible = "hisilicon,cpuctrl";
630450d1f9SZhen Lei        #address-cells = <1>;
640450d1f9SZhen Lei        #size-cells = <1>;
650450d1f9SZhen Lei        reg = <0x00a22000 0x2000>;
660450d1f9SZhen Lei        ranges = <0 0x00a22000 0x2000>;
670450d1f9SZhen Lei
680450d1f9SZhen Lei        clock: clock@0 {
690450d1f9SZhen Lei            compatible = "hisilicon,hix5hd2-clock";
700450d1f9SZhen Lei            reg = <0 0x2000>;
710450d1f9SZhen Lei            #clock-cells = <1>;
720450d1f9SZhen Lei        };
730450d1f9SZhen Lei    };
745b6b3e21SZhen Lei...
75