[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1408367356-2628-1-git-send-email-guodong.xu@linaro.org>
Date: Mon, 18 Aug 2014 21:09:10 +0800
From: Guodong Xu <guodong.xu@...aro.org>
To: robh+dt@...nel.org, pawel.moll@....com, mark.rutland@....com,
ijc+devicetree@...lion.org.uk, galak@...eaurora.org,
linux@....linux.org.uk, sameo@...ux.intel.com,
lee.jones@...aro.org, lgirdwood@...il.com, broonie@...nel.org,
grant.likely@...aro.org, khilman@...aro.org,
haojian.zhuang@...aro.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
axel.lin@...ics.com, zhangnian@...wei.com
Cc: Guodong Xu <guodong.xu@...aro.org>
Subject: [PATCH v6 0/6] Add MFD and regulator drivers for Hi6421 PMIC SoC
This patchset adds an MFD core driver and a regulator driver for Hi6421 PMIC
SoC.
Hi6421 is a PMIC SoC designed and manufactured by HiSilicon Ltd. It includes
multi-functions, such as regulators, codec, ADCs, Coulomb counter, etc.
Hi6421 can be used in various Hi3620 SoC based boards. Registers in Hi6421 are
memory bus mapped, so in this design they are accessed by regmap-mmio APIs.
Hi6421 has a requirement to keep a guard delay between its regulator's
disable and next enable. Implement this requirement in regulator core,
per Mark Brown's suggestion.
---
changes in v6:
* rebase to v3.17-rc1:
- use devm_ioremap_resource in hi6421 mfd driver
- add 'const' before var regulator_ops in new funcs in regulator core
* fix build error in drivers/regulator/mc13892-regulator.c
due to 'const' in regulator_desc.ops
* remove patch to hi3xxx_defconfig
changes in v5:
* rename _regulator_delay to _regulator_enable_delay
* clean up hi6421_regulator_enable(), add 100us protective gap into
regulator_desc's .enable_time
* code clean up, fixes for style checking
changes in v4:
* regulator: core:
- add const qualifier to ops in struct regulator_desc
- factor out _regulator_delay from _regulator_do_enable
- add guard delay between calling regulator_disable and _enable
* hi6421 regulator:
- bug fix: missing min_uV for linear regualtor BUCK0~2
- bug fix: wrong volt values in buck_3_voltages table
- add const to hi6421 regulator_ops
- use ldo_linear and ldo_linear_range in applicable LDOs.
- rename regulator-name to conform to names in board schematics.
changes in v3:
* hi6421: regulator: remove setting of constraints on board-specific
capabilities
* delete unecessary compatible property "hisilicon,hi6421-regulators"
* change regulator enable/disable callback APIs to support protection
gaps, as
required by hi6421 spec
* split regulator set_mode/get_mode callback APIs to LDOs and BUCKs
* delete hi6421.dtsi, mfd and regulator nodes are now in board config .dts
changes in v2:
* use MFD APIs to manage sub-devices of Hi6421
* use regmap-mmio for register access
* use only generic regulator device tree property
* rewrite regulator driver using helper APIs from both regulator and regmap
v1: first drop
Guodong Xu (6):
regulator: core: add const qualifier to ops in struct regulator_desc
regulator: core: factor out delay function from _regulator_do_enable
regulator: core: add guard delay between calling regulator_disable and
_enable
mfd: Add hi6421 PMIC core driver
regulator: add driver for hi6421 voltage regulator
ARM: dts: hi3620-hi4511: Add HI6421 MFD and regulator nodes
Documentation/devicetree/bindings/mfd/hi6421.txt | 37 ++
arch/arm/boot/dts/hi3620-hi4511.dts | 233 ++++++++
drivers/mfd/Kconfig | 13 +
drivers/mfd/Makefile | 1 +
drivers/mfd/hi6421-pmic-core.c | 117 ++++
drivers/regulator/Kconfig | 10 +
drivers/regulator/Makefile | 1 +
drivers/regulator/core.c | 137 +++--
drivers/regulator/hi6421-regulator.c | 657 +++++++++++++++++++++++
drivers/regulator/mc13892-regulator.c | 11 +-
include/linux/mfd/hi6421-pmic.h | 39 ++
include/linux/regulator/driver.h | 8 +-
12 files changed, 1209 insertions(+), 55 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mfd/hi6421.txt
create mode 100644 drivers/mfd/hi6421-pmic-core.c
create mode 100644 drivers/regulator/hi6421-regulator.c
create mode 100644 include/linux/mfd/hi6421-pmic.h
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists