From patchwork Fri Aug 16 08:19:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765684 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 96089C3DA4A for ; Fri, 16 Aug 2024 08:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OuFOTwnVfJo3Y5EGzlmZmw/h1XsJN7qD5nElULC2qxw=; b=h0NvO8ngBuUhT+FWi2DsbOazJd SNVSnyBr/BQ9V6+z9tKCmKByaGLMCHXCpSAYL7dQTKNBYQ5Rq8373YeIH3OVeDNrwPydRK573qGaA wLMy+8zFBievf2kx7FFCjmV2xkl9gSmZWOICnlJ6+o+8dNIhc4JhGC6QCZSSZHbX4e7X3Dm8yZm21 VjuPiwmn71vGMGF4QM39e7SYAWwkJXKpH2C+lU0WmenqesUc4oA9QsHMumIyhL04WHEkNH+PqigGm +wCsDA/4EJh7ccZd3q1IGoPqX3Gp38HtJkJ+UZb51Q2YtRL+ybE2Fzr8ISDcVwHAvKTE52RCmGZDz vQNv8/xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sesCP-0000000CFLS-0sbR; Fri, 16 Aug 2024 08:20:41 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sesB3-0000000CExh-11Wa for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 08:19:18 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-37186c2278bso965993f8f.1 for ; Fri, 16 Aug 2024 01:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723796356; x=1724401156; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OuFOTwnVfJo3Y5EGzlmZmw/h1XsJN7qD5nElULC2qxw=; b=grPDaGvVGRuj/XY0TENrJDFZ2BheaqMUuXRP88K+guZDlnG5x49E7hPTJnKEk+Vpq6 a/YM+dSb0jyXHeuWW5/Hlpqt5ji/d5VnPJcncxg5LUPhhe/9kemi6dOeIZgBFwHwTbb3 ZT8/9P9eTybGXMAHp8VZryi+koPNkwCTgJON1GW8/UdVS11iaoLv7TIP5LB4PcH13sgp fCuyDVGasa2nfJcYQ1G5TsSqTsPohrFUCBFJr2MJ6uZcVt02AOXHEgtJxVtRwmKqsFMF 2FVbNfdY158BSWOnUZ5s/eJ+/OSuA/oxiFy4C5Nb7A1wn+hbG2hikzyKA7ZG5q/FLh1K YRLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723796356; x=1724401156; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OuFOTwnVfJo3Y5EGzlmZmw/h1XsJN7qD5nElULC2qxw=; b=Ociv9Z8/o05ArsEeN8A023bBYvtir3Zme9lXQxmDJadvHxKJ0HZluA709LVQby5eK0 HTlXnpAdvH1T71nEcJeqYtEXPJtLa7wfFNNAgnQ4ZH4Q3687QKmjw62H1RutX+k5zrjm ouE9tfEe1ZrC3jExWWVKSP6slopaJGXZE7SjrgXNKwjq/TKWtGPlfGtGUkfyJlcmFYzn q5CoPi2fnERONdn4x0x+Zn3B5BUOg/4VEIf11YTja7UmEji3h7YT9aVsn/SRkHJzUP4C Aol3oEfoBZxvrMoI0xGPdUv4S8Yemz5XFj5ctXIPwWdqL4y9WrrEXhho1EfLwEelqZDM BIGQ== X-Forwarded-Encrypted: i=1; AJvYcCXxn7pUnZXpMmFkXaesQBOQrPQs9euR787pCPJzULo+YXBF0qqX5CXimJk4gWTPfjnSfLkfObuYy4QhfU1KlSPYg9FmEnjrhE2kbQkYlXBQVy0HcrU= X-Gm-Message-State: AOJu0YwRmyjza/BcNCHTgGjjACbQhV+WeUY1LOCblPOYU00YDlrkRgIP 8kocVCiZcj3UJghGAoJ2VypAP64SspCcplBHJqnLpZAdmp6dDN4k X-Google-Smtp-Source: AGHT+IGGVQuQ8zMyFMMGEoBO6ujH/sr/qCBYErhFw8TbTMZzGRD67A0Q/9o2jMrWQj5olGsuXutEBQ== X-Received: by 2002:a05:6000:4a:b0:36b:ea2d:fd5a with SMTP id ffacd0b85a97d-37186d7b2e8mr3437830f8f.22.1723796355464; Fri, 16 Aug 2024 01:19:15 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded35991sm69732645e9.21.2024.08.16.01.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 01:19:15 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 10:19:07 +0200 Subject: [PATCH v4 01/10] dt-bindings: power: supply: max77693: Add monitored-battery property MIME-Version: 1.0 Message-Id: <20240816-max77693-charger-extcon-v4-1-050a0a9bfea0@gmail.com> References: <20240816-max77693-charger-extcon-v4-0-050a0a9bfea0@gmail.com> In-Reply-To: <20240816-max77693-charger-extcon-v4-0-050a0a9bfea0@gmail.com> To: Krzysztof Kozlowski , Chanwoo Choi Cc: Sebastian Reichel , Rob Herring , Conor Dooley , Lee Jones , Krzysztof Kozlowski , Alim Akhtar , 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, ~postmarketos/upstreaming@lists.sr.ht, Henrik Grimler , Wolfgang Wiedmeyer , Denis 'GNUtoo' Carikli , Artur Weber , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1566; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=hw9bscDFCN3vQXC6NtThwBJyizDt4UmRCGdr2F/CUvE=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwt9rAhxytB9Lc18vnFg3zgPPljMqkf50Mp6b NdBnWipLeeJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8LfQAKCRCzu/ihE6BR aPJhEACdsnef5g67ckXGS2TQ1QCDItHM8qP/BfBh5lcEFmL1LK8IoE4VSxLhJn03/O0hTSEoOU7 l29k1yLv+vulxktdeuAbrVoobqjnQlhHk1IQg4Ek3eDOI/JOr+zWL6l+WblJjuhPliQgBvSm8xM dKOpoiBmQaCg4vn0cNsMNaUANFZvOFuLm774j7B8uWE3FdvqjuZ82/WMeDQTVrJX7EN689sVu2H ZQWgupx4QwWP7Q8y5QWkEWqT2QNc7w2k8fHdoQm4NTPsHeM86j0SLxHLuWjMKyi4TN+szpvaibR k8I/peX7DmiU60ewbBzbPja+HBcLoL9HXpEnwZvG2XPK2My/1jvBj+8m2mYsgd9tJpCLACeAgxQ MvXvrnuat/rOpMgYVqPHC0w/wL7oPGcgx2YQ55DYabvAmaWPmg1Y6puh5djkZWL0C0xAF3z1xNL TWhVrFUtUCZqTrFRADf7iVDibBpuhVBBjqgzJ3EYks1HrmEbS1OY6FGtrZdyRgJhzA7UITgxzXC wW/0+Tce2/7lmDTP93r6b1irWAo20GGBMSLFLCzQAKWVamsx8wfm+OdehYJAD5gUiu8YwQzXth/ cHz+Q1Hi5DTudsTlIStQmDEhc/f50nUxy4aaFDc/ruptQ+of5eLuySK+y10MhAum85nZYgYJvMn a3r4Xj8BmCqoKAg== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_011917_440495_42CABD70 X-CRM114-Status: GOOD ( 10.63 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the monitored-battery property, so that its constant charge current property can be used to specify the current limit to use for fast charge (when plugged into a wall charger). Reviewed-by: Krzysztof Kozlowski Tested-by: Henrik Grimler Signed-off-by: Artur Weber --- Changes in v2: - Switched to monitored-battery property from separate fast charge current property --- .../devicetree/bindings/power/supply/maxim,max77693.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml index f5fd53debbc8..2f4437dafdc0 100644 --- a/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml +++ b/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml @@ -16,10 +16,19 @@ description: | See also Documentation/devicetree/bindings/mfd/maxim,max77693.yaml for additional information and example. +allOf: + - $ref: power-supply.yaml# + properties: compatible: const: maxim,max77693-charger + monitored-battery: + description: + Phandle to "simple-battery"-compatible battery node. + The constant-charge-current-max-microamps property of the battery + node is used to specify the fast charge current. + maxim,constant-microvolt: description: | Battery constant voltage in uV. The charger will operate in fast