# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/qcom/qcom, spcom.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Secure Proccessor Communication (spcom)

maintainers:
  - Nurit Lichtenstein <quic_nuritl@quicinc.com>

description: |
  This document defines the binding for a component that implements the secure processor communication.

required:
  - compatible
  - qcom,spcom-ch-names
  - qcom,spcom-sp2soc-rmb-reg-addr
  - qcom,spcom-sp2soc-rmb-initdone-bit
  - qcom,spcom-sp2soc-rmb-pbldone-bit
  - qcom,spcom-soc2sp-rmb-reg-addr
  - qcom,spcom-soc2sp-rmb-sp-ssr-bit

examples:
  #The following example represents the spcom node on a sun device.
  - |
    qcom,spcom {
            compatible = "qcom,spcom";
            qcom,spcom-ch-names = "sp_kernel" , "sp_ssr";
            qcom,spcom-sp2soc-rmb-reg-addr = <0x01881020>;
            qcom,spcom-sp2soc-rmb-initdone-bit = <24>;
            qcom,spcom-sp2soc-rmb-pbldone-bit = <25>;
            qcom,spcom-soc2sp-rmb-reg-addr = <0x01881030>;
            qcom,spcom-soc2sp-rmb-sp-ssr-bit = <0>;
    };
