Rob Herring
28ffe8bf90
dt-bindings: Clean-up undocumented compatible strings
...
Adding checks for undocumented compatible strings reveals a bunch of
warnings in the DT binding examples. Fix the cases which are typos, just
a mismatch between the schema and the example, or aren't documented at all.
In a couple of cases, fixing the compatible revealed some schema errors
which are fixed.
There's a bunch of others remaining after this which have bindings, but
those aren't converted to schema yet.
Cc: Thierry Reding <thierry.reding@gmail.com >
Cc: Sam Ravnborg <sam@ravnborg.org >
Cc: Pavel Machek <pavel@ucw.cz >
Cc: linux-clk@vger.kernel.org
Cc: dmaengine@vger.kernel.org
Cc: linux-i3c@lists.infradead.org
Cc: linux-iio@vger.kernel.org
Cc: linux-leds@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Cc: linux-spi@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Stephen Boyd <sboyd@kernel.org >
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-by: Kishon Vijay Abraham I <kishon@ti.com >
Acked-by: Sebastian Reichel <sre@kernel.org >
Acked-by: Maxime Ripard <maxime@cerno.tech >
Acked-by: Vinod Koul <vkoul@kernel.org >
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Acked-by: Alain Volmat <alain.volmat@foss.st.com >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/r/20210316194918.3528417-1-robh@kernel.org
2021-03-23 15:27:51 -06:00
Rob Herring
d69c6ddd01
dt-bindings: Fix JSON pointers
...
The correct syntax for JSON pointers begins with a '/' after the '#'.
Without a '/', the string should be interpreted as a subschema
identifier. The jsonschema module currently doesn't handle subschema
identifiers and incorrectly allows JSON pointers to begin without a '/'.
Let's fix this before it becomes a problem when jsonschema module is
fixed.
Converted with:
perl -p -i -e 's/yaml#definitions/yaml#\/definitions/g' `find Documentation/devicetree/bindings/ -name "*.yaml"`
Cc: Maxime Ripard <mripard@kernel.org >
Cc: Jonathan Cameron <jic23@kernel.org >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Daniel Thompson <daniel.thompson@linaro.org >
Cc: Jingoo Han <jingoohan1@gmail.com >
Cc: Pavel Machek <pavel@ucw.cz >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Jakub Kicinski <kuba@kernel.org >
Cc: Andrew Lunn <andrew@lunn.ch >
Cc: Florian Fainelli <f.fainelli@gmail.com >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: netdev@vger.kernel.org
Acked-By: Vinod Koul <vkoul@kernel.org >
Acked-by: Lee Jones <lee.jones@linaro.org >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Acked-by: Sebastian Reichel <sre@kernel.org >
Acked-by: Florian Fainelli <f.fainelli@gmail.com >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Jakub Kicinski <kuba@kernel.org >
Link: https://lore.kernel.org/r/20201217223429.354283-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2020-12-18 15:14:44 -06:00
Rob Herring
5be478f9c2
dt-bindings: Another round of adding missing 'additionalProperties'
...
Another round of wack-a-mole. The json-schema default is additional
unknown properties are allowed, but for DT all properties should be
defined.
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Stephen Boyd <sboyd@kernel.org >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: Baolin Wang <baolin.wang7@gmail.com >
Cc: Mauro Carvalho Chehab <mchehab@kernel.org >
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Reviewed-by: Guenter Roeck <linux@roeck-us.net >
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-By: Vinod Koul <vkoul@kernel.org >
Acked-by: Lee Jones <lee.jones@linaro.org >
Acked-by: Ulf Hansson <ulf.hansson@linaro.org >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > # for iio
Acked-by: Thierry Reding <treding@nvidia.com >
Acked-by: Mark Brown <broonie@kernel.org >
Reviewd-by: Corey Minyard <cminyard@mvista.com >
Acked-by: Pavel Machek <pavel@ucw.cz >
Acked-by: Sebastian Reichel <sre@kernel.org >
Link: https://lore.kernel.org/r/20201002234143.3570746-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2020-10-06 10:55:25 -05:00
Rob Herring
086e9074f5
dt-bindings: Remove more cases of 'allOf' containing a '$ref'
...
Another round of 'allOf' removals that came in this cycle.
json-schema versions draft7 and earlier have a weird behavior in that
any keywords combined with a '$ref' are ignored (silently). The correct
form was to put a '$ref' under an 'allOf'. This behavior is now changed
in the 2019-09 json-schema spec and '$ref' can be mixed with other
keywords. The json-schema library doesn't yet support this, but the
tooling now does a fixup for this and either way works.
This has been a constant source of review comments, so let's change this
treewide so everyone copies the simpler syntax.
Signed-off-by: Rob Herring <robh@kernel.org >
2020-06-11 13:50:43 -06:00
Tobias Schramm
6e77618863
dt-bindings: power: supply: add cw2015_battery bindings
...
This patch adds the dts binding schema for the cw2015 fuel gauge.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org >
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com >
2020-05-03 17:40:36 +02:00