1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2021 ARM Ltd.
5 $id: http://devicetree.org/schemas/firmware/arm,scpi.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: System Control and Power Interface (SCPI) Message Protocol
11 - Sudeep Holla <sudeep.holla@arm.com>
14 Firmware implementing the SCPI described in ARM document number ARM DUI
15 0922B ("ARM Compute Subsystem SCP: Message Interface Protocols")[0] can be
16 used by Linux to initiate various system control and power operations.
18 This binding is intended to define the interface the firmware implementing
19 the SCPI provide for OSPM in the device tree.
21 [0] http://infocenter.arm.com/help/topic/com.arm.doc.dui0922b/index.html
29 SCPI compliant firmware complying to SCPI v1.0 and above OR
30 SCPI compliant firmware complying to all unversioned releases
33 - const: arm,scpi # SCPI v1.0 and above
34 - const: arm,scpi-pre-1.0 # Unversioned SCPI before v1.0
37 - amlogic,meson-gxbb-scpi
38 - const: arm,scpi-pre-1.0
42 List of phandle and mailbox channel specifiers. All the channels reserved
43 by remote SCP firmware for use by SCPI message protocol should be
44 specified in any order.
50 List of phandle pointing to the shared memory(SHM) area between the
51 processors using these mailboxes for IPC, one for each mailbox SHM can
52 be any memory reserved for the purpose of this communication between the
60 This sub-node represents SCPI power domain controller.
64 const: arm,scpi-power-domains
66 '#power-domain-cells':
70 $ref: /schemas/types.yaml#/definitions/uint32
72 Total number of power domains provided by SCPI. This is needed as
73 the SCPI message protocol lacks a mechanism to query this
74 information at runtime.
78 - '#power-domain-cells'
81 additionalProperties: false
86 This sub-node represents SCPI sensors controller.
91 - const: arm,scpi-sensors
94 - amlogic,meson-gxbb-scpi-sensors
95 - const: arm,scpi-sensors
97 '#thermal-sensor-cells':
102 - '#thermal-sensor-cells'
104 additionalProperties: false
109 This is the container node. Each sub-node represents one of the types
110 of clock controller - indexed or full range.
114 const: arm,scpi-clocks
117 "^clocks-[0-9a-f]+$":
120 This sub-node represents one of the types of clock controller
121 - indexed or full range.
123 "arm,scpi-dvfs-clocks" - all the clocks that are variable and index
124 based. These clocks don't provide an entire range of values between
125 the limits but only discrete points within the range. The firmware
126 provides the mapping for each such operating frequency and the index
127 associated with it. The firmware also manages the voltage scaling
128 appropriately with the clock scaling.
130 "arm,scpi-variable-clocks" - all the clocks that are variable and
131 provide full range within the specified range. The firmware provides
132 the range of values within a specified range.
137 - arm,scpi-dvfs-clocks
138 - arm,scpi-variable-clocks
143 clock-output-names: true
146 $ref: /schemas/types.yaml#/definitions/uint32-array
148 The identifying number for the clocks(i.e.clock_id) in the node.
149 It can be non linear and hence provide the mapping of identifiers
150 into the clock-output-names array.
158 additionalProperties: false
163 additionalProperties: false
165 additionalProperties: false
176 compatible = "arm,scpi";
178 shmem = <&cpu_scp_hpri>; /* HP-NonSecure */
180 scpi_devpd: power-controller {
181 compatible = "arm,scpi-power-domains";
183 #power-domain-cells = <1>;
187 compatible = "arm,scpi-clocks";
189 scpi_dvfs: clocks-0 {
190 compatible = "arm,scpi-dvfs-clocks";
192 clock-indices = <0>, <1>, <2>;
193 clock-output-names = "atlclk", "aplclk","gpuclk";
197 compatible = "arm,scpi-variable-clocks";
199 clock-indices = <3>, <4>;
200 clock-output-names = "pxlclk0", "pxlclk1";
204 scpi_sensors: sensors {
205 compatible = "arm,scpi-sensors";
206 #thermal-sensor-cells = <1>;
213 #address-cells = <2>;
217 compatible = "mmio-sram";
218 reg = <0x0 0x50000000 0x0 0x10000>;
220 #address-cells = <1>;
222 ranges = <0 0x0 0x50000000 0x10000>;
224 cpu_scp_lpri: scp-sram-section@0 {
225 compatible = "arm,scp-shmem";
229 cpu_scp_hpri: scp-sram-section@200 {
230 compatible = "arm,scp-shmem";
239 compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
240 mboxes = <&mailbox 1>, <&mailbox 2>;
241 shmem = <&cpu_scp_lpri>, <&cpu_scp_hpri>;
243 scpi_sensors1: sensors {
244 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
245 #thermal-sensor-cells = <1>;