arm64: tegra: Redefine force recovery key on Jetson AGX Xavier
authorThierry Reding <treding@nvidia.com>
Fri, 8 Nov 2019 15:36:40 +0000 (16:36 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Jan 2020 15:56:47 +0000 (16:56 +0100)
The current BTN_1 code associated with the force-recovery key is not a
valid code for EV_KEY type input devices. This causes errors in the
libinput debug-events command.

There is no system level action that maps to the force-recovery key on
Jetson AGX Xavier, so assign it the KEY_SLEEP action, which at least
makes it do something marginally useful.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts

index 353a6a2..985e7d8 100644 (file)
                        gpios = <&gpio TEGRA194_MAIN_GPIO(G, 0)
                                       GPIO_ACTIVE_LOW>;
                        linux,input-type = <EV_KEY>;
-                       linux,code = <BTN_1>;
+                       linux,code = <KEY_SLEEP>;
                        debounce-interval = <10>;
                };