]> git.baikalelectronics.ru Git - kernel.git/commit
Input: pinephone-keyboard - support the proxied I2C bus
authorSamuel Holland <samuel@sholland.org>
Sat, 1 Oct 2022 05:53:23 +0000 (22:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Oct 2022 05:26:52 +0000 (22:26 -0700)
commit34388ba5dcd6627e83db1810d167e1240c3826e0
tree0db81d38950db5ba0f659c48be2069a00fe4a140
parentc1a7352d0d0f260c0e2ee14e65e2537fea5550ec
Input: pinephone-keyboard - support the proxied I2C bus

The PinePhone keyboard case contains a battery managed by an integrated
power bank IC. The power bank IC communicates over I2C, and the keyboard
MCU firmware provides an interface to read and write its registers.
Let's use this interface to implement a SMBus adapter, so we can reuse
the driver for the power bank IC.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220618165747.55709-4-samuel@sholland.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/pinephone-keyboard.c