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

title: Raspberry Pi RP1 PWM controller

maintainers:
  - Naushir Patuck <naush@raspberrypi.com>

properties:
  compatible:
    enum:
      - raspberrypi,rp1-pwm

  reg:
    maxItems: 1

  "#pwm-cells":
    const: 3

required:
  - compatible
  - reg
  - clocks
  - "#pwm-cells"

additionalProperties: false

examples:
  - |
    pwm0: pwm@98000 {
      compatible = "raspberrypi,rp1-pwm";
      reg = <0x0 0x98000  0x0 0x100>;
      clocks = <&rp1_sys>;
      #pwm-cells = <3>;
    };
