[U-Boot] [PATCH v4 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-05-07 Thread Matti Vaittinen
https://source.codeaurora.org/external/imx/uboot-imx cherry picked, styled and merged commits: - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96 Signed-off-by: Ye Li Signed-off-by: Matti Vaittinen Reviewed-by: Simon

[U-Boot] [PATCH v4 0/2] support for ROHM BD71837 and BD71847 PMICs

2019-05-07 Thread Matti Vaittinen
acdc5c297a96). Fixes checkpatch issues. Patch 2: - Support BD71847 PMIC. - Add support for BD71837 and BD71847 regulators. --- Matti Vaittinen (2): regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs drivers/power

[U-Boot] [PATCH v4 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-05-07 Thread Matti Vaittinen
these limitations from DT and we may want to implement same on u-Boot driver). Signed-off-by: Matti Vaittinen --- Changelog v3 => v4: - prefer u8 over uint8_t - prefer types with natural alignment over u8 on function arguments - remove inclusion of errno.h from drivers/power/regulator/bd71837.c drivers/po

[U-Boot] [PATCH v3 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-04-25 Thread Matti Vaittinen
these limitations from DT and we may want to implement same on u-Boot driver). Signed-off-by: Matti Vaittinen --- Changelog v2 => v3: - remove unnecessary include - use uint8_t instead of u8 - improve Kconfig documentation - improve readability by inverting handling of 'not_found' variable to 'found' driv

[U-Boot] [PATCH v3 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-04-25 Thread Matti Vaittinen
https://source.codeaurora.org/external/imx/uboot-imx cherry picked, styled and merged commits: - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96 Signed-off-by: Ye Li Signed-off-by: Matti Vaittinen --- Changelog v2

[U-Boot] [PATCH v3 0/2] support for ROHM BD71837 and BD71847 PMICs

2019-04-25 Thread Matti Vaittinen
Cherry picks the initial PMIC driver for BD71837 from NXP's i.MX repository at: https://source.codeaurora.org/external/imx/uboot-imx (commits e9a3bec2e95a and acdc5c297a96). Fixes checkpatch issues. Patch 2: - Support BD71847 PMIC. - Add support for BD71837 and BD71847 regulators. --- Matti

[U-Boot] [PATCH v2 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-04-24 Thread Matti Vaittinen
these limitations from DT and we may want to implement same on u-Boot driver). Signed-off-by: Matti Vaittinen --- Changelog v1 => v2: - document structs containing the platdata - use pmic_clrsetbits() instead of using separate reads and writes - fix styling issues drivers/power/pmic/bd71837.c |

[U-Boot] [PATCH v2 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-04-24 Thread Matti Vaittinen
https://source.codeaurora.org/external/imx/uboot-imx cherry picked, styled and merged commits: - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96 Signed-off-by: Ye Li Signed-off-by: Matti Vaittinen --- Changelog v1

[U-Boot] [PATCH v2 0/2] support for ROHM BD71837 and BD71847 PMICs

2019-04-24 Thread Matti Vaittinen
acdc5c297a96). Fixes checkpatch issues. Patch 2: - Support BD71847 PMIC. - Add support for BD71837 and BD71847 regulators. --- Matti Vaittinen (2): regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs drivers/power

[U-Boot] [PATCH v1 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-04-08 Thread Matti Vaittinen
these limitations from DT and we may want to implement same on u-Boot driver). Signed-off-by: Matti Vaittinen --- Changelog v1: This version is created based on the RFC v1. https://lists.denx.de/pipermail/u-boot/2019-March/363077.html Additionally - Support BD71847. - Unlock the PMIC protection register

[U-Boot] [PATCH v1 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-04-08 Thread Matti Vaittinen
https://source.codeaurora.org/external/imx/uboot-imx cherry picked, styled and merged commits: - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96 Signed-off-by: Ye Li Signed-off-by: Matti Vaittinen --- Based on RFC

[U-Boot] [PATCH v1 0/2] support for ROHM BD71827 and BD71847 PMICs

2019-04-08 Thread Matti Vaittinen
96). Fixes checkpatch issues. Patch 2: - Support BD71847 PMIC. - Add support for BD71837 and BD71847 regulators. --- Matti Vaittinen (2): regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs drivers/power/pm

Re: [U-Boot] [RFC PATCH v1 2/2] power: regulator: support ROHM BD71837 PMIC

2019-04-04 Thread Matti Vaittinen
Hi de Ho Peeps, On Wed, Mar 27, 2019 at 02:40:47PM +0200, Matti Vaittinen wrote: > Add regulator driver for ROHM BD71837 PMIC. BD71837 contains > 8 bucks and 7 LDOS. Voltages for bucks 1-4 can be adjusted > when regulators are enabled. For other bucks and LDOs we may > have over- or u

[U-Boot] [RFC PATCH v1 2/2] power: regulator: support ROHM BD71837 PMIC

2019-03-27 Thread Matti Vaittinen
. BD71837 has a quirk which may leave power output disabled after reset if enable/disable state was controlled by SW. Thus the SW control is only allowed for bucks3 and 4 by default. Signed-off-by: Matti Vaittinen --- drivers/power/regulator/Kconfig | 15 ++ drivers/power/regulator/Makefile | 1

[U-Boot] [RFC PATCH v1 1/2] copy the bd71837 pmic driver from NXP imx u-boot

2019-03-27 Thread Matti Vaittinen
-off-by: Matti Vaittinen --- drivers/power/pmic/Kconfig| 7 +++ drivers/power/pmic/Makefile | 2 + drivers/power/pmic/bd71837.c | 89 +++ drivers/power/pmic/pmic_bd71837.c | 31 +++ include/power/bd71837.h | 64