Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp314588pxu; Thu, 3 Dec 2020 00:25:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjVQvBbh669+FNNUEXA2cNM68PYS+IpwsDU6AJUtPPs/brG9JtXpLdzj1FIp7jQfg8gm0n X-Received: by 2002:a17:906:2741:: with SMTP id a1mr1496054ejd.85.1606983930865; Thu, 03 Dec 2020 00:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606983930; cv=none; d=google.com; s=arc-20160816; b=DvXI7Wjf2wy8UrjWOSQm1rWA3Xn6x6S/G7Hk38QjXnrZwMJlRIkO9PoXdKkcH/fMe8 N4LFkqAphDBSIywHFNPQC/orTfviy0QpvjzocYCpVje64CKTvcC75GLZgZw2Ok5dUBiv +2GTZn+OkzceFaobOGnHd2rPVohdm/9hm5aYBdECJYaeVweOJMWPidr7bz5TBuMJEK5c K7ct/0Kpi6cOY6Bun2jvnJMZIQ04Nbog3HC3gr/dC/f5py9909SoYM80btBpLghPRviB 410qzTDGM+F6uWpyGtzA0wvZDV7dTwkEMkfHkzFbh3Gy0/0Mmgvjhh3lzvY5xmbY9yAs FZLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9wf+alfiaL3XhL+BHWwSdKXcH0Cv3ysVpqCqDVmYIeg=; b=O6xSS8RXHsdGmfMKC5zItuJUGD3dHPB8f7TWiy5gGy2dXktgmWVU+PiBHkekInZZma vxllMbQzADlBqKF69F7NcRx018rvUEiC2tbvAwYELClA6FCLW92pCb+nrQg7wUr84h8S 0wMvurPN+9iYVp+ZpS/xckKQVtb8Bgj8qx0b0V9s3Ph5vf9RW2sAlsNCu1L5RCLZWTT6 APtH1AEgf+BgRD8SbpcZ/WdsrYK8QXMjabc4NzD4o5ooZV4ohp/QYjK8i8FKL36Pinbu OHX94MIgWjRsxYk8VGW2pgjPkjJqyQDQqpz6kBoFMwczPcl/rjfXGz1jHRmn+WeX6E1P wXeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox26si761869ejb.605.2020.12.03.00.25.08; Thu, 03 Dec 2020 00:25:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388412AbgLCIXr convert rfc822-to-8bit (ORCPT + 99 others); Thu, 3 Dec 2020 03:23:47 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35769 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387627AbgLCIXr (ORCPT ); Thu, 3 Dec 2020 03:23:47 -0500 Received: by mail-ed1-f65.google.com with SMTP id u19so1161217edx.2; Thu, 03 Dec 2020 00:23:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=vjNuER/19Tth1CpYQD6/JuQrBM7KYytXToe4a5pm5bs=; b=TUdEm0mzUb/j6jtP4tF7lnSYExxuLHk22V7uUF7npsfdSLJ3Qt6/n0632W6/M9SWyF huvtGghqYONsYjo2vKxp84NthsIiG5btRt6N11suOxGe0k/hkJo0fhRSiovicr5Cu6Sb YDgU/nbVnzvpP2xyL01Cu11fS7uO9ZgNpcycyB+6Wi6U80fqQTkXn2OmC5DoHeUYiB8z ZSD0BWn8BF3xAQT8jR9h8Q9ETmX0adml/T0nPcryJZjZ5ddhjEF0j20CuqLbOT3qHPpO GVyy5zX27LMIa/h+TT4WDnVWwfgemVsoXgZ+7Dzl56W5r+djU0j3NOf4zH763vhiXLzi 46og== X-Gm-Message-State: AOAM533tQZ7xflU+UurIiQvvK/c5AWEVNvOVoLuA+ZXS+NeOmAVb3NvU JgL8JE/BovaufbcJz2Gu0X62BzqCWRk= X-Received: by 2002:a50:f40e:: with SMTP id r14mr1712818edm.5.1606983784224; Thu, 03 Dec 2020 00:23:04 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id c12sm630568edw.55.2020.12.03.00.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 00:23:03 -0800 (PST) Date: Thu, 3 Dec 2020 10:23:01 +0200 From: Krzysztof Kozlowski To: Timon =?utf-8?B?QsOkdHo=?= Cc: Sebastian Reichel , Chanwoo Choi , MyungJoo Ham , Kukjin Kim , Rob Herring , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "~postmarketos/upstreaming@lists.sr.ht" <~postmarketos/upstreaming@lists.sr.ht> Subject: Re: [PATCH 3/3] ARM: dts: exynos: Fix charging regulator voltage and current for i9100 Message-ID: <20201203082301.GA3999@kozik-lap> References: <20201202203516.43053-1-timon.baetz@protonmail.com> <20201202203516.43053-3-timon.baetz@protonmail.com> <20201202220430.GB135888@kozik-lap> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 05:46:03AM +0000, Timon Bätz wrote: > On Wednesday, December 2, 2020 11:04 PM, Krzysztof Kozlowski wrote: > > > On Wed, Dec 02, 2020 at 09:07:28PM +0000, Timon Baetz wrote: > > > > > Set CHARGER current and CHARGER_CV voltage according to Galaxy S2 kernel > > > fork. > > > > > > Signed-off-by: Timon Baetz timon.baetz@protonmail.com > > > > > > ------------------------------------------------------ > > > > > > arch/arm/boot/dts/exynos4210-i9100.dts | 8 ++++---- > > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > diff --git a/arch/arm/boot/dts/exynos4210-i9100.dts b/arch/arm/boot/dts/exynos4210-i9100.dts > > > index 9f8d927e0d21..2700d53ea01b 100644 > > > --- a/arch/arm/boot/dts/exynos4210-i9100.dts > > > +++ b/arch/arm/boot/dts/exynos4210-i9100.dts > > > @@ -558,14 +558,14 @@ safe2_sreg: ESAFEOUT2 { > > > > > > charger_reg: CHARGER { > > > regulator-name = "CHARGER"; > > > > > > > > > - regulator-min-microamp = <60000>; > > > > > > > > > - regulator-max-microamp = <2580000>; > > > > > > > > > > > > - regulator-min-microamp = <200000>; > > > > > > > > > - regulator-max-microamp = <950000>; > > > }; > > > > > > chargercv_reg: CHARGER_CV { > > > regulator-name = "CHARGER_CV"; > > > > > > > > > > > > - regulator-min-microvolt = <3800000>; > > > > > > > > > - regulator-max-microvolt = <4100000>; > > > > > > > > > > > > - regulator-min-microvolt = <4200000>; > > > > > > > > > - regulator-max-microvolt = <4200000>; > > > > > > > > > > I am looking at my sources of Android 3.0 for GT-I9100 but I cannot find > > charger voltages for it. Where did you find it? > > > > Best regards, > > Krzysztof > > Thanks all the feedback Krzysztof, > > Voltage is set in the charger probe function of the downstream kernel fork: https://github.com/LineageOS/android_kernel_samsung_smdk4412/blob/lineage-17.0/drivers/power/max8997_charger_u1.c#L390-L391 You need to fix your email client to wrap lines. The fork cannot be used as a reference because of poor quality of explanations for origins of the code. The commit which added 4.2 V is described as "samsung update 1" which basically means nothing. If at least it was "drop sources of GT-I9105"... but in this form it is useless. For the things we are not sure how they should be implemented, we sometimes accept the reason "vendor sources do like this". However Lineage or any other fork are not vendor sources. Therefore you need to provide a valid explanation for this voltage change. Best regards, Krzysztof