* [PATCH] arm64: dts: rockchip: Add maskrom button to R5S + R5C
@ 2025-07-16 8:33 ` Diederik de Haas
0 siblings, 0 replies; 4+ messages in thread
From: Diederik de Haas @ 2025-07-16 8:33 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
Cc: Dragan Simic, Johan Jonker, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel, Diederik de Haas
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>
---
.../arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
index f4d042bdd328..e3f44ea4eabe 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
@@ -25,6 +25,20 @@ chosen: chosen {
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";
--
2.50.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] arm64: dts: rockchip: Add maskrom button to R5S + R5C
@ 2025-07-16 8:33 ` Diederik de Haas
0 siblings, 0 replies; 4+ messages in thread
From: Diederik de Haas @ 2025-07-16 8:33 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
Cc: Dragan Simic, Johan Jonker, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel, Diederik de Haas
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>
---
.../arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
index f4d042bdd328..e3f44ea4eabe 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
@@ -25,6 +25,20 @@ chosen: chosen {
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";
--
2.50.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: Add maskrom button to R5S + R5C
2025-07-16 8:33 ` Diederik de Haas
@ 2025-07-17 8:55 ` Heiko Stuebner
-1 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2025-07-17 8:55 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Diederik de Haas
Cc: Heiko Stuebner, Dragan Simic, Johan Jonker, devicetree,
linux-arm-kernel, linux-rockchip, linux-kernel
On Wed, 16 Jul 2025 10:33:35 +0200, Diederik de Haas wrote:
> 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'.
>
>
Applied, thanks!
And added a NanoPi before the "R5S + R5C"
[1/1] arm64: dts: rockchip: Add maskrom button to R5S + R5C
commit: 07e04c071a35abe12957b575cd1453ccafc02eb6
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: Add maskrom button to R5S + R5C
@ 2025-07-17 8:55 ` Heiko Stuebner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2025-07-17 8:55 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Diederik de Haas
Cc: Heiko Stuebner, Dragan Simic, Johan Jonker, devicetree,
linux-arm-kernel, linux-rockchip, linux-kernel
On Wed, 16 Jul 2025 10:33:35 +0200, Diederik de Haas wrote:
> 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'.
>
>
Applied, thanks!
And added a NanoPi before the "R5S + R5C"
[1/1] arm64: dts: rockchip: Add maskrom button to R5S + R5C
commit: 07e04c071a35abe12957b575cd1453ccafc02eb6
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-17 9:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 8:33 [PATCH] arm64: dts: rockchip: Add maskrom button to R5S + R5C Diederik de Haas
2025-07-16 8:33 ` Diederik de Haas
2025-07-17 8:55 ` Heiko Stuebner
2025-07-17 8:55 ` Heiko Stuebner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.