summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/gpio-keys.yaml
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2022-05-27 21:48:17 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-05-27 21:49:32 -0700
commit4fda8a2df83ab25d2870997ddff2a4f67aa734c0 (patch)
treeba93a52c6f2d295ed484fb361112bb936f5907cf /Documentation/devicetree/bindings/input/gpio-keys.yaml
parent433302dd8772fc4fe2b9ddcdb42f6a378317c665 (diff)
dt-bindings: input: use generic node names
Devicetree specification expects nodes to have generic names, if possible, so replace custom ones with something generic. For gpio-keys, the more popular format is "key-xxx" instead of "xxx-key", so choose the first one. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Jeff LaBundy <jeff@labundy.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220524093136.7980-1-krzysztof.kozlowski@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/gpio-keys.yaml')
-rw-r--r--Documentation/devicetree/bindings/input/gpio-keys.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/input/gpio-keys.yaml b/Documentation/devicetree/bindings/input/gpio-keys.yaml
index 7fe1966ea28a..93f601c58984 100644
--- a/Documentation/devicetree/bindings/input/gpio-keys.yaml
+++ b/Documentation/devicetree/bindings/input/gpio-keys.yaml
@@ -127,13 +127,13 @@ examples:
compatible = "gpio-keys";
autorepeat;
- up {
+ key-up {
label = "GPIO Key UP";
linux,code = <103>;
gpios = <&gpio1 0 1>;
};
- down {
+ key-down {
label = "GPIO Key DOWN";
linux,code = <108>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;