regulator: fan53555: add tcs4526
authorRudi Heitbaum <rudi@heitbaum.com>
Wed, 2 Jun 2021 11:29:47 +0000 (11:29 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 4 Jun 2021 14:27:10 +0000 (15:27 +0100)
commit5eee5eced95f1b35c8567688ed52932b7e58deee
treeb762c6174ac4b0822bb64fd3fc777093261d1b15
parenta747070e9b629eeb70118651dfbd500bf8bb5ebe
regulator: fan53555: add tcs4526

For rk3399pro boards the tcs4526 regulator supports the vdd_gpu
regulator. The tcs4526 regulator has a chip id of <0>.
Add the compatibile tcs,tcs4526

without this patch, the dmesg output is:
  fan53555-regulator 0-0010: Chip ID 0 not supported!
  fan53555-regulator 0-0010: Failed to setup device!
  fan53555-regulator: probe of 0-0010 failed with error -22
with this patch, the dmesg output is:
  vdd_gpu: supplied by vcc5v0_sys

The regulators are described as:
- Dedicated power management IC TCS4525
- Lithium battery protection chip TCS4526

This has been tested with a Radxa Rock Pi N10.

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Link: https://lore.kernel.org/r/20210602112943.GA119@5f9be87369f8
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fan53555.c