162306a36Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
262306a36Sopenharmony_ci%YAML 1.2
362306a36Sopenharmony_ci---
462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/soc/ti/sci-pm-domain.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: TI-SCI generic power domain
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimaintainers:
1062306a36Sopenharmony_ci  - Nishanth Menon <nm@ti.com>
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciallOf:
1362306a36Sopenharmony_ci  - $ref: /schemas/power/power-domain.yaml#
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cidescription: |
1662306a36Sopenharmony_ci  Some TI SoCs contain a system controller (like the Power Management Micro
1762306a36Sopenharmony_ci  Controller (PMMC) on Keystone 66AK2G SoC) that are responsible for controlling
1862306a36Sopenharmony_ci  the state of the various hardware modules present on the SoC. Communication
1962306a36Sopenharmony_ci  between the host processor running an OS and the system controller happens
2062306a36Sopenharmony_ci  through a protocol called TI System Control Interface (TI-SCI protocol).
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci  This PM domain node represents the global PM domain managed by the TI-SCI
2362306a36Sopenharmony_ci  controller. Since this relies on the TI SCI protocol to communicate with
2462306a36Sopenharmony_ci  the TI-SCI controller, it must be a child of the TI-SCI controller node.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciproperties:
2762306a36Sopenharmony_ci  compatible:
2862306a36Sopenharmony_ci    const: ti,sci-pm-domain
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci  "#power-domain-cells":
3162306a36Sopenharmony_ci    enum: [1, 2]
3262306a36Sopenharmony_ci    description:
3362306a36Sopenharmony_ci      The two cells represent values that the TI-SCI controller defines.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci      The first cell should contain the device ID.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci      The second cell, if cell-value is 2, should be one of the following
3862306a36Sopenharmony_ci      TI_SCI_PD_EXCLUSIVE - Allows the device to be exclusively controlled
3962306a36Sopenharmony_ci      or
4062306a36Sopenharmony_ci      TI_SCI_PD_SHARED - Allows the device to be shared by multiple hosts.
4162306a36Sopenharmony_ci      Please refer to dt-bindings/soc/ti,sci_pm_domain.h for the definitions.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ci      Please see  http://processors.wiki.ti.com/index.php/TISCI for
4462306a36Sopenharmony_ci      protocol documentation for the values to be used for different devices.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciadditionalProperties: false
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ciexamples:
4962306a36Sopenharmony_ci  - |
5062306a36Sopenharmony_ci    k2g_pds: power-controller {
5162306a36Sopenharmony_ci        compatible = "ti,sci-pm-domain";
5262306a36Sopenharmony_ci        #power-domain-cells = <1>;
5362306a36Sopenharmony_ci    };
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci  - |
5662306a36Sopenharmony_ci    k3_pds: power-controller {
5762306a36Sopenharmony_ci        compatible = "ti,sci-pm-domain";
5862306a36Sopenharmony_ci        #power-domain-cells = <2>;
5962306a36Sopenharmony_ci    };
60