1c1507cf2SGeert Uytterhoeven# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c1507cf2SGeert Uytterhoeven%YAML 1.2
3c1507cf2SGeert Uytterhoeven---
4c1507cf2SGeert Uytterhoeven$id: "http://devicetree.org/schemas/power/renesas,apmu.yaml#"
5c1507cf2SGeert Uytterhoeven$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6c1507cf2SGeert Uytterhoeven
7c1507cf2SGeert Uytterhoeventitle: Renesas Advanced Power Management Unit
8c1507cf2SGeert Uytterhoeven
9c1507cf2SGeert Uytterhoevenmaintainers:
10c1507cf2SGeert Uytterhoeven  - Geert Uytterhoeven <geert+renesas@glider.be>
11c1507cf2SGeert Uytterhoeven  - Magnus Damm <magnus.damm@gmail.com>
12c1507cf2SGeert Uytterhoeven
13c1507cf2SGeert Uytterhoevendescription:
14c1507cf2SGeert Uytterhoeven  Renesas R-Car Gen2 and RZ/G1 SoCs utilize one or more APMU hardware units for
15c1507cf2SGeert Uytterhoeven  CPU core power domain control including SMP boot and CPU Hotplug.
16c1507cf2SGeert Uytterhoeven
17c1507cf2SGeert Uytterhoevenproperties:
18c1507cf2SGeert Uytterhoeven  compatible:
19c1507cf2SGeert Uytterhoeven    items:
20c1507cf2SGeert Uytterhoeven      - enum:
21c1507cf2SGeert Uytterhoeven          - renesas,r8a7743-apmu  # RZ/G1M
22c1507cf2SGeert Uytterhoeven          - renesas,r8a7744-apmu  # RZ/G1N
23c1507cf2SGeert Uytterhoeven          - renesas,r8a7745-apmu  # RZ/G1E
24c1507cf2SGeert Uytterhoeven          - renesas,r8a77470-apmu # RZ/G1C
25c1507cf2SGeert Uytterhoeven          - renesas,r8a7790-apmu  # R-Car H2
26c1507cf2SGeert Uytterhoeven          - renesas,r8a7791-apmu  # R-Car M2-W
27c1507cf2SGeert Uytterhoeven          - renesas,r8a7792-apmu  # R-Car V2H
28c1507cf2SGeert Uytterhoeven          - renesas,r8a7793-apmu  # R-Car M2-N
29c1507cf2SGeert Uytterhoeven          - renesas,r8a7794-apmu  # R-Car E2
30c1507cf2SGeert Uytterhoeven      - const: renesas,apmu
31c1507cf2SGeert Uytterhoeven
32c1507cf2SGeert Uytterhoeven  reg:
33c1507cf2SGeert Uytterhoeven    maxItems: 1
34c1507cf2SGeert Uytterhoeven
35c1507cf2SGeert Uytterhoeven  cpus:
36c1507cf2SGeert Uytterhoeven    $ref: /schemas/types.yaml#/definitions/phandle-array
37c1507cf2SGeert Uytterhoeven    description: |
38c1507cf2SGeert Uytterhoeven      Array of phandles pointing to CPU cores, which should match the order of
39c1507cf2SGeert Uytterhoeven      CPU cores used by the WUPCR and PSTR registers in the Advanced Power
40c1507cf2SGeert Uytterhoeven      Management Unit section of the device's datasheet.
41c1507cf2SGeert Uytterhoeven
42c1507cf2SGeert Uytterhoevenrequired:
43c1507cf2SGeert Uytterhoeven  - compatible
44c1507cf2SGeert Uytterhoeven  - reg
45c1507cf2SGeert Uytterhoeven  - cpus
46c1507cf2SGeert Uytterhoeven
47c1507cf2SGeert UytterhoevenadditionalProperties: false
48c1507cf2SGeert Uytterhoeven
49c1507cf2SGeert Uytterhoevenexamples:
50c1507cf2SGeert Uytterhoeven  - |
51c1507cf2SGeert Uytterhoeven    apmu@e6152000 {
52c1507cf2SGeert Uytterhoeven            compatible = "renesas,r8a7791-apmu", "renesas,apmu";
53c1507cf2SGeert Uytterhoeven            reg = <0xe6152000 0x188>;
54c1507cf2SGeert Uytterhoeven            cpus = <&cpu0 &cpu1>;
55c1507cf2SGeert Uytterhoeven    };
56