Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34854813rwd; Sun, 9 Jul 2023 22:05:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6kk4QKyMTSgq9caHAgDMAMkPbok6BRUq3ezmG3qSlO5ULBXQg7xWXRVErMKya8lFMcCK1 X-Received: by 2002:a05:6830:1114:b0:6b7:49e1:f8f2 with SMTP id w20-20020a056830111400b006b749e1f8f2mr9155270otq.20.1688965550712; Sun, 09 Jul 2023 22:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688965550; cv=none; d=google.com; s=arc-20160816; b=rC/+z1jNcdK8Cn9dVEG4fPiQL6WAi+W38v3ZwVF1w30lYPseWms86Cu+vomVuBIOpN 1QHeGhkHfVINcGJbLvQxf3K86IJARW0Ogid/e6/3x5cbPDv6ioGOsoyKYiiCmMcdBtnT 4wf6ahZdse9ulI7W8eygDrPy1lcWPzrQ5DkitH35LjHrPJjBZgaJ9Oyu/o31dmVH6eNS tr+IPfBPpHBCalYRlxEWlpeIlwn3ER6Wxdpn/AKC0Iyg4ZuoerWv75OVJTY5YIUubXbU u1BFW3leQduFR23Pchquws1PSXMzushFwwkMkKFnw10cWqrr5OxaDFaPLeKyEoSqeLcE aECg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=njAT1vUEC0QTvnsGca7gt2hBWWry5XvddJMWVQmemxI=; fh=rPjd8CQ1iUFfh4oVD4YzjTYdf+c8eUtgSHgYCARRm/I=; b=xa9zD0c+39Wi1fLU0XbAhOwBlL34o8lI6B80PLpaa9wBrltGfo05fjiazcRXluEQ4D E24i3bfdU5YAp7ZKgMXU/lXcfouVSxY158xSq9pvQpPI8aYGW0Z73GsrfD/liER9srLE 4+fuIVHHZa7NaQLKxURK4l9YmuIIZSQPTci1djegh5NJn1PuM6aIPfy36mbm5Nh7apNG 50qutDi4igJqiMObTJT1gO0p1rC/CkDFIjd3nnN1OQoDKS3top6zFYRbS6NnpMLerjc0 BOT6C5hVjwVheY6orTaRsIpLVsQpht+yvNlFCe4DyzUP4/pE9eIzgU/rwjJTlMQ127ZK +ocQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QbSs0uPa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x184-20020a6386c1000000b0055ba896f567si8419986pgd.585.2023.07.09.22.05.38; Sun, 09 Jul 2023 22:05:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QbSs0uPa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230419AbjGJFEe (ORCPT + 99 others); Mon, 10 Jul 2023 01:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230016AbjGJFE3 (ORCPT ); Mon, 10 Jul 2023 01:04:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D8A612A; Sun, 9 Jul 2023 22:04:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2954F60DE5; Mon, 10 Jul 2023 05:04:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A22E8C43391; Mon, 10 Jul 2023 05:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688965464; bh=ni2upZI8kEppFCVo7r7vCrGM7+j/rJ5swOEAL7zFOGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QbSs0uPa/EZyfZfDToS3gWqbV24BkP6Qnrv1A7zmbv7MxznqsPcbi3jFE0j9Pf5G+ qTB5EKYIhI9+jLkeh/ZzKG3CrKkOnOgXUWtgWMGv5YZBVPk2DNYEyWnTRRjcvnGeXy tpU4akA4a/DBlpy+nREbs83gxMU43vGS386QlK/LSfoN1aA+ZPZUJU3Y7voB6YCjGJ wtGqCDDoR2QQUMGwXztU2VgHlM2j2likFMvCh/X6N+dLhqg6dBQgwxQbTeds5rNWho SmFaZTx0l4gqAbAhkbR98SmYP4vQ9sWxxbiAbwyW6uDwlD4r/JyrREuS4HPm8yC3dS 0u/Qu3ESaDV3A== From: Bjorn Andersson To: Andy Gross , Konrad Dybcio , Jakob Hauser Cc: Sebastian Reichel , Lee Jones , Stephan Gerhold , Raymond Hackley , Henrik Grimler , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: Re: [PATCH v2] arm64: dts: qcom: msm8916-samsung-serranove: Add RT5033 PMIC with charger Date: Sun, 9 Jul 2023 22:07:08 -0700 Message-ID: <168896565963.1376307.362293397029491245.b4-ty@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230619203743.8136-1-jahau@rocketmail.com> References: <20230619203743.8136-1-jahau.ref@rocketmail.com> <20230619203743.8136-1-jahau@rocketmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Jun 2023 22:37:43 +0200, Jakob Hauser wrote: > For the regulators, apply the same settings as in the downstream > devicetree [1], including the "regulator-always-on" for the SAFE_LDO. > For the voltage of SAFE_LDO, however, there is only one voltage of 4.9 V > available in the mainline driver [2][3]. > > The values of the battery data evolve from following sources: > - precharge current: 450 mA corresponds to the default value of the chip. It > doesn't get changed by the downstream Android driver. Therefore let's stick > to this value. > - constant charge current: The 1000 mA are taken from the downstream devicetree > of the serranove battery. It's not easy to spot. The value is in the line > "input_current_limit" [4]. The rows are according to the power supply type, > the 4th value stands for "main supply" [5]. That's the value used by the > Android driver when a charging cable is plugged into the device. > - charge termination current: In the downstream devicetree of the battery > that's the line "full_check_current_1st", which contains the 150 mA [6]. > - precharge voltage: This one doesn't get set in the downstream Android driver. > The chip's default is 2.8 V. That seemed too low to have a notable effect of > handling the battery gentle. The chosen value of 3.5 V is a bit arbitrary > and possibly rather high. As the device is already several years old and > therefore most batteries too, a value on the safe side seems reasonable. > - constant charge voltage: The value of 4.35 V is set in the line > "chg_float_voltage" of the downstream battery devicetree [7]. > > [...] Applied, thanks! [1/1] arm64: dts: qcom: msm8916-samsung-serranove: Add RT5033 PMIC with charger commit: 404d7f65767dde3a0eb3d6127b458b61ed7d7118 Best regards, -- Bjorn Andersson