Re: [PATCH] dt-bindings: watchdog: Convert GPIO binding to json-schema

From: Robert Marko
Date: Mon Nov 28 2022 - 05:04:08 EST


On Sat, Nov 26, 2022 at 11:25 PM Rob Herring <robh@xxxxxxxxxx> wrote:
>
>
> On Fri, 25 Nov 2022 12:29:04 +0100, Robert Marko wrote:
> > Convert the DT binding for GPIO WDT to JSON schema.
> >
> > Cc: luka.perkov@xxxxxxxxxx
> > Signed-off-by: Robert Marko <robert.marko@xxxxxxxxxx>
> > ---
> > .../devicetree/bindings/watchdog/gpio-wdt.txt | 28 ----------
> > .../bindings/watchdog/gpio-wdt.yaml | 55 +++++++++++++++++++
> > 2 files changed, 55 insertions(+), 28 deletions(-)
> > delete mode 100644 Documentation/devicetree/bindings/watchdog/gpio-wdt.txt
> > create mode 100644 Documentation/devicetree/bindings/watchdog/gpio-wdt.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/20221125112904.48652-1-robert.marko@xxxxxxxxxx
>
>
> watchdog-gpio: Unevaluated properties are not allowed ('always-enabled' was unexpected)
> arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc.dtb


This is expected as always-enabled was not documented in TXT bindings
nor the driver actually parses it,
it is looking for always-running only.

Regards,
Robert
--
Robert Marko
Staff Embedded Linux Engineer
Sartura Ltd.
Lendavska ulica 16a
10000 Zagreb, Croatia
Email: robert.marko@xxxxxxxxxx
Web: www.sartura.hr