Skip to contentSkip to conversation

ISL6271A voltage regulator support.

PATCH New Marek Vasut 3 participants 3 messages Jun 13, 2010 – Jun 15, 2010 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ISL6271A voltage regulator support.

This device is very simple, it supports one buck and two LDOs. The LDOs are fixed-voltage. Only the buck is programable over the I2C bus to 16 possible voltages.

---
 drivers/regulator/Kconfig              |    6 +
 drivers/regulator/Makefile             |    1 +
 drivers/regulator/isl6271a-regulator.c |  236 ++++++++++++++++++++++++++++++++
 3 files changed, 243 insertions(+), 0 deletions(-)
 create mode 100644 drivers/regulator/isl6271a-regulator.c
drivers/regulator/Kconfig +6 -0
index 04f2e08..6772ca7 100644
@@ -201,5 +201,11 @@ config REGULATOR_88PM8607
 	help
 	  This driver supports 88PM8607 voltage regulator chips.
 
+config REGULATOR_ISL6271A
+	tristate "Intersil ISL6271A Power regulator"
+	depends on I2C
+	help
+	  This driver supports ISL6271A voltage regulator chip.
+
 endif
 
drivers/regulator/Makefile +1 -0
index 4e7feec..e2191bf 100644
@@ -31,5 +31,6 @@ obj-$(CONFIG_REGULATOR_AB3100) += ab3100.o
 obj-$(CONFIG_REGULATOR_TPS65023) += tps65023-regulator.o
 obj-$(CONFIG_REGULATOR_TPS6507X) += tps6507x-regulator.o
 obj-$(CONFIG_REGULATOR_88PM8607) += 88pm8607.o
+obj-$(CONFIG_REGULATOR_ISL6271A) += isl6271a-regulator.o
 
 ccflags-$(CONFIG_REGULATOR_DEBUG) += -DDEBUG
drivers/regulator/isl6271a-regulator.c new file +236 -0

236 lines not on this page · raw message

Signature · 1 line
1.7.1
#1 lore raw

PATCH v3 1/1 ISL6271A voltage regulator support.

Quoted 5 lines · Marek Vasut

This device is very simple, it supports one buck and two LDOs. The LDOs are fixed-voltage. Only the buck is programable over the I2C bus to 16 possible voltages.

For future reference...

drivers/regulator/isl6271a-regulator.c line 54

Quoted 2 lines
drivers/regulator/isl6271a-regulator.c new file +2 -0
+	/* Convert the data from chip to microvolts */
+	data = ISL6271A_VOLTAGE_MIN + (ISL6271A_VOLTAGE_STEP * (idx & 0xf));

...note that this is just list_voltage() (if you're going to fix this please only do so with an incremental patch).

#2 lore raw

PATCH v3 1/1 ISL6271A voltage regulator support.

Quoted 9 lines · Mark Brown
Quoted 5 lines · Marek Vasut

This device is very simple, it supports one buck and two LDOs. The LDOs are fixed-voltage. Only the buck is programable over the I2C bus to 16 possible voltages.

Applied, although had to manually fix some conflicts with Kconfig.

Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk