Re: [PATCH v2 5/6] ARM: dts: exynos: Added top-off charging regulator node for i9100

From: Krzysztof Kozlowski
Date: Mon Dec 21 2020 - 09:24:08 EST


On Mon, Dec 21, 2020 at 09:53:35AM +0000, Timon Baetz wrote:
> Value taken from Galaxy S2 vendor kernel [0] which always sets 200mA.

Subject: "Add", not "Added", as in Linux coding style.

>
> Also rearrange regulators based on definition in max8997.h.
>
> [0] https://github.com/krzk/linux-vendor-backup/blob/samsung/galaxy-s2-epic-4g-touch-sph-d710-exynos4210-dump/drivers/power/sec_battery_u1.c#L1525
>
> Signed-off-by: Timon Baetz <timon.baetz@xxxxxxxxxxxxxx>
> ---
> arch/arm/boot/dts/exynos4210-i9100.dts | 21 ++++++++++++++-------
> 1 file changed, 14 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/boot/dts/exynos4210-i9100.dts b/arch/arm/boot/dts/exynos4210-i9100.dts
> index 586d801af0b5..fec6da64f7c1 100644
> --- a/arch/arm/boot/dts/exynos4210-i9100.dts
> +++ b/arch/arm/boot/dts/exynos4210-i9100.dts
> @@ -560,6 +560,16 @@ safe2_sreg: ESAFEOUT2 {
> regulator-boot-on;
> };
>
> + EN32KHZ_AP {
> + regulator-name = "EN32KHZ_AP";
> + regulator-always-on;
> + };
> +
> + EN32KHZ_CP {
> + regulator-name = "EN32KHZ_CP";
> + regulator-always-on;
> + };
> +
> charger_reg: CHARGER {
> regulator-name = "CHARGER";
> regulator-min-microamp = <200000>;
> @@ -573,13 +583,10 @@ chargercv_reg: CHARGER_CV {
> regulator-always-on;
> };
>
> - EN32KHZ_AP {
> - regulator-name = "EN32KHZ_AP";
> - regulator-always-on;
> - };
> -
> - EN32KHZ_CP {
> - regulator-name = "EN32KHZ_CP";
> + chargertopoff_reg: CHARGER_TOPOFF {

No need for label "chargertopoff_reg".

Best regards,
Krzysztof