linux_dsm_epyc7002/drivers/regulator
Rajendra Nayak 69511a452e regulator: map consumer regulator based on device tree
Device nodes in DT can associate themselves with one or more
regulators/supply by providing a list of phandles (to regulator nodes)
and corresponding supply names.

For Example:
	devicenode: node@0x0 {
		...
		...
		vmmc-supply = <&regulator1>;
		vpll-supply = <&regulator2>;
	};

The driver would then do a regulator_get(dev, "vmmc"); to get
regulator1 and do a regulator_get(dev, "vpll"); to get
regulator2.

of_get_regulator() extracts the regulator node for a given
device, based on the supply name.

Use it to look up the regulator for a given consumer from device tree, during
a regulator_get(). If not found fallback and lookup through
the regulator_map_list instead.

Also, since the regulator dt nodes can use the same binding to
associate with a parent regulator/supply, allow the drivers to
specify a supply_name, which can then be used to lookup dt
to find the parent phandle.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-11-23 18:47:31 +00:00
..
88pm8607.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
aat2870-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
ab3100.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
ab8500.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
ad5398.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
bq24022.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
core.c regulator: map consumer regulator based on device tree 2011-11-23 18:47:31 +00:00
da903x.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
db8500-prcmu.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
dummy.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
dummy.h regulator: fix build when CONFIG_REGULATOR_DUMMY=n 2010-10-28 22:40:32 +01:00
fixed.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
gpio-regulator.c regulator: Add module.h include to gpio-regulator 2011-10-11 13:59:13 +01:00
isl6271a-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
Kconfig regulator: gpio-regulator add dependency on GENERIC_GPIO 2011-10-12 10:50:40 +01:00
lp3971.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
lp3972.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
Makefile regulator: helper routine to extract regulator_init_data 2011-11-23 18:46:55 +00:00
max1586.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
max8649.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
max8660.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
max8925-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
max8952.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
max8997.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
max8998.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
mc13xxx-regulator-core.c regulator: Add module.h to drivers/regulator users as required 2011-10-31 19:32:15 -04:00
mc13xxx.h make mc13783 regulator code generic 2011-01-12 14:33:03 +00:00
mc13783-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
mc13892-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
of_regulator.c regulator: helper routine to extract regulator_init_data 2011-11-23 18:46:55 +00:00
pcap-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
pcf50633-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
tps6105x-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
tps6507x-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
tps6524x-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
tps6586x-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
tps65023-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
tps65910-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
tps65912-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
twl-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
userspace-consumer.c regulator: Add module.h to drivers/regulator users as required 2011-10-31 19:32:15 -04:00
virtual.c regulator: Add module.h to drivers/regulator users as required 2011-10-31 19:32:15 -04:00
wm831x-dcdc.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
wm831x-isink.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
wm831x-ldo.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
wm8350-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
wm8400-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00
wm8994-regulator.c regulator: pass additional of_node to regulator_register() 2011-11-23 18:47:04 +00:00