diff options
author | Srinivas Neeli <srinivas.neeli@xilinx.com> | 2023-05-02 15:35:38 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2023-05-16 14:50:14 +0200 |
commit | 4a7f7eadd7f740c69cdc0a041e0e589d25ddfbbe (patch) | |
tree | d93042b73e5ed7be048fa9f2d789016f37747878 /arch/arm64 | |
parent | e05d2f969cb558da5c74c1e5c6aaf506806f4563 (diff) | |
download | linux-stable-4a7f7eadd7f740c69cdc0a041e0e589d25ddfbbe.tar.gz linux-stable-4a7f7eadd7f740c69cdc0a041e0e589d25ddfbbe.tar.bz2 linux-stable-4a7f7eadd7f740c69cdc0a041e0e589d25ddfbbe.zip |
arm64: zynqmp: Add linux,code for gpio button
BTN_MISC looks like the most reasonable option for this button.
Button is used by firmware to indicate (after reset, power up) that user
wants to do firmware upgrade via firmware update utility.
For bootloader or OS is this just user button which is worth to have it
mapped.
Also button can be used as a wakeup source and pressing it for more time
can generate more chars that's why also adding wakeup-source and autorepeat
properties.
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/4e20661f43b1fb8432fa5fcda5c1cb50d0a27475.1683034376.git.michal.simek@amd.com
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts index 54cf2e817537..00c0455635b8 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts @@ -55,6 +55,9 @@ key-fwuen { label = "fwuen"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + linux,code = <BTN_MISC>; + wakeup-source; + autorepeat; }; }; |