]> 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)
commite5ac7c6c2c4da7ae365bc36ebf47295ff1101dfc
tree0db81d38950db5ba0f659c48be2069a00fe4a140
parentc50583046bc81604442a7392ce6ab2a04915d95b
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