Commit 9e465988 authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Santosh Shilimkar
Browse files

dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access



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: default avatarTero Kristo <t-kristo@ti.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent df2e3281
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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):
-------------
+1 −0
Original line number Diff line number Diff line
@@ -15853,6 +15853,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
+9 −0
Original line number Diff line number Diff line
/* 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 */