dt-bindings: input: gpio-keys: Fix interrupts in example
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 3 Dec 2021 13:35:06 +0000 (14:35 +0100)
committerRob Herring <robh@kernel.org>
Mon, 6 Dec 2021 20:16:59 +0000 (14:16 -0600)
commitc4cb38b54b365edafb351e5371b9ae9eebf8e805
tree3937ef4c0d3c51e31f616a0f497e0e1343d9c4ed
parent96db48c9d777a73a33b1d516c5cfed7a417a5f40
dt-bindings: input: gpio-keys: Fix interrupts in example

The "interrupts" property in the example looks weird:
  - The type is not in the last cell,
  - Level interrupts don't work well with gpio-keys, as they keep the
    interrupt asserted as long as the key is pressed, causing an
    interrupt storm.

Use a more realistic falling-edge interrupt instead.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/47ecd2d8efcf09f8ab47de87a7bcfafc82208776.1638538079.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/input/gpio-keys.yaml