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

Krzysztof Kozlowski posted 2 patches 3 years, 10 months ago
There is a newer version of this series
.../devicetree/bindings/input/gpio-keys.yaml  | 177 +++++++++---------
1 file changed, 91 insertions(+), 86 deletions(-)
[RFC PATCH 0/2] dt-bindings: input: gpio-keys: rework matching children
Posted by Krzysztof Kozlowski 3 years, 10 months ago
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(-)

-- 
2.34.1