aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2015-05-14 06:26:11 -0400
committerSudeep Holla <sudeep.holla@arm.com>2015-09-28 06:53:37 -0400
commit80f390ea5afdf7073bba0757b1eeb8d4f833398f (patch)
treeb7afb1cfeb1c67862c5d6ef2490ae6b4171bc9e0
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
Documentation: add DT binding for ARM System Control and Power Interface(SCPI) protocol
This patch adds devicetree binding for System Control and Power Interface (SCPI) Message Protocol used between the Application Cores(AP) and the System Control Processor(SCP). The MHU peripheral provides a mechanism for inter-processor communication between SCP's M3 processor and AP. SCP offers control and management of the core/cluster power states, various power domain DVFS including the core/cluster, certain system clocks configuration, thermal sensors and many others. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Cc: Rob Herring <robh+dt@kernel.org> CC: Jassi Brar <jassisinghbrar@gmail.com> Cc: Liviu Dudau <Liviu.Dudau@arm.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Jon Medhurst (Tixy) <tixy@linaro.org> Cc: devicetree@vger.kernel.org
-rw-r--r--Documentation/devicetree/bindings/arm/arm,scpi.txt150
-rw-r--r--MAINTAINERS6
2 files changed, 156 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/arm,scpi.txt b/Documentation/devicetree/bindings/arm/arm,scpi.txt
new file mode 100644
index 000000000000..f0024605f416
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/arm,scpi.txt
@@ -0,0 +1,150 @@
1System Control and Power Interface (SCPI) Message Protocol
2----------------------------------------------------------
3
4Firmware implementing the SCPI described in ARM document number ARM DUI 0922B
5("ARM Compute Subsystem SCP: Message Interface Protocols")[0] can be used
6by Linux to initiate various system control and power operations.
7
8Required properties:
9
10- compatible : should be "arm,scpi"
11- mboxes: List of phandle and mailbox channel specifiers
12 All the channels reserved by remote SCP firmware for use by
13 SCPI message protocol should be specified in any order
14- shmem : List of phandle pointing to the shared memory(SHM) area between the
15 processors using these mailboxes for IPC, one for each mailbox
16 SHM can be any memory reserved for the purpose of this communication
17 between the processors.
18
19See Documentation/devicetree/bindings/mailbox/mailbox.txt
20for more details about the generic mailbox controller and
21client driver bindings.
22
23Clock bindings for the clocks based on SCPI Message Protocol
24------------------------------------------------------------
25
26This binding uses the common clock binding[1].
27
28Container Node
29==============
30Required properties:
31- compatible : should be "arm,scpi-clocks"
32 All the clocks provided by SCP firmware via SCPI message
33 protocol much be listed as sub-nodes under this node.
34
35Sub-nodes
36=========
37Required properties:
38- compatible : shall include one of the following
39 "arm,scpi-dvfs-clocks" - all the clocks that are variable and index based.
40 These clocks don't provide an entire range of values between the
41 limits but only discrete points within the range. The firmware
42 provides the mapping for each such operating frequency and the
43 index associated with it. The firmware also manages the
44 voltage scaling appropriately with the clock scaling.
45 "arm,scpi-variable-clocks" - all the clocks that are variable and provide full
46 range within the specified range. The firmware provides the
47 range of values within a specified range.
48
49Other required properties for all clocks(all from common clock binding):
50- #clock-cells : Should be 1. Contains the Clock ID value used by SCPI commands.
51- clock-output-names : shall be the corresponding names of the outputs.
52- clock-indices: The identifying number for the clocks(i.e.clock_id) in the
53 node. It can be non linear and hence provide the mapping of identifiers
54 into the clock-output-names array.
55
56SRAM and Shared Memory for SCPI
57-------------------------------
58
59A small area of SRAM is reserved for SCPI communication between application
60processors and SCP.
61
62Required properties:
63- compatible : should be "arm,juno-sram-ns" for Non-secure SRAM on Juno
64
65The rest of the properties should follow the generic mmio-sram description
66found in ../../misc/sysram.txt
67
68Each sub-node represents the reserved area for SCPI.
69
70Required sub-node properties:
71- reg : The base offset and size of the reserved area with the SRAM
72- compatible : should be "arm,juno-scp-shmem" for Non-secure SRAM based
73 shared memory on Juno platforms
74
75[0] http://infocenter.arm.com/help/topic/com.arm.doc.dui0922b/index.html
76[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
77
78Example:
79
80sram: sram@50000000 {
81 compatible = "arm,juno-sram-ns", "mmio-sram";
82 reg = <0x0 0x50000000 0x0 0x10000>;
83
84 #address-cells = <1>;
85 #size-cells = <1>;
86 ranges = <0 0x0 0x50000000 0x10000>;
87
88 cpu_scp_lpri: scp-shmem@0 {
89 compatible = "arm,juno-scp-shmem";
90 reg = <0x0 0x200>;
91 };
92
93 cpu_scp_hpri: scp-shmem@200 {
94 compatible = "arm,juno-scp-shmem";
95 reg = <0x200 0x200>;
96 };
97};
98
99mailbox: mailbox0@40000000 {
100 ....
101 #mbox-cells = <1>;
102};
103
104scpi_protocol: scpi@2e000000 {
105 compatible = "arm,scpi";
106 mboxes = <&mailbox 0 &mailbox 1>;
107 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
108
109 clocks {
110 compatible = "arm,scpi-clocks";
111
112 scpi_dvfs: scpi_clocks@0 {
113 compatible = "arm,scpi-dvfs-clocks";
114 #clock-cells = <1>;
115 clock-indices = <0>, <1>, <2>;
116 clock-output-names = "atlclk", "aplclk","gpuclk";
117 };
118 scpi_clk: scpi_clocks@3 {
119 compatible = "arm,scpi-variable-clocks";
120 #clock-cells = <1>;
121 clock-indices = <3>, <4>;
122 clock-output-names = "pxlclk0", "pxlclk1";
123 };
124 };
125};
126
127cpu@0 {
128 ...
129 reg = <0 0>;
130 clocks = <&scpi_dvfs 0>;
131};
132
133hdlcd@7ff60000 {
134 ...
135 reg = <0 0x7ff60000 0 0x1000>;
136 clocks = <&scpi_clk 4>;
137};
138
139In the above example, the #clock-cells is set to 1 as required.
140scpi_dvfs has 3 output clocks namely: atlclk, aplclk, and gpuclk with 0,
1411 and 2 as clock-indices. scpi_clk has 2 output clocks namely: pxlclk0
142and pxlclk1 with 3 and 4 as clock-indices.
143
144The first consumer in the example is cpu@0 and it has '0' as the clock
145specifier which points to the first entry in the output clocks of
146scpi_dvfs i.e. "atlclk".
147
148Similarly the second example is hdlcd@7ff60000 and it has pxlclk1 as input
149clock. '4' in the clock specifier here points to the second entry
150in the output clocks of scpi_clocks i.e. "pxlclk1"
diff --git a/MAINTAINERS b/MAINTAINERS
index 7ba7ab749c85..be7d5c14729b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9149,6 +9149,12 @@ W: http://www.sunplus.com
9149S: Supported 9149S: Supported
9150F: arch/score/ 9150F: arch/score/
9151 9151
9152SYSTEM CONTROL & POWER INTERFACE (SCPI) Message Protocol drivers
9153M: Sudeep Holla <sudeep.holla@arm.com>
9154L: linux-arm-kernel@lists.infradead.org
9155S: Maintained
9156F: Documentation/devicetree/bindings/arm/arm,scpi.txt
9157
9152SCSI CDROM DRIVER 9158SCSI CDROM DRIVER
9153M: Jens Axboe <axboe@kernel.dk> 9159M: Jens Axboe <axboe@kernel.dk>
9154L: linux-scsi@vger.kernel.org 9160L: linux-scsi@vger.kernel.org