xref: /linux/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml (revision f858cc9eed5b05cbe38d7ffd2787c21e3718eb7d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/fsl/fsl,rcpm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Run Control and Power Management
8
9description:
10  The RCPM performs all device-level tasks associated with device run control
11  and power management.
12
13maintainers:
14  - Frank Li <Frank.Li@nxp.com>
15
16properties:
17  compatible:
18    oneOf:
19      - items:
20          - enum:
21              - fsl,p2041-rcpm
22              - fsl,p3041-rcpm
23              - fsl,p4080-rcpm
24              - fsl,p5020-rcpm
25              - fsl,p5040-rcpm
26          - const: fsl,qoriq-rcpm-1.0
27      - items:
28          - enum:
29              - fsl,b4420-rcpm
30              - fsl,b4860-rcpm
31              - fsl,t4240-rcpm
32          - const: fsl,qoriq-rcpm-2.0
33      - items:
34          - enum:
35              - fsl,t1040-rcpm
36          - const: fsl,qoriq-rcpm-2.1
37      - items:
38          - enum:
39              - fsl,ls1012a-rcpm
40              - fsl,ls1021a-rcpm
41              - fsl,ls1028a-rcpm
42              - fsl,ls1043a-rcpm
43              - fsl,ls1046a-rcpm
44              - fsl,ls1088a-rcpm
45              - fsl,ls208xa-rcpm
46              - fsl,lx2160a-rcpm
47          - const: fsl,qoriq-rcpm-2.1+
48
49  reg:
50    maxItems: 1
51
52  "#fsl,rcpm-wakeup-cells":
53    description: |
54      The number of IPPDEXPCR register cells in the
55      fsl,rcpm-wakeup property.
56
57      Freescale RCPM Wakeup Source Device Tree Bindings
58
59      Required fsl,rcpm-wakeup property should be added to a device node if
60      the device can be used as a wakeup source.
61
62      fsl,rcpm-wakeup: Consists of a phandle to the rcpm node and the IPPDEXPCR
63      register cells. The number of IPPDEXPCR register cells is defined in
64      "#fsl,rcpm-wakeup-cells" in the rcpm node. The first register cell is
65      the bit mask that should be set in IPPDEXPCR0, and the second register
66      cell is for IPPDEXPCR1, and so on.
67
68      Note: IPPDEXPCR(IP Powerdown Exception Control Register) provides a
69      mechanism for keeping certain blocks awake during STANDBY and MEM, in
70      order to use them as wake-up sources.
71
72  little-endian:
73    $ref: /schemas/types.yaml#/definitions/flag
74    description:
75      RCPM register block is Little Endian. Without it RCPM
76      will be Big Endian (default case).
77
78additionalProperties: false
79
80examples:
81  - |
82    #include <dt-bindings/interrupt-controller/arm-gic.h>
83    global-utilities@e2000 {
84          compatible = "fsl,t4240-rcpm", "fsl,qoriq-rcpm-2.0";
85          reg = <0xe2000 0x1000>;
86          #fsl,rcpm-wakeup-cells = <2>;
87    };
88