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

title: Broadcom BCM2835 power domain

maintainers:
  - Alexander Aring <alex.aring@gmail.com>
  - Florian Fainelli <florian.fainelli@broadcom.com>

description:
  The Raspberry Pi power domain manages power for various subsystems
  in the Raspberry Pi BCM2835 SoC.

properties:
  compatible:
    enum:
      - raspberrypi,bcm2835-power

  firmware:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Reference to the RPi firmware device node

  "#power-domain-cells":
    const: 1

required:
  - compatible
  - firmware
  - "#power-domain-cells"

unevaluatedProperties: false

examples:
  - |
    power-controller {
      compatible = "raspberrypi,bcm2835-power";
      firmware = <&firmware>;
      #power-domain-cells = <1>;
    };
