xref: /linux/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/arm/rockchip/pmu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Rockchip Power Management Unit (PMU)
8
9maintainers:
10  - Elaine Zhang <zhangqing@rock-chips.com>
11  - Heiko Stuebner <heiko@sntech.de>
12
13description: |
14  The PMU is used to turn on and off different power domains of the SoCs.
15  This includes the power to the CPU cores.
16
17select:
18  properties:
19    compatible:
20      contains:
21        enum:
22          - rockchip,px30-pmu
23          - rockchip,rk3066-pmu
24          - rockchip,rk3128-pmu
25          - rockchip,rk3288-pmu
26          - rockchip,rk3368-pmu
27          - rockchip,rk3399-pmu
28          - rockchip,rk3528-pmu
29          - rockchip,rk3562-pmu
30          - rockchip,rk3568-pmu
31          - rockchip,rk3576-pmu
32          - rockchip,rk3588-pmu
33          - rockchip,rv1126-pmu
34
35  required:
36    - compatible
37
38properties:
39  compatible:
40    items:
41      - enum:
42          - rockchip,px30-pmu
43          - rockchip,rk3066-pmu
44          - rockchip,rk3128-pmu
45          - rockchip,rk3288-pmu
46          - rockchip,rk3368-pmu
47          - rockchip,rk3399-pmu
48          - rockchip,rk3528-pmu
49          - rockchip,rk3562-pmu
50          - rockchip,rk3568-pmu
51          - rockchip,rk3576-pmu
52          - rockchip,rk3588-pmu
53          - rockchip,rv1126-pmu
54      - const: syscon
55      - const: simple-mfd
56
57  reg:
58    maxItems: 1
59
60  power-controller:
61    type: object
62
63  reboot-mode:
64    $ref: /schemas/power/reset/syscon-reboot-mode.yaml
65    unevaluatedProperties: false
66
67    patternProperties:
68      # Negative look-ahead to disallow unsupported modes. The '$' has to be
69      # part of lookahead group to work, instead of trailing outside of ().
70      "^mode-(?!(bootloader$|loader$|normal$|recovery$))": false
71
72required:
73  - compatible
74  - reg
75
76additionalProperties: false
77
78examples:
79  - |
80    pmu@20004000 {
81      compatible = "rockchip,rk3066-pmu", "syscon", "simple-mfd";
82      reg = <0x20004000 0x100>;
83    };
84