]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: Move copy-key to TSx33 board files
authorHeiko Stuebner <heiko@sntech.de>
Sun, 4 Jan 2026 19:14:46 +0000 (20:14 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 13 Jan 2026 13:51:34 +0000 (14:51 +0100)
The copy-key is not present on all device variants, so move it to
the individual boards that have this key.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260104191448.2693309-4-heiko@sntech.de
arch/arm64/boot/dts/rockchip/rk3568-qnap-ts233.dts
arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts
arch/arm64/boot/dts/rockchip/rk3568-qnap-tsx33.dtsi

index e76502180788ef9d03ad44c8e14ce048c1303a1f..52b741376ef5abc980c6b2621d3498da7f8d98a6 100644 (file)
        };
 };
 
+&keys {
+               pinctrl-names = "default";
+               pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>;
+
+               key-copy {
+                       label = "copy";
+                       gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_COPY>;
+               };
+};
+
 &leds {
        led-1 {
                color = <LED_COLOR_ID_GREEN>;
index 708e7f1f8d0d2e282135cd85cc01bd48858e0aac..7d2aedfe616def42163e3680321f3b029b9b3766 100644 (file)
        };
 };
 
+&keys {
+               pinctrl-names = "default";
+               pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>;
+
+               key-copy {
+                       label = "copy";
+                       gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_COPY>;
+               };
+};
+
 &leds {
        led-1 {
                color = <LED_COLOR_ID_GREEN>;
index 482d8584ec889bf458a04323b952aca2ae6d2aa2..cca7b7d0685f02491398f3b70a10113ab61f24ef 100644 (file)
                stdout-path = "serial2:115200n8";
        };
 
-       keys {
+       keys: keys {
                compatible = "gpio-keys";
-               pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>;
+               pinctrl-0 = <&reset_button_pin>;
                pinctrl-names = "default";
 
-               key-copy {
-                       label = "copy";
-                       gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_COPY>;
-               };
-
                key-reset {
                        label = "reset";
                        gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>;