mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
Merge remote-tracking branches 'regulator/topic/88pm8607', 'regulator/topic/arizona', 'regulator/topic/cleanup' and 'regulator/topic/da9062' into regulator-next
This commit is contained in:
@@ -404,7 +404,7 @@ static int pm8607_regulator_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_device_id pm8607_regulator_driver_ids[] = {
|
||||
static const struct platform_device_id pm8607_regulator_driver_ids[] = {
|
||||
{
|
||||
.name = "88pm860x-regulator",
|
||||
.driver_data = 0,
|
||||
|
||||
@@ -178,6 +178,16 @@ config REGULATOR_DA9055
|
||||
This driver can also be built as a module. If so, the module
|
||||
will be called da9055-regulator.
|
||||
|
||||
config REGULATOR_DA9062
|
||||
tristate "Dialog Semiconductor DA9062 regulators"
|
||||
depends on MFD_DA9062
|
||||
help
|
||||
Say y here to support the BUCKs and LDOs regulators found on
|
||||
DA9062 PMICs.
|
||||
|
||||
This driver can also be built as a module. If so, the module
|
||||
will be called da9062-regulator.
|
||||
|
||||
config REGULATOR_DA9063
|
||||
tristate "Dialog Semiconductor DA9063 regulators"
|
||||
depends on MFD_DA9063
|
||||
|
||||
@@ -25,6 +25,7 @@ obj-$(CONFIG_REGULATOR_BCM590XX) += bcm590xx-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_DA903X) += da903x.o
|
||||
obj-$(CONFIG_REGULATOR_DA9052) += da9052-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_DA9055) += da9055-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_DA9062) += da9062-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_DA9063) += da9063-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_DA9210) += da9210-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_DA9211) += da9211-regulator.o
|
||||
|
||||
@@ -178,6 +178,16 @@ static const struct regulator_init_data arizona_ldo1_default = {
|
||||
.num_consumer_supplies = 1,
|
||||
};
|
||||
|
||||
static const struct regulator_init_data arizona_ldo1_wm5110 = {
|
||||
.constraints = {
|
||||
.min_uV = 1175000,
|
||||
.max_uV = 1200000,
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS |
|
||||
REGULATOR_CHANGE_VOLTAGE,
|
||||
},
|
||||
.num_consumer_supplies = 1,
|
||||
};
|
||||
|
||||
static int arizona_ldo1_of_get_pdata(struct arizona *arizona,
|
||||
struct regulator_config *config,
|
||||
const struct regulator_desc *desc)
|
||||
@@ -243,6 +253,11 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
|
||||
desc = &arizona_ldo1_hc;
|
||||
ldo1->init_data = arizona_ldo1_dvfs;
|
||||
break;
|
||||
case WM5110:
|
||||
case WM8280:
|
||||
desc = &arizona_ldo1;
|
||||
ldo1->init_data = arizona_ldo1_wm5110;
|
||||
break;
|
||||
default:
|
||||
desc = &arizona_ldo1;
|
||||
ldo1->init_data = arizona_ldo1_default;
|
||||
|
||||
842
drivers/regulator/da9062-regulator.c
Normal file
842
drivers/regulator/da9062-regulator.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np,
|
||||
case PM_SUSPEND_STANDBY:
|
||||
default:
|
||||
continue;
|
||||
};
|
||||
}
|
||||
|
||||
suspend_np = of_get_child_by_name(np, regulator_states[i]);
|
||||
if (!suspend_np || !suspend_state)
|
||||
|
||||
@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev)
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
};
|
||||
}
|
||||
|
||||
return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
|
||||
rdev->desc->enable_mask, val);
|
||||
@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
|
||||
default:
|
||||
state = S2MPS14_ENABLE_SUSPEND;
|
||||
break;
|
||||
};
|
||||
}
|
||||
break;
|
||||
case S2MPU02:
|
||||
switch (rdev_id) {
|
||||
@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
|
||||
default:
|
||||
state = S2MPU02_ENABLE_SUSPEND;
|
||||
break;
|
||||
};
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
};
|
||||
}
|
||||
|
||||
ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val);
|
||||
if (ret < 0)
|
||||
@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "Invalid device type: %u\n",
|
||||
s2mps11->dev_type);
|
||||
return -EINVAL;
|
||||
};
|
||||
}
|
||||
|
||||
s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev,
|
||||
sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num,
|
||||
|
||||
Reference in New Issue
Block a user