# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/arm/freescale/fsl,s400-api.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP S400 Baseline API module

maintainers:
  - Alice Guo <alice.guo@nxp.com>

description: |
  In the Sentinel application, the security subsystem uses S4 MU-AP to
  communicate and coordinate with the SoC host processor. The s400-api firmware
  driver provides the services to transmit data to and receive data from the
  S4 MU-AP.

properties:
  compatible:
    items:
      - const: fsl,imx8ulp-s400

  mboxes:
    description: |
      Use the mailbox provided by S4 MU-AP device to communicate with the S400.
      It should contain 2 mailboxes, one for transmitting messages and another
      for receiving.
    maxItems: 1

  mbox-names:
    items:
      - const: tx
      - const: rx

required:
  - compatible
  - mboxes
  - mbox-names

additionalProperties: false

examples:
  - |
    s400-api {
        compatible = "fsl,imx8ulp-s400";
        mboxes = <&s4muap 0 0 &s4muap 1 0>;
        mbox-names = "tx", "rx";
    };
