mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
arm64: tegra: Add gpio-keys on Jetson Xavier
The power and force recovery buttons found on Jetson Xavier are hooked up to two Tegra GPIOs. The power button can also function as a wake-up source. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
4d286331bd
commit
e47ac50885
@ -1,6 +1,9 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include <dt-bindings/input/linux-event-codes.h>
|
||||||
|
#include <dt-bindings/input/gpio-keys.h>
|
||||||
|
|
||||||
#include "tegra194-p2888.dtsi"
|
#include "tegra194-p2888.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
@ -54,6 +57,30 @@ fan: fan {
|
|||||||
#cooling-cells = <2>;
|
#cooling-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio-keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
|
||||||
|
force-recovery {
|
||||||
|
label = "Force Recovery";
|
||||||
|
gpios = <&gpio TEGRA194_MAIN_GPIO(G, 0)
|
||||||
|
GPIO_ACTIVE_LOW>;
|
||||||
|
linux,input-type = <EV_KEY>;
|
||||||
|
linux,code = <BTN_1>;
|
||||||
|
debounce-interval = <10>;
|
||||||
|
};
|
||||||
|
|
||||||
|
power {
|
||||||
|
label = "Power";
|
||||||
|
gpios = <&gpio_aon TEGRA194_AON_GPIO(EE, 4)
|
||||||
|
GPIO_ACTIVE_LOW>;
|
||||||
|
linux,input-type = <EV_KEY>;
|
||||||
|
linux,code = <KEY_POWER>;
|
||||||
|
debounce-interval = <10>;
|
||||||
|
wakeup-event-action = <EV_ACT_ASSERTED>;
|
||||||
|
wakeup-source;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
thermal-zones {
|
thermal-zones {
|
||||||
cpu {
|
cpu {
|
||||||
polling-delay = <0>;
|
polling-delay = <0>;
|
||||||
|
Loading…
Reference in New Issue
Block a user