mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 00:39:30 -04:00
ARM: dts: renesas: genmai: Define keyboard switch
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20240921114813.4124-12-wsa+renesas@sang-engineering.com Link: https://lore.kernel.org/20240927095414.10241-8-wsa+renesas@sang-engineering.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
committed by
Geert Uytterhoeven
parent
ac0dd586a4
commit
f3b1d5c46a
@@ -9,6 +9,7 @@
|
||||
/dts-v1/;
|
||||
#include "r7s72100.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
|
||||
|
||||
/ {
|
||||
@@ -53,6 +54,21 @@ partition@4000000 {
|
||||
};
|
||||
};
|
||||
|
||||
keyboard {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&keyboard_pins>;
|
||||
|
||||
key-1 {
|
||||
/* JP3 must be set to 1-2 (default) */
|
||||
interrupts-extended = <&irqc 6 IRQ_TYPE_EDGE_BOTH>;
|
||||
linux,code = <KEY_1>;
|
||||
label = "SW6,SW7";
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
status = "okay";
|
||||
compatible = "gpio-leds";
|
||||
@@ -201,6 +217,11 @@ i2c2_pins: i2c2 {
|
||||
pinmux = <RZA1_PINMUX(1, 4, 1)>, <RZA1_PINMUX(1, 5, 1)>;
|
||||
};
|
||||
|
||||
keyboard_pins: keyboard {
|
||||
/* P3_1 as IRQ6 */
|
||||
pinmux = <RZA1_PINMUX(3, 1, 3)>;
|
||||
};
|
||||
|
||||
scif2_pins: serial2 {
|
||||
/* P3_0 as TxD2; P3_2 as RxD2 */
|
||||
pinmux = <RZA1_PINMUX(3, 0, 6)>, <RZA1_PINMUX(3, 2, 4)>;
|
||||
|
||||
Reference in New Issue
Block a user