[PATCH v4 0/6] Add Support for MediaTek PMIC MT6397 MFD Core and Regulator

From: Flora Fu
Date: Fri Dec 26 2014 - 02:10:03 EST


Hi,

The patch sets add support for MediaTek PMIC MT6397 MFD core and its regulator driver.
This is hardware layout for access PMIC MT6397 from AP SoC MT8135.
Between PMIC MT6397 and MT8135, the physical signal channel is SPI bus.
A specific hardware called PMIC Wrapper or PWRAP to handle access protocols in both PMIC and AP side.

+-----------------+ +---------------+
| | | |
| Mediatek AP SoC | | |
| (ex. MT8135) | | MT6397 |
| | | |
| +--------+ | (SPI bus) | +--------+ |
| | | |-----------| | | |
| | PMIC | |-----------| | PMIC | |
| | Wrapper| |-----------| | Wrapper| |
| | | |-----------| | | |
| +--------+ | | +--------+ |
| | | |
+-----------------+ +---------------+

This driver is based on kernel release 3.19.

Changes since v3
================
(1) Patch 1/6: PMIC Wrapper is the parent of MT6397 MFD. Use auxdata to pass regmap pointer as MFD's platform data.
(2) Patch 2/6: Update MT6397 MFD implmentation according to patch 1/6. Update MFD cells table: rtc, codec, clock for sub modules.
(3) Patch 4/6: Document for MT8135 PMIC wrapper.
(4) Patch 5/6: Document for MT6397 MFD.
(5) Patch 7/6: Device tree for MT8135 PMIC wrapper in mt8135.dtsi.
- nodes of clocks depend on mt8135 clocks
- nodes of resets depend on mt8135 reset controllers:
https://lkml.org/lkml/2014/11/3/134
https://lkml.org/lkml/2014/11/5/283
(6) Patch 6/6: Add device tree for MT6397 MFD and regulators in mt8135 board file.
v3:
https://lkml.org/lkml/2014/12/4/924

Changes since v2
================
(1) Patch 1/8: Update kernel config of MT8135 PMIC Wrapper. It needs to select REGMAP.
(2) Patch 2/8: Update patch of MT6397 MFD driver to fix defeat of coding styles.
(3) Patch 3/8: Update MT6397 regulator driver
- use standard helpers for ops ".set_voltage_sel", ".get_voltage_sel" and ".is_enabled"
- remove regulator's DT matching codes in the driver.
- fix defeat of coding styles.
(4) Patch 4/8: Update document for MT8135 PMIC wrapper.
(5) Patch 5/8: Update document for MT6397 MFD.
(6) Patch 6/8: Update document for MT6397 regulators.
(7) Patch 7/8: Update device tree for MT8135 PMIC wrapper in mt8135.dtsi.
(8) Patch 8/8: Add device tree for MT6397 MFD and regulators in mt8135-evbp1.dts board file.
v2:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-November/307069.html

Changes since v1
================
(1) Patch 1/8: Add MT8135 PMIC wrapper driver for SoC's proprietary hardware.
(2) Patch 2/8: Update patch of MT6397 MFD driver to contain only MFD related codes and fix defeat of coding styles.
(3) Patch 3/8: Update MT6397 regulator driver
- use helpers and standard ways for specifying data in regulator description.
- add more comments to explaining why the driver implement its own regulator_ops for ".is_enabled", ".set_voltage_sel" and ".get_voltage_sel".
- update driver implement for coding styles.
(4) Patch 4/8: Add document for MT8135 PMIC wrapper.
(5) Patch 5/8: Update document for MT6397 MFD.
(6) Patch 6/8: Update document for MT6397 regulators.
(7) Patch 7/8: Add device tree for MT6397 MFD in mt8135.dtsi.
(8) Patch 8/8: Update device tree for MT6397 regulators in mt8135.dtsi.
Initial version (v1):
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-November/302984.html

Flora Fu (6):
soc: mediatek: Add PMIC wrapper for MT8135 and MT6397 SoC
mfd: MT6397: Add support for PMIC MT6397 MFD
dt-bindings:: Add document for MT8135 PMIC Wrapper
dt-bindings: Add document for MT6397 MFD
arm: dts: mt8135: Add support for MT8135 PMIC wrapper
arm: dts: mt8135: Add support for MT6397 MFD and regulator

Documentation/devicetree/bindings/mfd/mt6397.txt | 75 ++
.../soc/mediatek/mediatek,mt8135-pwrap.txt | 51 ++
arch/arm/boot/dts/mt8135-evbp1.dts | 193 +++++
arch/arm/boot/dts/mt8135.dtsi | 14 +
drivers/mfd/Kconfig | 10 +
drivers/mfd/Makefile | 1 +
drivers/mfd/mt6397-core.c | 94 +++
drivers/soc/Kconfig | 1 +
drivers/soc/Makefile | 1 +
drivers/soc/mediatek/Kconfig | 12 +
drivers/soc/mediatek/Makefile | 1 +
drivers/soc/mediatek/mt8135-pmic-wrap.c | 855 +++++++++++++++++++++
drivers/soc/mediatek/mt8135-pmic-wrap.h | 138 ++++
include/linux/mfd/mt6397/core.h | 23 +
include/linux/mfd/mt6397/registers.h | 362 +++++++++
15 files changed, 1831 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/mt6397.txt
create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8135-pwrap.txt
create mode 100644 drivers/mfd/mt6397-core.c
create mode 100644 drivers/soc/mediatek/Kconfig
create mode 100644 drivers/soc/mediatek/Makefile
create mode 100644 drivers/soc/mediatek/mt8135-pmic-wrap.c
create mode 100644 drivers/soc/mediatek/mt8135-pmic-wrap.h
create mode 100644 include/linux/mfd/mt6397/core.h
create mode 100644 include/linux/mfd/mt6397/registers.h

--
1.8.1.1.dirty

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/