From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00879C001DE for ; Mon, 31 Jul 2023 15:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jYPUUB/x4KUl8Cm4r8op8iQ0r0jfBK8Kn53H2VSTxdU=; b=3G5ggJK9r8IU/c 2hV/+7xb+xIkWbojZKH3SAftNG9mcxp9STBqVa7IQEkWhj/nt7h3jNiJwPzZNxZH/Kl9o7jk4rqHq FUTOabcIkgtUJ2OA8ooF3rVUs1hIUAfkbQ8SNW1Rfbn+ybp/KExi0SRuOSG3EGGF0ti9iZ8Xe4k4s y/WcEAryMgJj6DMJnLvMwwcgQXadsmLVbOUQvkmi1r1bvR47gRZJ5VTQngofAWm6VLZfqu6eh5c6V 8tlaRQUY2v5HtZmFaPqyj7U/+3hBnpEXs2b9+dHfh/Ldnvr+fopjIcjxEx4y3sFGkGjstvUsqT6Wy sQ4CTD63D8+IVeFxJarA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQVAa-00GO22-1L; Mon, 31 Jul 2023 15:50:52 +0000 Received: from sendmail.purelymail.com ([34.202.193.197]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQVAY-00GO1U-1C for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2023 15:50:51 +0000 DKIM-Signature: a=rsa-sha256; b=DMi77ear/iZF1UDc+VOzM2c7AtwCSig4GAd85tFsfDcAeXP2E0L34dIJokY4Em/Tlo4xLIKWjtIFLZoOXzUyAY4KB+otQ7aex7+sc0es9ElO0eBNjSgh6ijys1/cyl9yHBJUgD+9uS8qmdFXbgrZgJt71Dx0dejar9znxDwedoFvN+9HW2ShH2JTnvPdzY3LCWYp7s0Vi94ZsXYmTrVw6hJNhVxjBnyXmmksHS45viVscrcBhVLha29cTP/SnWjMwa4L2vKSOkUoevJd/7Y5l87pin2gXOSDxkdZXMFYOR9pO1b26OMgTQQJjwmyTeztSLIbViBuNUjaP3cBvvFqMQ==; s=purelymail1; d=iskren.info; v=1; bh=eNdJS1WJkEMJiLxhmli0JSlZQRMNa/96vjAbAJHmhoU=; h=Received:Subject:To:From; DKIM-Signature: a=rsa-sha256; b=Q9GpMGbQj8hvBCF5gmgA0xSnJmBsCgbcfv+1IQPKwvp9qCsq0hPLMt868WCQekcq0R9UBTK6uSdSc7YNMIR1v5eFDqUUQ6WPh6wQ92I93ZWOqKwoQ8ObAa6EyMFlXu9Hlt/lNbjAkKNmp3xapqPfrlVi11A9QaRismj96MVcLx4I474uJeI4/31wxLfdz7odwJKqeyXVzsm7aCRfhnImqByU3kXj1MEflm80Vp9F72IX/9X+LR8BvkKK5O9SbM9wgrj/wgItl1S0OS3znk/Ew6245N1jvitPwEN1jSnvF8z2Ed7Cn01SAN9ysQEIWL4RYTQyuB3PvuCyaZFnp8YhTA==; s=purelymail1; d=purelymail.com; v=1; bh=eNdJS1WJkEMJiLxhmli0JSlZQRMNa/96vjAbAJHmhoU=; h=Feedback-ID:Received:Subject:To:From; Feedback-ID: 10275:2339:null:purelymail X-Pm-Original-To: linux-arm-kernel@lists.infradead.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1185265924; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 31 Jul 2023 15:49:41 +0000 (UTC) Message-ID: <95135e09-75d2-fea1-775b-1233a83349a1@iskren.info> Date: Mon, 31 Jul 2023 18:49:37 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/4] Add optional properties to MAX17040 To: Svyatoslav Ryhel , Krzysztof Kozlowski , Marek Szyprowski , Matheus Castello , Sebastian Reichel , Rob Herring , Conor Dooley , Russell King , Alim Akhtar , Arnd Bergmann , Jernej Skrabec , Claudiu Beznea , Stefan Hansson Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org References: <20230731073613.10394-1-clamor95@gmail.com> Content-Language: en-US From: Iskren Chernev In-Reply-To: <20230731073613.10394-1-clamor95@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230731_085050_494338_A3D859A5 X-CRM114-Status: GOOD ( 18.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 7/31/23 10:36, Svyatoslav Ryhel wrote: > Extend properties supported by max17040 fuel gauge if it is accompanied > by different devices. > > If max17040 is coupled with a charger, pass charger status since it should > match and max17040 has no dedicated status detection ability. > > max17040_get_online can be reused for PRESENT property since if it is > online it must be present. > > Finally, max17040 may be coupled with a dedicated thermal sensor which > monitors battery temperature so lets add support for iio channel to match > hw setup. With that said, the driver got dependency on CONFIG_IIO which > was added to Kconfig. All defconfigs apart s5pv210_defconfig have IIO > already enabled so only s5pv210_defconfig needed adjustment. [whole series] Reviewed-by: Iskren Chernev > --- > Changes from v2: > - documentation: fixed typo i2c0 > i2c > - added dependency on CONFIG_IIO > - enabled CONFIG_IIO for s5pv210_defconfig to avoid regressions (all other > defconfigs which include max17040 already have IIO enabled) > > Changes from v1: > - documentation: dropped monitored-battery and power-supplies (inherited > from inclusion) > - dropped passing charger health as battery health > - dropped patch for simple battery cell support > - switched iio_read_channel_raw to iio_read_channel_processed_scale > - switched iio_channel_get to devm_iio_channel_get > - re-organized implementation of temp channel (implemented in way > *_get_optional functions usually act) > --- > > Svyatoslav Ryhel (4): > dt-bindings: power: supply: maxim,max17040: update properties > power: max17040: pass status property from supplier > power: max17040: get thermal data from adc if available > ARM: configs: s5pv210_defconfig: enable IIO required by MAX17040 > > .../bindings/power/supply/maxim,max17040.yaml | 31 +++++++++++++++++++ > arch/arm/configs/s5pv210_defconfig | 1 + > drivers/power/supply/Kconfig | 2 +- > drivers/power/supply/max17040_battery.c | 27 ++++++++++++++++ > 4 files changed, 60 insertions(+), 1 deletion(-) > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel