| Message ID | ee0aa89faa14e0073f1271693bae28678652998b.1790686331.git.andrea.porta@suse.com |
|---|---|
| State | New |
| Headers | show |
| Series | Add RP1 PWM controller support | expand |
On Tue, 29 Sep 2026 15:02:11 +0200, Andrea della Porta wrote: > From: Naushir Patuck <naush@raspberrypi.com> > > Add the devicetree binding documentation for the PWM > controller found in the Raspberry Pi RP1 chipset. > > Signed-off-by: Naushir Patuck <naush@raspberrypi.com> > Co-developed-by: Stanimir Varbanov <svarbanov@suse.de> > Signed-off-by: Stanimir Varbanov <svarbanov@suse.de> > Signed-off-by: Andrea della Porta <andrea.porta@suse.com> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> > --- > .../bindings/pwm/raspberrypi,rp1-pwm.yaml | 66 +++++++++++++++++++ > 1 file changed, 66 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/raspberrypi,rp1-pwm.yaml > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
On Tue, Sep 29, 2026 at 03:02:11PM +0200, Andrea della Porta wrote: > From: Naushir Patuck <naush@raspberrypi.com> > > Add the devicetree binding documentation for the PWM > controller found in the Raspberry Pi RP1 chipset. > > Signed-off-by: Naushir Patuck <naush@raspberrypi.com> > Co-developed-by: Stanimir Varbanov <svarbanov@suse.de> > Signed-off-by: Stanimir Varbanov <svarbanov@suse.de> > Signed-off-by: Andrea della Porta <andrea.porta@suse.com> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> > --- > .../bindings/pwm/raspberrypi,rp1-pwm.yaml | 66 +++++++++++++++++++ > 1 file changed, 66 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/raspberrypi,rp1-pwm.yaml Applied for v7.4 as the .dts user is already applied. Rob
diff --git a/Documentation/devicetree/bindings/pwm/raspberrypi,rp1-pwm.yaml b/Documentation/devicetree/bindings/pwm/raspberrypi,rp1-pwm.yaml new file mode 100644 index 0000000000000..be020583fd0ba --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/raspberrypi,rp1-pwm.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/raspberrypi,rp1-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi RP1 PWM controller + +maintainers: + - Naushir Patuck <naush@raspberrypi.com> + - Andrea della Porta <andrea.porta@suse.com> + - Stanimir Varbanov <svarbanov@suse.de> + +allOf: + - $ref: pwm.yaml# + +description: | + The PWM peripheral is a flexible waveform generator with a + variety of operational modes. It has the following features: + - four independent output channels + - 32-bit counter widths + - Seven output generation modes + - Optional per-channel output inversion + - Optional duty-cycle data FIFO with DMA support + - Optional sigma-delta noise shaping engine + Serves as a fan speed provider to other nodes for a PWM-connected + fan. + +properties: + compatible: + const: raspberrypi,rp1-pwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#pwm-cells": + const: 3 + + dmas: + maxItems: 1 + description: | + Phandle to the DMA controller and the channel specifier for + the duty-cycle FIFO. + + dma-names: + items: + - const: tx + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + pwm@98000 { + compatible = "raspberrypi,rp1-pwm"; + reg = <0x98000 0x100>; + clocks = <&rp1_clocks 17>; + #pwm-cells = <3>; + };