mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
|
From da439eed06ff6806f22341ab0468226afc555305 Mon Sep 17 00:00:00 2001
|
||
|
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
|
||
|
Date: Thu, 29 Aug 2024 14:27:00 +0200
|
||
|
Subject: [PATCH] arm64: dts: rockchip: add Mask Rom key on NanoPC-T6
|
||
|
|
||
|
Mask Rom key is connected to SARADC and can be read from OS.
|
||
|
|
||
|
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
|
||
|
Link: https://lore.kernel.org/r/20240829-friendlyelec-nanopc-t6-lts-v6-9-edff247e8c02@linaro.org
|
||
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
||
|
---
|
||
|
.../arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi | 15 +++++++++++++++
|
||
|
1 file changed, 15 insertions(+)
|
||
|
|
||
|
--- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
|
||
|
+++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
|
||
|
@@ -8,6 +8,7 @@
|
||
|
/dts-v1/;
|
||
|
|
||
|
#include <dt-bindings/gpio/gpio.h>
|
||
|
+#include <dt-bindings/input/input.h>
|
||
|
#include <dt-bindings/pinctrl/rockchip.h>
|
||
|
#include <dt-bindings/usb/pd.h>
|
||
|
#include "rk3588.dtsi"
|
||
|
@@ -21,6 +22,20 @@
|
||
|
mmc1 = &sdmmc;
|
||
|
};
|
||
|
|
||
|
+ adc-keys-0 {
|
||
|
+ compatible = "adc-keys";
|
||
|
+ io-channels = <&saradc 0>;
|
||
|
+ io-channel-names = "buttons";
|
||
|
+ keyup-threshold-microvolt = <1800000>;
|
||
|
+ poll-interval = <100>;
|
||
|
+
|
||
|
+ button-maskrom {
|
||
|
+ label = "Mask Rom";
|
||
|
+ linux,code = <KEY_SETUP>;
|
||
|
+ press-threshold-microvolt = <2000>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
chosen {
|
||
|
stdout-path = "serial2:1500000n8";
|
||
|
};
|