Skip to content

Commit 1740696

Browse files
smaeuldtor
authored andcommitted
Input: pinephone-keyboard - add PinePhone keyboard driver
The official Pine64 PinePhone keyboard case contains a matrix keypad and a MCU which runs a libre firmware. Add support for its I2C interface. Signed-off-by: Samuel Holland <samuel@sholland.org> Link: https://lore.kernel.org/r/20220618165747.55709-3-samuel@sholland.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 7502426 commit 1740696

File tree

4 files changed

+412
-0
lines changed

4 files changed

+412
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16186,6 +16186,12 @@ F: Documentation/devicetree/bindings/pinctrl/sunplus,*
1618616186
F: drivers/pinctrl/sunplus/
1618716187
F: include/dt-bindings/pinctrl/sppctl*.h
1618816188

16189+
PINE64 PINEPHONE KEYBOARD DRIVER
16190+
M: Samuel Holland <samuel@sholland.org>
16191+
S: Supported
16192+
F: Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml
16193+
F: drivers/input/keyboard/pinephone-keyboard.c
16194+
1618916195
PKTCDVD DRIVER
1619016196
M: linux-block@vger.kernel.org
1619116197
S: Orphan

drivers/input/keyboard/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,19 @@ config KEYBOARD_OPENCORES
527527
To compile this driver as a module, choose M here; the
528528
module will be called opencores-kbd.
529529

530+
config KEYBOARD_PINEPHONE
531+
tristate "Pine64 PinePhone Keyboard"
532+
depends on I2C && REGULATOR
533+
select CRC8
534+
select INPUT_MATRIXKMAP
535+
help
536+
Say Y here to enable support for the keyboard in the Pine64 PinePhone
537+
keyboard case. This driver supports the FLOSS firmware available at
538+
https://megous.com/git/pinephone-keyboard/
539+
540+
To compile this driver as a module, choose M here; the
541+
module will be called pinephone-keyboard.
542+
530543
config KEYBOARD_PXA27x
531544
tristate "PXA27x/PXA3xx keypad support"
532545
depends on PXA27x || PXA3xx || ARCH_MMP

drivers/input/keyboard/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ obj-$(CONFIG_KEYBOARD_NSPIRE) += nspire-keypad.o
5252
obj-$(CONFIG_KEYBOARD_OMAP) += omap-keypad.o
5353
obj-$(CONFIG_KEYBOARD_OMAP4) += omap4-keypad.o
5454
obj-$(CONFIG_KEYBOARD_OPENCORES) += opencores-kbd.o
55+
obj-$(CONFIG_KEYBOARD_PINEPHONE) += pinephone-keyboard.o
5556
obj-$(CONFIG_KEYBOARD_PMIC8XXX) += pmic8xxx-keypad.o
5657
obj-$(CONFIG_KEYBOARD_PXA27x) += pxa27x_keypad.o
5758
obj-$(CONFIG_KEYBOARD_PXA930_ROTARY) += pxa930_rotary.o

0 commit comments

Comments
 (0)