Commit 4055da97 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branches 'regulator/topic/88pm8607',...

Merge remote-tracking branches 'regulator/topic/88pm8607', 'regulator/topic/arizona', 'regulator/topic/cleanup' and 'regulator/topic/da9062' into regulator-next
...@@ -404,7 +404,7 @@ static int pm8607_regulator_probe(struct platform_device *pdev) ...@@ -404,7 +404,7 @@ static int pm8607_regulator_probe(struct platform_device *pdev)
return 0; return 0;
} }
static struct platform_device_id pm8607_regulator_driver_ids[] = { static const struct platform_device_id pm8607_regulator_driver_ids[] = {
{ {
.name = "88pm860x-regulator", .name = "88pm860x-regulator",
.driver_data = 0, .driver_data = 0,
......
...@@ -178,6 +178,16 @@ config REGULATOR_DA9055 ...@@ -178,6 +178,16 @@ config REGULATOR_DA9055
This driver can also be built as a module. If so, the module This driver can also be built as a module. If so, the module
will be called da9055-regulator. 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 config REGULATOR_DA9063
tristate "Dialog Semiconductor DA9063 regulators" tristate "Dialog Semiconductor DA9063 regulators"
depends on MFD_DA9063 depends on MFD_DA9063
......
...@@ -25,6 +25,7 @@ obj-$(CONFIG_REGULATOR_BCM590XX) += bcm590xx-regulator.o ...@@ -25,6 +25,7 @@ obj-$(CONFIG_REGULATOR_BCM590XX) += bcm590xx-regulator.o
obj-$(CONFIG_REGULATOR_DA903X) += da903x.o obj-$(CONFIG_REGULATOR_DA903X) += da903x.o
obj-$(CONFIG_REGULATOR_DA9052) += da9052-regulator.o obj-$(CONFIG_REGULATOR_DA9052) += da9052-regulator.o
obj-$(CONFIG_REGULATOR_DA9055) += da9055-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_DA9063) += da9063-regulator.o
obj-$(CONFIG_REGULATOR_DA9210) += da9210-regulator.o obj-$(CONFIG_REGULATOR_DA9210) += da9210-regulator.o
obj-$(CONFIG_REGULATOR_DA9211) += da9211-regulator.o obj-$(CONFIG_REGULATOR_DA9211) += da9211-regulator.o
......
...@@ -178,6 +178,16 @@ static const struct regulator_init_data arizona_ldo1_default = { ...@@ -178,6 +178,16 @@ static const struct regulator_init_data arizona_ldo1_default = {
.num_consumer_supplies = 1, .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, static int arizona_ldo1_of_get_pdata(struct arizona *arizona,
struct regulator_config *config, struct regulator_config *config,
const struct regulator_desc *desc) const struct regulator_desc *desc)
...@@ -243,6 +253,11 @@ static int arizona_ldo1_probe(struct platform_device *pdev) ...@@ -243,6 +253,11 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
desc = &arizona_ldo1_hc; desc = &arizona_ldo1_hc;
ldo1->init_data = arizona_ldo1_dvfs; ldo1->init_data = arizona_ldo1_dvfs;
break; break;
case WM5110:
case WM8280:
desc = &arizona_ldo1;
ldo1->init_data = arizona_ldo1_wm5110;
break;
default: default:
desc = &arizona_ldo1; desc = &arizona_ldo1;
ldo1->init_data = arizona_ldo1_default; ldo1->init_data = arizona_ldo1_default;
......
This diff is collapsed.
...@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np, ...@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np,
case PM_SUSPEND_STANDBY: case PM_SUSPEND_STANDBY:
default: default:
continue; continue;
}; }
suspend_np = of_get_child_by_name(np, regulator_states[i]); suspend_np = of_get_child_by_name(np, regulator_states[i]);
if (!suspend_np || !suspend_state) if (!suspend_np || !suspend_state)
......
...@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev) ...@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev)
break; break;
default: default:
return -EINVAL; return -EINVAL;
}; }
return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg, return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
rdev->desc->enable_mask, val); rdev->desc->enable_mask, val);
...@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev) ...@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
default: default:
state = S2MPS14_ENABLE_SUSPEND; state = S2MPS14_ENABLE_SUSPEND;
break; break;
}; }
break; break;
case S2MPU02: case S2MPU02:
switch (rdev_id) { switch (rdev_id) {
...@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev) ...@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
default: default:
state = S2MPU02_ENABLE_SUSPEND; state = S2MPU02_ENABLE_SUSPEND;
break; break;
}; }
break; break;
default: default:
return -EINVAL; return -EINVAL;
}; }
ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val);
if (ret < 0) if (ret < 0)
...@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev) ...@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "Invalid device type: %u\n", dev_err(&pdev->dev, "Invalid device type: %u\n",
s2mps11->dev_type); s2mps11->dev_type);
return -EINVAL; return -EINVAL;
}; }
s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev, s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev,
sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num, sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment