]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Add maskrom button to NanoPi R5S + R5C
authorDiederik de Haas <didi.debian@cknow.org>
Wed, 16 Jul 2025 08:33:35 +0000 (10:33 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 17 Jul 2025 08:52:16 +0000 (10:52 +0200)
Both the R5S and R5C have a MASKROM button connected via saradc.
For both the R5S as the R5C it's described on page 9 of their
respective schematic, identified as 'Recovery'.

Signed-off-by: Diederik de Haas <didi.debian@cknow.org>
Link: https://lore.kernel.org/r/20250716083355.327451-1-didi.debian@cknow.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi

index f4d042bdd328835f79bd462265a84c689ee7c298..e3f44ea4eabe771a3257f222ebf744b5ed1ccf36 100644 (file)
                stdout-path = "serial2:1500000n8";
        };
 
+       adc-keys {
+               compatible = "adc-keys";
+               io-channels = <&saradc 0>;
+               io-channel-names = "buttons";
+               keyup-threshold-microvolt = <1800000>;
+               poll-interval = <100>;
+
+               button-maskrom {
+                       label = "MASKROM";
+                       linux,code = <KEY_SETUP>;
+                       press-threshold-microvolt = <0>;
+               };
+       };
+
        hdmi-con {
                compatible = "hdmi-connector";
                type = "a";