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)
commit63c5eb157cfdb6f20387c4492d27d7248e239e85
tree0db81d38950db5ba0f659c48be2069a00fe4a140
parent17406967ec0ff8e14737ee7a073c7a45fc8210f1
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