extcon: sm5502: Add support for SM5504
authorStephan Gerhold <stephan@gerhold.net>
Thu, 3 Jun 2021 08:52:22 +0000 (10:52 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 21 Jun 2021 09:28:01 +0000 (18:28 +0900)
commitd97c0ff5a124f48109c4b32d6471c7bccd497009
treeb26e2c54f2ecaa4ce4aeb3128c3e8ec58043ccbc
parentf33c056dea2ea6633d40d36371457380d372c607
extcon: sm5502: Add support for SM5504

SM5504 is another MUIC from Silicon Mitus that is fairly similar
to SM5502. They seem to use the same register set, but:

  - SM5504 has some additional bits in SM5502_REG_CONTROL
  - SM5504 has a quite different set of interrupts
  - SM5504 reports USB OTG as dev_type1 = BIT(0) instead of BIT(7)

Overall it's minor and we can support this by defining a separate
struct sm5502_type for SM5504.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/Kconfig
drivers/extcon/extcon-sm5502.c
drivers/extcon/extcon-sm5502.h