mbox series

[RFC,0/2] dt-bindings: input: gpio-keys: rework matching children

Message ID 20220603101601.542054-1-krzysztof.kozlowski@linaro.org (mailing list archive)
Headers show
Series dt-bindings: input: gpio-keys: rework matching children | expand

Message

Krzysztof Kozlowski June 3, 2022, 10:15 a.m. UTC
Hi,

Currently the gpio-keys schema allows any property to be present, even
undocumented.  Narrow the pattern for children to require specific key naming like:

    gpio-keys {
        compatible = "gpio-keys";

        // "up" is wrong
        key-up {
            label = "GPIO Key UP";
            linux,code = <103>;
            gpios = <&gpio1 0 1>;
        };
    };

This will cause many, many DTS warnings, which I can fix. But before I start
such big work, let's agree whether the approach is correct.

Best regards,
Krzysztof

Krzysztof Kozlowski (2):
  dt-bindings: input: gpio-keys: enforce node names to match all
    properties
  dt-bindings: input: gpio-keys: document label and autorepeat
    properties

 .../devicetree/bindings/input/gpio-keys.yaml  | 177 +++++++++---------
 1 file changed, 91 insertions(+), 86 deletions(-)