Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Rob Herring <robh@kernel.org>

+33
+20
Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
··· 64 64 - compatible 65 65 - "#reset-cells" 66 66 67 + pwm: 68 + type: object 69 + 70 + properties: 71 + compatible: 72 + const: raspberrypi,firmware-poe-pwm 73 + 74 + "#pwm-cells": 75 + # See pwm.yaml in this directory for a description of the cells format. 76 + const: 2 77 + 78 + required: 79 + - compatible 80 + - "#pwm-cells" 81 + 67 82 additionalProperties: false 68 83 69 84 required: ··· 101 86 reset: reset { 102 87 compatible = "raspberrypi,firmware-reset"; 103 88 #reset-cells = <1>; 89 + }; 90 + 91 + pwm: pwm { 92 + compatible = "raspberrypi,firmware-poe-pwm"; 93 + #pwm-cells = <2>; 104 94 }; 105 95 }; 106 96 ...
+13
include/dt-bindings/pwm/raspberrypi,firmware-poe-pwm.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* 3 + * Copyright (c) 2020 Nicolas Saenz Julienne 4 + * Author: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H 8 + #define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H 9 + 10 + #define RASPBERRYPI_FIRMWARE_PWM_POE 0 11 + #define RASPBERRYPI_FIRMWARE_PWM_NUM 1 12 + 13 + #endif