Skip to content

Commit c698bba

Browse files
committed
wip: adc gpio buttons
1 parent 2e362a2 commit c698bba

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-nanopi4-common.dtsi

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,33 @@
330330
gpio-key,wakeup = <1>;
331331
debounce-interval = <100>;
332332
};
333+
334+
button@1 {
335+
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; /* GPIO1_A1 */
336+
linux,code = <KEY_F1>;
337+
label = "GPIO Button 1";
338+
linux,input-type = <1>;
339+
gpio-key,wakeup = <1>;
340+
debounce-interval = <100>;
341+
};
342+
343+
button@2 {
344+
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; /* GPIO1_A3 */
345+
linux,code = <KEY_F2>;
346+
label = "GPIO Button 2";
347+
linux,input-type = <1>;
348+
gpio-key,wakeup = <1>;
349+
debounce-interval = <100>;
350+
};
351+
352+
button@3 {
353+
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; /* GPIO1_A4 */
354+
linux,code = <KEY_F3>;
355+
label = "GPIO Button 3";
356+
linux,input-type = <1>;
357+
gpio-key,wakeup = <1>;
358+
debounce-interval = <100>;
359+
};
333360
};
334361

335362
adc_keys: adc-keys {

0 commit comments

Comments
 (0)