Skip to content

Commit 9e1897c

Browse files
jwrdegoedechanwoochoi
authored andcommitted
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/[email protected]/ Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 47ac09b commit 9e1897c

File tree

3 files changed

+512
-0
lines changed

3 files changed

+512
-0
lines changed

drivers/extcon/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ config EXTCON_INTEL_MRFLD
7575
Say Y here to enable extcon support for charger detection / control
7676
on the Intel Merrifield Basin Cove PMIC.
7777

78+
config EXTCON_LC824206XA
79+
tristate "LC824206XA extcon Support"
80+
depends on I2C
81+
depends on POWER_SUPPLY
82+
help
83+
Say Y here to enable support for the ON Semiconductor LC824206XA
84+
microUSB switch and accessory detector chip. The LC824206XA is a USB
85+
port accessory detector and switch. The LC824206XA is fully controlled
86+
using I2C and enables USB data, stereo and mono audio, video,
87+
microphone and UART data to use a common connector port.
88+
7889
config EXTCON_MAX14577
7990
tristate "Maxim MAX14577/77836 EXTCON Support"
8091
depends on MFD_MAX14577

drivers/extcon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_EXTCON_GPIO) += extcon-gpio.o
1212
obj-$(CONFIG_EXTCON_INTEL_INT3496) += extcon-intel-int3496.o
1313
obj-$(CONFIG_EXTCON_INTEL_CHT_WC) += extcon-intel-cht-wc.o
1414
obj-$(CONFIG_EXTCON_INTEL_MRFLD) += extcon-intel-mrfld.o
15+
obj-$(CONFIG_EXTCON_LC824206XA) += extcon-lc824206xa.o
1516
obj-$(CONFIG_EXTCON_MAX14577) += extcon-max14577.o
1617
obj-$(CONFIG_EXTCON_MAX3355) += extcon-max3355.o
1718
obj-$(CONFIG_EXTCON_MAX77693) += extcon-max77693.o

0 commit comments

Comments
 (0)