diff options
author | Justin Klaassen <justin@tidylabs.net> | 2025-05-23 16:53:37 +0000 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2025-06-06 17:21:54 +0800 |
commit | 81a26131bdf5d094c9d2cda89a06dca90f9084a1 (patch) | |
tree | 6823e6518f494924d86763a434c31ae12d9f69f2 | |
parent | 4aa110d73eeb674c6fbfece6c2c3582b1784b396 (diff) |
rockchip: io-domain: Add debug logging for regulators during probe
Log the value of the regulators during initialization of the IO-domain
driver to aid in debugging GPIO voltage configuration problems.
Signed-off-by: Justin Klaassen <justin@tidylabs.net>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r-- | drivers/misc/rockchip-io-domain.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/misc/rockchip-io-domain.c b/drivers/misc/rockchip-io-domain.c index 025b6049a9f..a0573c52193 100644 --- a/drivers/misc/rockchip-io-domain.c +++ b/drivers/misc/rockchip-io-domain.c @@ -344,8 +344,10 @@ static int rockchip_iodomain_probe(struct udevice *dev) continue; ret = device_get_supply_regulator(dev, supply_name, ®); - if (ret) + if (ret) { + dev_dbg(dev, "%s: Regulator not found\n", supply_name); continue; + } ret = regulator_autoset(reg); if (ret && ret != -EALREADY && ret != -EMEDIUMTYPE && @@ -353,6 +355,7 @@ static int rockchip_iodomain_probe(struct udevice *dev) continue; uV = regulator_get_value(reg); + dev_dbg(dev, "%s: Regulator %s at %d uV\n", supply_name, reg->name, uV); if (uV <= 0) continue; |