# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/firmware/amlogic,meson-gxbb-sm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic Secure Monitor (SM)

description:
  In the Amlogic SoCs the Secure Monitor code is used to provide access to the
  NVMEM, enable JTAG, set USB boot, etc...

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>

properties:
  compatible:
    oneOf:
      - const: amlogic,meson-gxbb-sm
      - items:
          - const: amlogic,meson-gx-sm
          - const: amlogic,meson-gxbb-sm

  power-controller:
    type: object
    $ref: /schemas/power/amlogic,meson-sec-pwrc.yaml#

required:
  - compatible

additionalProperties: false

examples:
  - |
    firmware {
        secure-monitor {
            compatible = "amlogic,meson-gxbb-sm";
        };
    };