26 Jan, 2021

1 commit

  • Changeset b70d154d6558 ("dt-bindings:iio:adc: convert adc.txt to yaml")
    renamed: Documentation/devicetree/bindings/iio/adc/adc.txt
    to: Documentation/devicetree/bindings/iio/adc/adc.yaml.

    Update its cross-reference accordingly.

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Jonathan Cameron
    Link: https://lore.kernel.org/r/8e37dba8ae9099acd649bab8a1cf718caa4f3e6a.1610535350.git.mchehab+huawei@kernel.org
    Signed-off-by: Rob Herring

    Mauro Carvalho Chehab
     

08 Oct, 2020

2 commits

  • In cases where we don't reference another schema, 'additionalProperties'
    can be used instead. This is preferred for now as 'unevaluatedProperties'
    support isn't implemented yet.

    In a few cases, this means adding some missing property definitions of
    which most are for SPI bus properties. 'unevaluatedProperties' is not going
    to work for the SPI bus properties anyways as they are evaluated from the
    parent node, not the SPI child node.

    Acked-by: Mark Brown
    Acked-by: Krzysztof Kozlowski
    Acked-by: Lee Jones
    Acked-by: Jonathan Cameron
    Acked-by: Guenter Roeck
    Link: https://lore.kernel.org/r/20201005183830.486085-3-robh@kernel.org
    Signed-off-by: Rob Herring

    Rob Herring
     
  • This doesn't yet do anything in the tools, but make it explicit so we can
    check either 'unevaluatedProperties' or 'additionalProperties' is present
    in schemas.

    'unevaluatedProperties' is appropriate when including another schema (via
    '$ref') and all possible properties and/or child nodes are not
    explicitly listed in the schema with the '$ref'.

    This is in preparation to add a meta-schema to check for missing
    'unevaluatedProperties' or 'additionalProperties'. This has been a
    constant source of review issues.

    Acked-by: Mark Brown
    Acked-by: Wolfram Sang
    Acked-by: Krzysztof Kozlowski
    Acked-By: Vinod Koul
    Acked-by: Geert Uytterhoeven
    Acked-by: Ulf Hansson
    Acked-by: Guenter Roeck
    Acked-by: Mathieu Poirier
    Acked-by: Dmitry Torokhov
    Link: https://lore.kernel.org/r/20201005183830.486085-2-robh@kernel.org
    Signed-off-by: Rob Herring

    Rob Herring
     

27 Mar, 2020

1 commit

  • Numerous schemas are missing 'additionalProperties: false' statements which
    ensures a binding doesn't have any extra undocumented properties or child
    nodes. Fixing this reveals various missing properties, so let's fix all
    those occurrences.

    Signed-off-by: Rob Herring
    Reviewed-by: Neil Armstrong
    Acked-by: Alexandru Ardelean
    Acked-by: Jonathan Cameron #for-iio
    Acked-by: Stephen Boyd # clock
    Acked-by: Lee Jones
    Reviewed-by: Linus Walleij
    Cc: dri-devel@lists.freedesktop.org
    Cc: netdev@vger.kernel.org
    Cc: Guillaume La Roque
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: Mark Brown
    Cc: linux-iio@vger.kernel.org
    Cc: Lars-Peter Clausen
    Cc: linux-clk@vger.kernel.org
    Cc: Thomas Gleixner
    Cc: Kevin Hilman
    Cc: "David S. Miller"
    Cc: Hartmut Knaack
    Cc: Peter Meerwald-Stadler
    Cc: linux-amlogic@lists.infradead.org
    Cc: linux-pm@vger.kernel.org
    Cc: Masahiro Yamada
    Cc: Bartosz Golaszewski
    Cc: Liam Girdwood
    Cc: Mauro Carvalho Chehab
    Cc: linux-gpio@vger.kernel.org
    Cc: Daniel Lezcano
    Cc: Zhang Rui
    Cc: linux-media@vger.kernel.org
    Cc: Lee Jones

    Rob Herring
     

05 Feb, 2020

1 commit

  • The $id path checks were inadequately checking the path part of the $id
    value. With the check fixed, there's a number of errors that need to be
    fixed. Most of the errors are including 'bindings/' in the path which
    should not be as that is considered the root.

    Cc: Andy Gross
    Cc: Bjorn Andersson
    Cc: Manivannan Sadhasivam
    Cc: Michael Turquette
    Cc: Shawn Guo
    Cc: Sascha Hauer
    Cc: Pengutronix Kernel Team
    Cc: Fabio Estevam
    Cc: NXP Linux Team
    Cc: Maxime Coquelin
    Cc: Alexandre Torgue
    Cc: "Nuno Sá"
    Cc: Jean Delvare
    Cc: Stefan Popa
    Cc: Jonathan Cameron
    Cc: Hartmut Knaack
    Cc: Lars-Peter Clausen
    Cc: Peter Meerwald-Stadler
    Cc: Marcus Folkesson
    Cc: Kent Gustavsson
    Cc: Dmitry Torokhov
    Cc: linux-clk@vger.kernel.org
    Cc: linux-iio@vger.kernel.org
    Cc: linux-input@vger.kernel.org
    Reviewed-by: Guenter Roeck
    Reviewed-by: Stephen Boyd
    Signed-off-by: Rob Herring

    Rob Herring
     

03 Oct, 2019

2 commits

  • The example contains an SPI bus and device, but doesn't have the
    appropriate size and address cells size.

    This creates a DTC warning when the example is compiled since the default
    ones will not match what the device uses. Let's add them to remove that
    warning.

    Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
    Signed-off-by: Maxime Ripard
    Signed-off-by: Rob Herring

    Maxime Ripard
     
  • The AD7192 binding describes two regulator properties, avdd-supply and
    dvdd-supply, but describes it as a constant string that must be avdd and
    dvdd. This is wrong since a *-supply property is actually a phandle, and
    results in warnings when the example is validated (or any device tree using
    that device, for that matter).

    Let's remove that requirement.

    Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
    Signed-off-by: Maxime Ripard
    Signed-off-by: Rob Herring

    Maxime Ripard
     

19 Aug, 2019

1 commit