2020-12-21 02:58:15

by Yoshihiro Shimoda

[permalink] [raw]
Subject: [PATCH v4 00/12] treewide: bd9571mwv: Add support for BD9574MWF

Add BD9574MWF support into bd9571mwv gpio, mfd and regulator drivers.
Latest Ebisu-4D boards has this chip instead of BD9571MWV so that
we need this patch series to detect this chip at runtime.

Note that the patch [1/12] is a bug-fix patch for mfd driver.

Changes from v3:
- Add "Acked-for-MFD-by" in patch 1, 3, 9 and 10.
- Use "Co-developed-by" instead in patch 11.
- In patch 11:
-- Remove abusing kernel-doc formatting in patch.
-- Rename bd957x_data with bd957x_ddata in patch.
-- Remove product name printk.
-- Rename bd9571mwv_identify() with bd957x_identify().
-- Remove argument "part_name" from bd957x_identify().
-- Modify dev_err() string.
-- Rename BD9571MWV_PRODUCT_CODE_VAL with BD9571MWV_PRODUCT_CODE_BD9571MWV.
-- Fix errno from -ENOENT to -ENODEV.
- In patch 12:
-- Rename "MFD driver" to "core driver".
-- Remove unnecessary comments.
-- Rename BD9574MWF_PRODUCT_CODE_VAL with BD9571MWV_PRODUCT_CODE_BD9574MWF.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=402719

Changes from v2:
- Use devm_mfd_add_devices() to remove the mfd device in unload.
- Update commit descriptions in patch 4 and 8.
- Use regmap_get_device() to simplify in patch 4.
- Remove "struct bd9571mwv" and bd9571mwv_remove().
- Add Reviewed-by in patch 3 to 9.
- Use devm_regmap_add_irq_chip() to simplify in patch 10.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=400477

Changes from v1:
- Document BD9574MWF on the dt-binding.
- Add ROHM_CHIP_TYPE_BD957[14] into rohm-generic.h.
- To simplify gpio and regulator drivers, using regmap instead of
using struct bd9571mwv.
- Remove BD9574MWF definitions to make gpio and regulator driver
simple to support for BD9574MWF.
- Add BD9574MWF support for gpio and regulator drivers.
- Add missing regmap ranges for BD9574MWF.
- Rename "part_number" with "part_name".
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=398059

Khiem Nguyen (2):
mfd: bd9571mwv: Make the driver more generic
mfd: bd9571mwv: Add support for BD9574MWF

Yoshihiro Shimoda (10):
mfd: bd9571mwv: Use devm_mfd_add_devices()
dt-bindings: mfd: bd9571mwv: Document BD9574MWF
mfd: rohm-generic: Add BD9571 and BD9574
regulator: bd9571mwv: rid of using struct bd9571mwv
regulator: bd9571mwv: Add BD9574MWF support
gpio: bd9571mwv: Use the SPDX license identifier
gpio: bd9571mwv: rid of using struct bd9571mwv
gpio: bd9571mwv: Add BD9574MWF support
mfd: bd9571mwv: Use the SPDX license identifier
mfd: bd9571mwv: Use devm_regmap_add_irq_chip()

.../devicetree/bindings/mfd/bd9571mwv.txt | 4 +-
drivers/gpio/gpio-bd9571mwv.c | 35 ++--
drivers/mfd/bd9571mwv.c | 197 ++++++++++++++-------
drivers/regulator/bd9571mwv-regulator.c | 59 +++---
include/linux/mfd/bd9571mwv.h | 45 ++---
include/linux/mfd/rohm-generic.h | 2 +
6 files changed, 203 insertions(+), 139 deletions(-)

--
2.7.4


2020-12-21 02:58:26

by Yoshihiro Shimoda

[permalink] [raw]
Subject: [PATCH v4 02/12] dt-bindings: mfd: bd9571mwv: Document BD9574MWF

Document other similar specification chip BD9574MWF.

Signed-off-by: Yoshihiro Shimoda <[email protected]>
---
Documentation/devicetree/bindings/mfd/bd9571mwv.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/mfd/bd9571mwv.txt b/Documentation/devicetree/bindings/mfd/bd9571mwv.txt
index 8c46786..1d6413e 100644
--- a/Documentation/devicetree/bindings/mfd/bd9571mwv.txt
+++ b/Documentation/devicetree/bindings/mfd/bd9571mwv.txt
@@ -1,7 +1,7 @@
-* ROHM BD9571MWV Power Management Integrated Circuit (PMIC) bindings
+* ROHM BD9571MWV/BD9574MWF Power Management Integrated Circuit (PMIC) bindings

Required properties:
- - compatible : Should be "rohm,bd9571mwv".
+ - compatible : Should be "rohm,bd9571mwv" or "rohm,bd9574mwf".
- reg : I2C slave address.
- interrupts : The interrupt line the device is connected to.
- interrupt-controller : Marks the device node as an interrupt controller.
--
2.7.4

2020-12-21 03:00:27

by Yoshihiro Shimoda

[permalink] [raw]
Subject: [PATCH v4 03/12] mfd: rohm-generic: Add BD9571 and BD9574

Add chip IDs for BD9571MWV and BD9574MWF.

Signed-off-by: Yoshihiro Shimoda <[email protected]>
Reviewed-by: Matti Vaittinen <[email protected]>
Acked-for-MFD-by: Lee Jones <[email protected]>
---
include/linux/mfd/rohm-generic.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/mfd/rohm-generic.h b/include/linux/mfd/rohm-generic.h
index 4283b5b..affacf8 100644
--- a/include/linux/mfd/rohm-generic.h
+++ b/include/linux/mfd/rohm-generic.h
@@ -12,6 +12,8 @@ enum rohm_chip_type {
ROHM_CHIP_TYPE_BD71847,
ROHM_CHIP_TYPE_BD70528,
ROHM_CHIP_TYPE_BD71828,
+ ROHM_CHIP_TYPE_BD9571,
+ ROHM_CHIP_TYPE_BD9574,
ROHM_CHIP_TYPE_AMOUNT
};

--
2.7.4