Re: [PATCH] dt-bindings: input: pwm-beeper: convert to dt schema
From: Rob Herring
Date: Tue Mar 28 2023 - 08:57:25 EST
On Tue, 28 Mar 2023 13:48:33 +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@xxxxxxx>
>
> Convert the binding doc to dt schema, and also fixed the
> example from fixed-regulator to regulator-fixed.
>
> Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
> ---
> .../devicetree/bindings/input/pwm-beeper.txt | 24 ----------
> .../devicetree/bindings/input/pwm-beeper.yaml | 48 +++++++++++++++++++
> 2 files changed, 48 insertions(+), 24 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/input/pwm-beeper.txt
> create mode 100644 Documentation/devicetree/bindings/input/pwm-beeper.yaml
>
Running 'make dtbs_check' with the schema in this patch gives the
following warnings. Consider if they are expected or the schema is
incorrect. These may not be new warnings.
Note that it is not yet a requirement to have 0 warnings for dtbs_check.
This will change in the future.
Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230328054833.1974942-1-peng.fan@xxxxxxxxxxx
beeper: beeper-hz:0:0: 4000 is greater than the maximum of 255
arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dtb
arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dtb
arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dtb
beeper: pwms:0: [19, 31, 4000] is too long
arch/arm/boot/dts/armada-370-c200-v2.dtb
beeper: pwms:0: [52, 5, 1000000, 0] is too long
arch/arm/boot/dts/aspeed-bmc-vegman-n110.dtb
beeper: pwms:0: [53, 5, 1000000, 0] is too long
arch/arm/boot/dts/aspeed-bmc-vegman-rx20.dtb
arch/arm/boot/dts/aspeed-bmc-vegman-sx20.dtb
beeper: pwms:0: [72, 0, 250000, 0] is too long
arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dtb
beeper: pwms:0: [91, 0, 250000, 0] is too long
arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dtb
beeper: pwms:0: [98, 0, 250000, 0] is too long
arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dtb
beeper: pwms:0: [98, 0, 500000] is too long
arch/arm/boot/dts/imx6q-kp-tpc.dtb
beeper: Unevaluated properties are not allowed ('beeper-hz', 'pwms' were unexpected)
arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dtb
arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dtb
arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dtb
beeper: Unevaluated properties are not allowed ('pwms' was unexpected)
arch/arm/boot/dts/armada-370-c200-v2.dtb
arch/arm/boot/dts/aspeed-bmc-vegman-n110.dtb
arch/arm/boot/dts/aspeed-bmc-vegman-rx20.dtb
arch/arm/boot/dts/aspeed-bmc-vegman-sx20.dtb
arch/arm/boot/dts/imx6q-kp-tpc.dtb
beep: pwms:0: [108, 0, 4000000, 1] is too long
arch/arm/boot/dts/exynos4412-itop-elite.dtb
beep: Unevaluated properties are not allowed ('pwms' was unexpected)
arch/arm/boot/dts/exynos4412-itop-elite.dtb
buzzer: pwms:0: [20, 0, 1000000, 0] is too long
arch/arm/boot/dts/s3c6410-mini6410.dtb
buzzer: pwms:0: [41, 0, 500000] is too long
arch/arm/boot/dts/imx53-kp-ddc.dtb
buzzer: pwms:0: [42, 0, 500000] is too long
arch/arm/boot/dts/imx53-kp-hsc.dtb
buzzer: Unevaluated properties are not allowed ('pwms' was unexpected)
arch/arm/boot/dts/imx53-kp-ddc.dtb
arch/arm/boot/dts/imx53-kp-hsc.dtb
arch/arm/boot/dts/s3c6410-mini6410.dtb
pwm-beeper: pwms:0: [56, 0, 5000] is too long
arch/arm/boot/dts/imx6ul-kontron-bl.dtb
arch/arm/boot/dts/imx6ull-kontron-bl.dtb
pwm-beeper: pwms:0: [60, 0, 5000] is too long
arch/arm/boot/dts/imx6ul-kontron-bl-43.dtb
pwm-beeper: pwms:0: [83, 0, 5000, 0] is too long
arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dtb
pwm-beeper: pwms:0: [86, 0, 5000, 0] is too long
arch/arm64/boot/dts/freescale/imx8mm-kontron-bl-osm-s.dtb
pwm-beeper: Unevaluated properties are not allowed ('pwms' was unexpected)
arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dtb
arch/arm64/boot/dts/freescale/imx8mm-kontron-bl-osm-s.dtb
arch/arm/boot/dts/imx6ul-kontron-bl-43.dtb
arch/arm/boot/dts/imx6ul-kontron-bl.dtb
arch/arm/boot/dts/imx6ull-kontron-bl.dtb
sound: pwms:0: [44, 1, 1000000, 0] is too long
arch/arm/boot/dts/da850-lego-ev3.dtb
sound: Unevaluated properties are not allowed ('pwms' was unexpected)
arch/arm/boot/dts/da850-lego-ev3.dtb