public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Add MAX14526 MUIC driver
@ 2023-04-20 16:23 Svyatoslav Ryhel
  2023-04-20 16:23 ` [PATCH v2 1/1] misc: extcon: add MAX14526 MUIC support Svyatoslav Ryhel
  0 siblings, 1 reply; 2+ messages in thread
From: Svyatoslav Ryhel @ 2023-04-20 16:23 UTC (permalink / raw)
  To: Marek Vasut, Stefan Roese, Simon Glass, Svyatoslav Ryhel; +Cc: u-boot

MAX14526 MUIC is used by LG P880/P895 which are currently
in the process of merging.

Unfortunately U-Boot has no extcon driver model so I used
a MISC model for now.

MAX14526 is a powerful extcon device which has the ability to
accurately determine plugged devices. In this implementation
muic can be configured to represent 3 modes: CP-USB/UART and
AP-USB. Unfortunately AP-UART was disabled on P880/P895.
Additionally the driver configures some stuff required by
the charger.

---
Changes from v1:
- used log_* instead of printf
- log messages made simpler
---

Svyatoslav Ryhel (1):
  misc: extcon: add MAX14526 MUIC support

 drivers/misc/Kconfig                  |   2 +
 drivers/misc/Makefile                 |   1 +
 drivers/misc/extcon/Kconfig           |   8 ++
 drivers/misc/extcon/Makefile          |   2 +
 drivers/misc/extcon/extcon-max14526.c | 151 ++++++++++++++++++++++++++
 5 files changed, 164 insertions(+)
 create mode 100644 drivers/misc/extcon/Kconfig
 create mode 100644 drivers/misc/extcon/Makefile
 create mode 100644 drivers/misc/extcon/extcon-max14526.c

-- 
2.37.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-20 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20 16:23 [PATCH v2 0/1] Add MAX14526 MUIC driver Svyatoslav Ryhel
2023-04-20 16:23 ` [PATCH v2 1/1] misc: extcon: add MAX14526 MUIC support Svyatoslav Ryhel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox