Re: [PATCH] WIP: dt-bindings: arm: hwmon: gpio-fan: Convert txt bindings to yaml

From: Rob Herring
Date: Sun Oct 10 2021 - 15:32:21 EST


On Sat, 09 Oct 2021 12:43:09 +0200, David Heidelberg wrote:
> Convert fan devices connected to GPIOs to the YAML syntax.
>
> Signed-off-by: David Heidelberg <david@xxxxxxx>
> ---
> .../devicetree/bindings/hwmon/gpio-fan.txt | 41 -----------
> .../devicetree/bindings/hwmon/gpio-fan.yaml | 69 +++++++++++++++++++
> 2 files changed, 69 insertions(+), 41 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/hwmon/gpio-fan.txt
> create mode 100644 Documentation/devicetree/bindings/hwmon/gpio-fan.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/patch/1538743


fan: 'gpio-fan,speed-map' is a required property
arch/arm/boot/dts/kirkwood-nas2big.dt.yaml
arch/arm/boot/dts/kirkwood-net2big.dt.yaml

gpio-fan: gpio-fan,speed-map: 'anyOf' conditional failed, one must be fixed:
arch/arm/boot/dts/gemini-dlink-dir-685.dt.yaml
arch/arm/boot/dts/gemini-dlink-dns-313.dt.yaml

gpio_fan: gpio-fan,speed-map: 'anyOf' conditional failed, one must be fixed:
arch/arm/boot/dts/am57xx-beagle-x15.dt.yaml
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dt.yaml
arch/arm/boot/dts/am57xx-beagle-x15-revc.dt.yaml

gpio-fan: gpio-fan,speed-map: 'oneOf' conditional failed, one must be fixed:
arch/arm/boot/dts/gemini-dlink-dir-685.dt.yaml
arch/arm/boot/dts/gemini-dlink-dns-313.dt.yaml

gpio_fan: gpio-fan,speed-map: 'oneOf' conditional failed, one must be fixed:
arch/arm/boot/dts/am57xx-beagle-x15.dt.yaml
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dt.yaml
arch/arm/boot/dts/am57xx-beagle-x15-revc.dt.yaml