dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 27 Aug 2019 03:00:40 +0000 (20:00 -0700)
committerArnd Bergmann <arnd@arndb.de>
Wed, 4 Sep 2019 18:44:34 +0000 (20:44 +0200)
TISCI protocol supports for enabling the device either with exclusive
permissions for the requesting host or with sharing across the hosts.
There are certain devices which are exclusive to Linux context and
there are certain devices that are shared across different host contexts.
So add support for getting this information from DT by increasing
the power-domain cells to 2.

Acked-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
MAINTAINERS
include/dt-bindings/soc/ti,sci_pm_domain.h [new file with mode: 0644]

index f7b00a7c0f68944b7b29a9f515f342bd96d3da63..f541d1f776a2c234956c5f752f7617c4e61bc6d8 100644 (file)
@@ -19,8 +19,15 @@ child of the pmmc node.
 Required Properties:
 --------------------
 - compatible: should be "ti,sci-pm-domain"
-- #power-domain-cells: Must be 1 so that an id can be provided in each
-                      device node.
+- #power-domain-cells: Can be one of the following:
+                       1: Containing the device id of each node
+                       2: First entry should be device id
+                          Second entry should be one of the floowing:
+                          TI_SCI_PD_EXCLUSIVE: To allow device to be
+                                               exclusively controlled by
+                                               the requesting hosts.
+                          TI_SCI_PD_SHARED: To allow device to be shared
+                                            by multiple hosts.
 
 Example (K2G):
 -------------
index ad386626c9fa7eda5fc5d1a22494aaa31b8ab957..3ecca5d04e51398da819d09a3ee5c0d19f2ce390 100644 (file)
@@ -15869,6 +15869,7 @@ F:      drivers/firmware/ti_sci*
 F:     include/linux/soc/ti/ti_sci_protocol.h
 F:     Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
 F:     drivers/soc/ti/ti_sci_pm_domains.c
+F:     include/dt-bindings/soc/ti,sci_pm_domain.h
 F:     Documentation/devicetree/bindings/reset/ti,sci-reset.txt
 F:     Documentation/devicetree/bindings/clock/ti,sci-clk.txt
 F:     drivers/clk/keystone/sci-clk.c
diff --git a/include/dt-bindings/soc/ti,sci_pm_domain.h b/include/dt-bindings/soc/ti,sci_pm_domain.h
new file mode 100644 (file)
index 0000000..8f2a736
--- /dev/null
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef __DT_BINDINGS_TI_SCI_PM_DOMAIN_H
+#define __DT_BINDINGS_TI_SCI_PM_DOMAIN_H
+
+#define TI_SCI_PD_EXCLUSIVE    1
+#define TI_SCI_PD_SHARED       0
+
+#endif /* __DT_BINDINGS_TI_SCI_PM_DOMAIN_H */