Skip to content

Commit a81a2d2

Browse files
committed
arm64: dts: rockchip: Move copy-key to TSx33 board files
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
1 parent 5a16e13 commit a81a2d2

3 files changed

Lines changed: 24 additions & 8 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3568-qnap-ts233.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@
5151
};
5252
};
5353

54+
&keys {
55+
pinctrl-names = "default";
56+
pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>;
57+
58+
key-copy {
59+
label = "copy";
60+
gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
61+
linux,code = <KEY_COPY>;
62+
};
63+
};
64+
5465
&leds {
5566
led-1 {
5667
color = <LED_COLOR_ID_GREEN>;

arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@
6161
};
6262
};
6363

64+
&keys {
65+
pinctrl-names = "default";
66+
pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>;
67+
68+
key-copy {
69+
label = "copy";
70+
gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
71+
linux,code = <KEY_COPY>;
72+
};
73+
};
74+
6475
&leds {
6576
led-1 {
6677
color = <LED_COLOR_ID_GREEN>;

arch/arm64/boot/dts/rockchip/rk3568-qnap-tsx33.dtsi

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,11 @@
1212
stdout-path = "serial2:115200n8";
1313
};
1414

15-
keys {
15+
keys: keys {
1616
compatible = "gpio-keys";
17-
pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>;
17+
pinctrl-0 = <&reset_button_pin>;
1818
pinctrl-names = "default";
1919

20-
key-copy {
21-
label = "copy";
22-
gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
23-
linux,code = <KEY_COPY>;
24-
};
25-
2620
key-reset {
2721
label = "reset";
2822
gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>;

0 commit comments

Comments
 (0)