[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240725094511.2605340-1-wmx129674@126.com>
Date: Thu, 25 Jul 2024 17:45:11 +0800
From: wmx129674@....com
To: lgirdwood@...il.com,
broonie@...nel.org
Cc: linux-kernel@...r.kernel.org,
ARC-MX <wmx129674@....com>
Subject: [PATCH] drivers:regulator:fan53555:add new device chip id
From: ARC-MX <wmx129674@....com>
drivers:regulator:fan53555
When I use fan53555, I see an error:
FAN53555-regulator 0-0060: Chip ID 0 with rev 12 not supported!
So I fixed this bug
Signed-off-by: ARC-MX <wmx129674@....com>
---
drivers/regulator/fan53555.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c
index 17c9bf204..c8a2e9405 100644
--- a/drivers/regulator/fan53555.c
+++ b/drivers/regulator/fan53555.c
@@ -113,6 +113,7 @@ enum {
enum {
FAN53555_CHIP_REV_00 = 0x3,
FAN53555_CHIP_REV_13 = 0xf,
+ FAN53555_CHIP_REV_23 = 0xc,
};
enum {
@@ -301,6 +302,10 @@ static int fan53555_voltages_setup_fairchild(struct fan53555_device_info *di)
di->vsel_min = 800000;
di->vsel_step = 10000;
break;
+ case FAN53555_CHIP_REV_23:
+ di->vsel_min = 600000;
+ di->vsel_step = 12500;
+ break;
default:
dev_err(di->dev,
"Chip ID %d with rev %d not supported!\n",
--
2.25.1
Powered by blists - more mailing lists