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

From: Krzysztof Kozlowski
Date: Fri Jun 03 2022 - 06:16:22 EST


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