Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/firmware/google,gs101-acpm-ipc.yaml
53269 views
1
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
# Copyright 2024 Linaro Ltd.
3
%YAML 1.2
4
---
5
$id: http://devicetree.org/schemas/firmware/google,gs101-acpm-ipc.yaml#
6
$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8
title: Samsung Exynos ACPM mailbox protocol
9
10
maintainers:
11
- Tudor Ambarus <tudor.ambarus@linaro.org>
12
13
description: |
14
ACPM (Alive Clock and Power Manager) is a firmware that operates on the
15
APM (Active Power Management) module that handles overall power management
16
activities. ACPM and masters regard each other as independent hardware
17
component and communicate with each other using mailbox messages and
18
shared memory.
19
20
This binding is intended to define the interface the firmware implementing
21
ACPM provides for OSPM in the device tree.
22
23
properties:
24
compatible:
25
const: google,gs101-acpm-ipc
26
27
"#clock-cells":
28
const: 1
29
description:
30
Clocks that are variable and index based. These clocks don't provide
31
an entire range of values between the limits but only discrete points
32
within the range. The firmware also manages the voltage scaling
33
appropriately with the clock scaling. The argument is the ID of the
34
clock contained by the firmware messages.
35
36
mboxes:
37
maxItems: 1
38
39
pmic:
40
description: Child node describing the main PMIC.
41
type: object
42
additionalProperties: true
43
44
properties:
45
compatible:
46
const: samsung,s2mpg10-pmic
47
48
shmem:
49
description:
50
List of phandle pointing to the shared memory (SHM) area. The memory
51
contains channels configuration data and the TX/RX ring buffers that
52
are used for passing messages to/from the ACPM firmware.
53
maxItems: 1
54
55
required:
56
- compatible
57
- "#clock-cells"
58
- mboxes
59
- shmem
60
61
additionalProperties: false
62
63
examples:
64
- |
65
#include <dt-bindings/interrupt-controller/irq.h>
66
67
power-management {
68
compatible = "google,gs101-acpm-ipc";
69
#clock-cells = <1>;
70
mboxes = <&ap2apm_mailbox>;
71
shmem = <&apm_sram>;
72
73
pmic {
74
compatible = "samsung,s2mpg10-pmic";
75
interrupts-extended = <&gpa0 6 IRQ_TYPE_LEVEL_LOW>;
76
77
regulators {
78
ldo1m {
79
regulator-name = "vdd_ldo1";
80
regulator-min-microvolt = <700000>;
81
regulator-max-microvolt = <1300000>;
82
regulator-always-on;
83
};
84
85
// ...
86
87
buck8m {
88
regulator-name = "vdd_mif";
89
regulator-min-microvolt = <450000>;
90
regulator-max-microvolt = <1300000>;
91
regulator-always-on;
92
regulator-boot-on;
93
};
94
};
95
};
96
};
97
98