mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
3b8ddff780
commit
a953e68ef2
2 changed files with 33 additions and 0 deletions
|
@ -64,6 +64,21 @@ properties:
|
||||||
- compatible
|
- compatible
|
||||||
- "#reset-cells"
|
- "#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
|
additionalProperties: false
|
||||||
|
|
||||||
required:
|
required:
|
||||||
|
@ -87,5 +102,10 @@ examples:
|
||||||
compatible = "raspberrypi,firmware-reset";
|
compatible = "raspberrypi,firmware-reset";
|
||||||
#reset-cells = <1>;
|
#reset-cells = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pwm: pwm {
|
||||||
|
compatible = "raspberrypi,firmware-poe-pwm";
|
||||||
|
#pwm-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
...
|
...
|
||||||
|
|
13
include/dt-bindings/pwm/raspberrypi,firmware-poe-pwm.h
Normal file
13
include/dt-bindings/pwm/raspberrypi,firmware-poe-pwm.h
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/* 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
|
Loading…
Add table
Add a link
Reference in a new issue