]> www.infradead.org Git - users/jedix/linux-maple.git/commit
extcon: Add LC824206XA microUSB switch driver
authorHans de Goede <hdegoede@redhat.com>
Sun, 12 May 2024 20:40:19 +0000 (22:40 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 4 Sep 2024 15:43:08 +0000 (00:43 +0900)
commit9e1897cb9568892128149a73974aca796a04d1b6
tree34472bfdbaedb583a8c9f3fa39a3160d14ad8681
parent47ac09b91befbb6a235ab620c32af719f8208399
extcon: Add LC824206XA microUSB switch driver

Add a new driver for the ON Semiconductor LC824206XA microUSB switch and
accessory detector chip.

ON Semiconductor has an "Advance Information" datasheet available
(ENA2222-D.PDF), but no full datasheet. So there is no documentation
available for the registers.

This driver is based on the register info from the extcon-fsa9285.c driver,
from the Lollipop Android sources for the Lenovo Yoga Tablet 2 (Pro)
830 / 1050 / 1380 models. Note despite the name this is actually a driver
for the LC824206XA not the FSA9285.

This has only been tested on a Lenovo Yoga Tablet 2 Pro 1380 and
using the driver on other setups may require additional work.

So far this driver is only used on x86/ACPI (non devicetree) devs.
Therefor there is no devicetree bindings documentation for this driver's
"onnn,enable-miclr-for-dcp" property since this is not used in actual
devicetree files and the dt bindings maintainers have requested properties
with no actual dt users to _not_ be added to the dt bindings.

Link: https://lore.kernel.org/lkml/20240512204019.58121-1-hdegoede@redhat.com/
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/Kconfig
drivers/extcon/Makefile
drivers/extcon/extcon-lc824206xa.c [new file with mode: 0644]