Commit a953e68e authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne
Browse files

dt-bindings: pwm: Add binding for RPi firmware PWM bus



The PWM bus controlling the fan in RPi's official PoE hat can only be
controlled by the board's co-processor.

Signed-off-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
parent 3b8ddff7
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -64,6 +64,21 @@ properties:
      - compatible
      - "#reset-cells"

  pwm:
    type: object

    properties:
      compatible:
        const: raspberrypi,firmware-poe-pwm

      "#pwm-cells":
        # See pwm.yaml in this directory for a description of the cells format.
        const: 2

    required:
      - compatible
      - "#pwm-cells"

    additionalProperties: false

required:
@@ -87,5 +102,10 @@ examples:
            compatible = "raspberrypi,firmware-reset";
            #reset-cells = <1>;
        };

        pwm: pwm {
            compatible = "raspberrypi,firmware-poe-pwm";
            #pwm-cells = <2>;
        };
    };
...
+13 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2020 Nicolas Saenz Julienne
 * Author: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
 */

#ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H
#define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H

#define RASPBERRYPI_FIRMWARE_PWM_POE		0
#define RASPBERRYPI_FIRMWARE_PWM_NUM		1

#endif