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