Skip to content

Commit 8ded8d4

Browse files
committed
Merge tag 'regulator-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator updates from Mark Brown: "The diffstat and changelog here is dominated by Lee Jones' heroic efforts to sync the ab8500 driver that's been maintained out of tree with mainline (plus Axel's cleanup work on the results) but there's a few other things here: - Axel Lin added regulator_map_voltage_ascend() optimising a common pattern for drivers using the core code. - Milo Kim tought the regulator core to handle regulators sharing an enable GPIO, avoiding the need to do hacks to support such systems. - Andrew Bresticker added code to handle missing supplies for regulators more sensibly for device tree systems, reducing the need for stubbing there. plus the usual batch of driver specific updates and fixes" * tag 'regulator-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (152 commits) regulator: mc13892: Fix MC13892_SWITCHERS0_SWxHI bit in set_voltage_sel regulator: Remove NULL test before calling regulator_unregister() regulator: mc13783: Add device tree probe support regulator: mc13xxx: Add warning of incorrect names of regulators regulator: max77686: Don't update max77686->opmode if update register fails regulator: max8952: Add missing config.of_node setting for regulator register regulator: ab3100: Fix regulator register error handling regulator: tps6524x: Use regulator_map_voltage_ascend regulator: lp8788-buck: Use regulator_map_voltage_ascend regulator: lp872x: Use regulator_map_voltage_ascend regulator: mc13892: Use regulator_map_voltage_ascend for mc13892_sw_regulator_ops regulator: tps65023: Use regulator_map_voltage_ascend regulator: tps65023: Merge tps65020 ldo1 and ldo2 vsel table regulator: tps6507x: Use regulator_map_voltage_ascend regulator: mc13892: Fix MC13892_SWITCHERS0_SWxHI bit in set_voltage_sel regulator: ab3100: device tree support regulator: ab3100: refactor probe to use IDs regulator: max8973: Don't override control1 variable when set ramp delay bits regulator: tps80031: Convert tps80031_dcdc_ops to [get|set]_voltage_sel_regmap regulator: tps80031: Fix LDO2 track mode for TPS80031 or TPS80032-ES1.0 ...
2 parents 7b05384 + bee5465 commit 8ded8d4

54 files changed

Lines changed: 5109 additions & 892 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/mfd/mc13xxx.txt‎

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,40 @@ Optional properties:
1010
- fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
1111

1212
Sub-nodes:
13-
- regulators : Contain the regulator nodes. The MC13892 regulators are
14-
bound using their names as listed below with their registers and bits
15-
for enabling.
13+
- regulators : Contain the regulator nodes. The regulators are bound using
14+
their names as listed below with their registers and bits for enabling.
1615

16+
MC13783 regulators:
17+
sw1a : regulator SW1A (register 24, bit 0)
18+
sw1b : regulator SW1B (register 25, bit 0)
19+
sw2a : regulator SW2A (register 26, bit 0)
20+
sw2b : regulator SW2B (register 27, bit 0)
21+
sw3 : regulator SW3 (register 29, bit 20)
22+
vaudio : regulator VAUDIO (register 32, bit 0)
23+
viohi : regulator VIOHI (register 32, bit 3)
24+
violo : regulator VIOLO (register 32, bit 6)
25+
vdig : regulator VDIG (register 32, bit 9)
26+
vgen : regulator VGEN (register 32, bit 12)
27+
vrfdig : regulator VRFDIG (register 32, bit 15)
28+
vrfref : regulator VRFREF (register 32, bit 18)
29+
vrfcp : regulator VRFCP (register 32, bit 21)
30+
vsim : regulator VSIM (register 33, bit 0)
31+
vesim : regulator VESIM (register 33, bit 3)
32+
vcam : regulator VCAM (register 33, bit 6)
33+
vrfbg : regulator VRFBG (register 33, bit 9)
34+
vvib : regulator VVIB (register 33, bit 11)
35+
vrf1 : regulator VRF1 (register 33, bit 12)
36+
vrf2 : regulator VRF2 (register 33, bit 15)
37+
vmmc1 : regulator VMMC1 (register 33, bit 18)
38+
vmmc2 : regulator VMMC2 (register 33, bit 21)
39+
gpo1 : regulator GPO1 (register 34, bit 6)
40+
gpo2 : regulator GPO2 (register 34, bit 8)
41+
gpo3 : regulator GPO3 (register 34, bit 10)
42+
gpo4 : regulator GPO4 (register 34, bit 12)
43+
pwgt1spi : regulator PWGT1SPI (register 34, bit 15)
44+
pwgt2spi : regulator PWGT2SPI (register 34, bit 16)
45+
46+
MC13892 regulators:
1747
vcoincell : regulator VCOINCELL (register 13, bit 23)
1848
sw1 : regulator SW1 (register 24, bit 0)
1949
sw2 : regulator SW2 (register 25, bit 0)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Maxim MAX8952 voltage regulator
2+
3+
Required properties:
4+
- compatible: must be equal to "maxim,max8952"
5+
- reg: I2C slave address, usually 0x60
6+
- max8952,dvs-mode-microvolt: array of 4 integer values defining DVS voltages
7+
in microvolts. All values must be from range <770000, 1400000>
8+
- any required generic properties defined in regulator.txt
9+
10+
Optional properties:
11+
- max8952,vid-gpios: array of two GPIO pins used for DVS voltage selection
12+
- max8952,en-gpio: GPIO used to control enable status of regulator
13+
- max8952,default-mode: index of default DVS voltage, from <0, 3> range
14+
- max8952,sync-freq: sync frequency, must be one of following values:
15+
- 0: 26 MHz
16+
- 1: 13 MHz
17+
- 2: 19.2 MHz
18+
Defaults to 26 MHz if not specified.
19+
- max8952,ramp-speed: voltage ramp speed, must be one of following values:
20+
- 0: 32mV/us
21+
- 1: 16mV/us
22+
- 2: 8mV/us
23+
- 3: 4mV/us
24+
- 4: 2mV/us
25+
- 5: 1mV/us
26+
- 6: 0.5mV/us
27+
- 7: 0.25mV/us
28+
Defaults to 32mV/us if not specified.
29+
- any available generic properties defined in regulator.txt
30+
31+
Example:
32+
33+
vdd_arm_reg: pmic@60 {
34+
compatible = "maxim,max8952";
35+
reg = <0x60>;
36+
37+
/* max8952-specific properties */
38+
max8952,vid-gpios = <&gpx0 3 0>, <&gpx0 4 0>;
39+
max8952,en-gpio = <&gpx0 1 0>;
40+
max8952,default-mode = <0>;
41+
max8952,dvs-mode-microvolt = <1250000>, <1200000>,
42+
<1050000>, <950000>;
43+
max8952,sync-freq = <0>;
44+
max8952,ramp-speed = <0>;
45+
46+
/* generic regulator properties */
47+
regulator-name = "vdd_arm";
48+
regulator-min-microvolt = <770000>;
49+
regulator-max-microvolt = <1400000>;
50+
regulator-always-on;
51+
regulator-boot-on;
52+
};

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8732,7 +8732,7 @@ F: drivers/scsi/vmw_pvscsi.c
87328732
F: drivers/scsi/vmw_pvscsi.h
87338733

87348734
VOLTAGE AND CURRENT REGULATOR FRAMEWORK
8735-
M: Liam Girdwood <lrg@ti.com>
8735+
M: Liam Girdwood <lgirdwood@gmail.com>
87368736
M: Mark Brown <broonie@kernel.org>
87378737
W: http://opensource.wolfsonmicro.com/node/15
87388738
W: http://www.slimlogic.co.uk/?p=48

‎arch/arm/mach-exynos/mach-universal_c210.c‎

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@ static struct s3c2410_uartcfg universal_uartcfgs[] __initdata = {
9797
static struct regulator_consumer_supply max8952_consumer =
9898
REGULATOR_SUPPLY("vdd_arm", NULL);
9999

100+
static struct regulator_init_data universal_max8952_reg_data = {
101+
.constraints = {
102+
.name = "VARM_1.2V",
103+
.min_uV = 770000,
104+
.max_uV = 1400000,
105+
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
106+
.always_on = 1,
107+
.boot_on = 1,
108+
},
109+
.num_consumer_supplies = 1,
110+
.consumer_supplies = &max8952_consumer,
111+
};
112+
100113
static struct max8952_platform_data universal_max8952_pdata __initdata = {
101114
.gpio_vid0 = EXYNOS4_GPX0(3),
102115
.gpio_vid1 = EXYNOS4_GPX0(4),
@@ -105,19 +118,7 @@ static struct max8952_platform_data universal_max8952_pdata __initdata = {
105118
.dvs_mode = { 48, 32, 28, 18 }, /* 1.25, 1.20, 1.05, 0.95V */
106119
.sync_freq = 0, /* default: fastest */
107120
.ramp_speed = 0, /* default: fastest */
108-
109-
.reg_data = {
110-
.constraints = {
111-
.name = "VARM_1.2V",
112-
.min_uV = 770000,
113-
.max_uV = 1400000,
114-
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
115-
.always_on = 1,
116-
.boot_on = 1,
117-
},
118-
.num_consumer_supplies = 1,
119-
.consumer_supplies = &max8952_consumer,
120-
},
121+
.reg_data = &universal_max8952_reg_data,
121122
};
122123

123124
static struct regulator_consumer_supply lp3974_buck1_consumer =

0 commit comments

Comments
 (0)