summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-11-15 13:31:55 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-11-15 13:31:55 -0800
commite147c68fea1594901975ad0c9777a6e42077b39e (patch)
tree7e52a1d6bafe349e31d9e0007189f237eafbd392
parent7893d906220694e2c8a13dfb52ec85b853cbbf7b (diff)
parentfd89c52811a4c0754795199f86e0889bee7a70a3 (diff)
Merge tag 'regulator-fix-v7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown: "A small change adding support for the Silergy SYM827 which is a variation on the FAN53555 so needs some quirk data and a new DT compatible" * tag 'regulator-fix-v7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: fan53555: Add support for Silergy SYM827 regulator: dt-bindings: fan53555: Add Silergy SYM827
-rw-r--r--Documentation/devicetree/bindings/regulator/fcs,fan53555.yaml1
-rw-r--r--drivers/regulator/fan53555.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/fcs,fan53555.yaml b/Documentation/devicetree/bindings/regulator/fcs,fan53555.yaml
index b35b8f365b0f..1bc22eb43dd9 100644
--- a/Documentation/devicetree/bindings/regulator/fcs,fan53555.yaml
+++ b/Documentation/devicetree/bindings/regulator/fcs,fan53555.yaml
@@ -20,6 +20,7 @@ properties:
- fcs,fan53526
- rockchip,rk8600
- rockchip,rk8602
+ - silergy,sym827
- silergy,syr827
- silergy,syr828
- tcs,tcs4525
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c
index f3fd5a988a1f..374cd1caa058 100644
--- a/drivers/regulator/fan53555.c
+++ b/drivers/regulator/fan53555.c
@@ -118,6 +118,7 @@ enum {
};
enum {
+ SILERGY_SYM827 = 1,
SILERGY_SYR82X = 8,
SILERGY_SYR83X = 9,
};
@@ -412,6 +413,10 @@ static int fan53555_voltages_setup_silergy(struct fan53555_device_info *di)
{
/* Init voltage range and step */
switch (di->chip_id) {
+ case SILERGY_SYM827:
+ di->vsel_min = 600000;
+ di->vsel_step = 12500;
+ break;
case SILERGY_SYR82X:
case SILERGY_SYR83X:
di->vsel_min = 712500;
@@ -685,6 +690,9 @@ static const struct of_device_id __maybe_unused fan53555_dt_ids[] = {
.compatible = "rockchip,rk8602",
.data = (void *)RK8602_VENDOR_ROCKCHIP
}, {
+ .compatible = "silergy,sym827",
+ .data = (void *)FAN53555_VENDOR_SILERGY,
+ }, {
.compatible = "silergy,syr827",
.data = (void *)FAN53555_VENDOR_SILERGY,
}, {
@@ -794,6 +802,9 @@ static const struct i2c_device_id fan53555_id[] = {
.name = "rk8602",
.driver_data = RK8602_VENDOR_ROCKCHIP
}, {
+ .name = "sym827",
+ .driver_data = FAN53555_VENDOR_SILERGY
+ }, {
.name = "syr827",
.driver_data = FAN53555_VENDOR_SILERGY
}, {