Skip to content

Commit 9bf006d

Browse files
committed
dts: bindings: add bindings for Apple's PMPv1 drivers
Signed-off-by: dd-dreams <80887265+dd-dreams@users.noreply.github.com>
1 parent a85bb51 commit 9bf006d

2 files changed

Lines changed: 123 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/power/apple,pmp-v1-report-entry.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Apple PMPv1 Report Entry Power Domains
8+
9+
maintainers:
10+
- Didi Nuk <dev@ydnuk.com>
11+
12+
description:
13+
Apple PMPv1 report-entry nodes expose individual PMP-managed resources as
14+
generic power domains. The PMP driver requires a report-entry node for each
15+
SoC-specific PMP-managed resource.
16+
17+
properties:
18+
compatible:
19+
const: apple,t8103-pmp-v1-report-entry
20+
21+
reg:
22+
maxItems: 1
23+
24+
"#power-domain-cells":
25+
const: 0
26+
27+
power-domains:
28+
maxItems: 1
29+
30+
label:
31+
description:
32+
Specifies the name of the SoC report entry domain. This is used to
33+
name the report entry domains.
34+
35+
apple,always-on:
36+
description:
37+
Forces this power domain to always be powered up.
38+
type: boolean
39+
40+
required:
41+
- compatible
42+
- reg
43+
- label
44+
- "#power-domain-cells"
45+
- power-domains
46+
47+
additionalProperties: false
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/power/apple,pmp-v1.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Apple PMPv1 Power Domains
8+
9+
maintainers:
10+
- Didi Nuk <dev@ydnuk.com>
11+
12+
description:
13+
Apple PMPv1 power domains are controlled by the Apple Power Management
14+
Processor (PMP).
15+
16+
properties:
17+
compatible:
18+
const: apple,t8103-pmp-v1
19+
20+
reg:
21+
maxItems: 2
22+
23+
reg-names:
24+
items:
25+
- const: pmp
26+
- const: asc
27+
28+
mboxes:
29+
maxItems: 1
30+
31+
mbox-names:
32+
items:
33+
- const: mbox
34+
35+
iommus:
36+
maxItems: 1
37+
38+
"#address-cells":
39+
const: 1
40+
41+
"#size-cells":
42+
const: 0
43+
44+
power-domains:
45+
maxItems: 1
46+
47+
apple,init-ranges:
48+
description:
49+
List of PMP memory regions, represented as address and size pairs for
50+
initializing PMP.
51+
$ref: /schemas/types.yaml#/definitions/uint32-array
52+
minItems: 2
53+
54+
apple,init-dva:
55+
description:
56+
List of device virtual address with count pairs for initializing PMP.
57+
$ref: /schemas/types.yaml#/definitions/uint32-array
58+
minItems: 2
59+
60+
required:
61+
- compatible
62+
- reg
63+
- reg-names
64+
- mboxes
65+
- mbox-names
66+
- "#address-cells"
67+
- "#size-cells"
68+
- iommus
69+
- apple,init-ranges
70+
- apple,init-dva
71+
72+
patternProperties:
73+
"^report@[0-9a-f]+$":
74+
$ref: apple,pmp-v1-report-entry.yaml#
75+
76+
additionalProperties: false

0 commit comments

Comments
 (0)