Message ID | 20241029160837.590199-2-u.kleine-koenig@baylibre.com |
---|---|
State | Accepted |
Headers | show |
Series | dt-bindings: pwm: marvell,berlin-pwm: Convert from txt to yaml | expand |
On Tue, Oct 29, 2024 at 05:08:36PM +0100, Uwe Kleine-König wrote: > Formalize the binding for marvell,berlin-pwm devices and make them > automatically checkable. No change to the binding intended. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> > --- Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
Hello, On Tue, Oct 29, 2024 at 05:08:36PM +0100, Uwe Kleine-König wrote: > the only addition is the list of maintainers. I optimistically added > Jisheng Zhang and Sebastian Hesselbarth as they are the maintainers for > the platform containing this type of device. Please speak up if you > don't want to be listed. Objection perioded terminated and applied to https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-nexxt as 6.14-rc1 material. Best regards Uwe
diff --git a/Documentation/devicetree/bindings/pwm/marvell,berlin-pwm.yaml b/Documentation/devicetree/bindings/pwm/marvell,berlin-pwm.yaml new file mode 100644 index 000000000000..091fec03df13 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/marvell,berlin-pwm.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/marvell,berlin-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Berlin PWM controller + +maintainers: + - Jisheng Zhang <jszhang@kernel.org> + - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> + +properties: + compatible: + const: marvell,berlin-pwm + + reg: + maxItems: 1 + + "#pwm-cells": + const: 3 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +allOf: + - $ref: pwm.yaml# + +unevaluatedProperties: false + +examples: + - | + pwm@f7f20000 { + compatible = "marvell,berlin-pwm"; + reg = <0xf7f20000 0x40>; + clocks = <&chip_clk 12>; + #pwm-cells = <3>; + }; + diff --git a/Documentation/devicetree/bindings/pwm/pwm-berlin.txt b/Documentation/devicetree/bindings/pwm/pwm-berlin.txt deleted file mode 100644 index f01e993a498a..000000000000 --- a/Documentation/devicetree/bindings/pwm/pwm-berlin.txt +++ /dev/null @@ -1,17 +0,0 @@ -Berlin PWM controller - -Required properties: -- compatible: should be "marvell,berlin-pwm" -- reg: physical base address and length of the controller's registers -- clocks: phandle to the input clock -- #pwm-cells: should be 3. See pwm.yaml in this directory for a description of - the cells format. - -Example: - -pwm: pwm@f7f20000 { - compatible = "marvell,berlin-pwm"; - reg = <0xf7f20000 0x40>; - clocks = <&chip_clk CLKID_CFG>; - #pwm-cells = <3>; -}
Formalize the binding for marvell,berlin-pwm devices and make them automatically checkable. No change to the binding intended. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> --- Hello, the only addition is the list of maintainers. I optimistically added Jisheng Zhang and Sebastian Hesselbarth as they are the maintainers for the platform containing this type of device. Please speak up if you don't want to be listed. Best regards Uwe .../bindings/pwm/marvell,berlin-pwm.yaml | 44 +++++++++++++++++++ .../devicetree/bindings/pwm/pwm-berlin.txt | 17 ------- 2 files changed, 44 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/marvell,berlin-pwm.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-berlin.txt base-commit: 6fb2fa9805c501d9ade047fc511961f3273cdcb5