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