From patchwork Mon Jul 15 12:55:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13733494 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 A6038C3DA59 for ; Mon, 15 Jul 2024 12:56:00 +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=Yy4EKK2MMNMVFHHJLnbyF0PIFup9QUbwgUbkF8k93AY=; b=R9zGtIwiiQYmHzC4S9fsPkeOIj 4yIu3WHMPmS9SeAV9ISizWDMJclijbptLsjayRlL1fG0+uqQuOig3Hj37qikcGz3uskvKlsJ2BCl3 a00NJPuJRGp0jwMpTX0EyDNuGOdoNN5njJM8R8OY/gkbOlKoyAFoq9kRu8c6ET63wbfN4TBF+ig3j 5yXXtDi1fRKkJRVPjTr+PJbWPgOb9C5MYlOnHB2IiuA9G2ktEKZ7I225/elfwmunGpb19b1Rb0628 9uzKAfL2l8zo6/EbA+9eXaddwAq2FhahGTiIXy+NEEOUgHaNMTzCJvQ9AJHLhbI4GgvZeOYVeWz1M VPvKE8+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTLF7-000000076dn-16Fv; Mon, 15 Jul 2024 12:55:49 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTLEZ-000000076RC-0mwR for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 12:55:16 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2eebc76119aso47977971fa.2 for ; Mon, 15 Jul 2024 05:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721048113; x=1721652913; 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=Yy4EKK2MMNMVFHHJLnbyF0PIFup9QUbwgUbkF8k93AY=; b=hbsmZwZJGIltQnfw5FNbiY3RgAXx2fbkiZ2YJ7gnt06zA2FrzpCTj0NzdryPIOJ6Mx KC2i9z+KrPd6+g9870PzNqFnBygUJjBgmduC60fINsVAR5lcyJYvYCZpZtqVcxjhZFB5 2O0QIwv7C4noxomi1jcl3rubf61A1eV9Fka+3XIcKCs8E2kvGO6lcdUH+VJKEv2zmGag A6wArtr77bGb5jXchbI6YuCHT1Jk1FezMUb+bkTm00IV2NVzV2xs7V2K24+ds8djd4Qq WmEDN+DukB71O/MtAvfXfladDM55n3QyP0Jop1IMaa7ADGQsGRwwzkUG4D7qJoCTIC4V FmkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721048113; x=1721652913; 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=Yy4EKK2MMNMVFHHJLnbyF0PIFup9QUbwgUbkF8k93AY=; b=ekNDDJj0VCynUykdO2EwSSam8rxvUyBSoKwbhz8K1CNWZFUX1/9cB/j75KGI6jg5fi q6Tdwra52U6zMaTeKHu1ByXNl/ncgDlAbiFeqOW1h0Ap6QoRtcKjGNsa8ihyVf5uHaMX YZQc6nqy4f0TPHTy187ebuItkESdbeCF08dQ1jd0Cij5QlBiBaRMyUpCB697uuiJhdF4 S4NnNbSopwiipd4fQ4kcQasGWT8kAOGcW/VAc2uzuaOp4r2gimglxHc+58qP4yf2oYgY DQYmwZwi18iGmdOhslbFx23b2ev+nAa7+mwvZ8l/nXkCz7ATQt39hiXPVoyMSM7JZ/j1 FWaw== X-Forwarded-Encrypted: i=1; AJvYcCUmXmvi9IN8MruraAIHRhU5dALncWCmsxnxhnR7rKhu98sTju0Zq5vdbDLIB3jodbKc64KVnq1dqAkpFCDoDDODKZ/I49sTpxH5VG9xX0zdgLaX6eY= X-Gm-Message-State: AOJu0YybAj17VtFyhkVzgWd+YDdNSOxuRT2StL5sE/MbDPKwAO8M+lxY AthsZIu5juy7vVsJ147npsu7Ey34n1G1Q50XZE3A03kyCI96c31A X-Google-Smtp-Source: AGHT+IEZ/wluphxBn2a6YcKsiQTSr9JzIe+b2teGX2aiGb1mLWNivX+caxnotyDZOe8tkjXU+WzrGQ== X-Received: by 2002:a2e:9d06:0:b0:2ec:4acf:97dc with SMTP id 38308e7fff4ca-2eeb30bc9eemr126107771fa.11.1721048112386; Mon, 15 Jul 2024 05:55:12 -0700 (PDT) Received: from tablet.my.domain (ip-37-248-157-210.multi.internet.cyfrowypolsat.pl. [37.248.157.210]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-59b26f62165sm3333307a12.87.2024.07.15.05.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 05:55:12 -0700 (PDT) From: Artur Weber Date: Mon, 15 Jul 2024 14:55:03 +0200 Subject: [PATCH v2 1/9] dt-bindings: power: supply: max77693: Add monitored-battery property MIME-Version: 1.0 Message-Id: <20240715-max77693-charger-extcon-v2-1-0838ffbb18c3@gmail.com> References: <20240715-max77693-charger-extcon-v2-0-0838ffbb18c3@gmail.com> In-Reply-To: <20240715-max77693-charger-extcon-v2-0-0838ffbb18c3@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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1452; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=Sep2YFazyIuwJAAWmtMhPpLW3/gwTfw1XNyWXLhamO8=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlRwpJjCLdx8HCWez4ml9uY6NIVfmATTP1DiqK sIjVobrj/2JAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpUcKQAKCRCzu/ihE6BR aA+OD/wKoQpFNAsUIXuHULAyeJawNlA3bvCuREiYKFG7ppjjBd3+Nx6dCwCUfb1o75KDWzlZ2zp v/r8kICqtqtcoyqKffJfMsaImvev6dq8Bk2hebpwa86QvRiEs+ssMw1eViuJXLmP4nw6r7lku4f q6mbFW5qHLvpxI4CBgeuwY28y9y6NR/OgwcGsTx9CRGNwo/Vf5WGQG5TASW7DskE11ftwWVprv5 6PIWKIg4EYWWwVqTsBPCc9bzk46dYMMO4sk0Q8fvkB4KUGGzI+0HMlj4bSDQdn/ZF2rPpJoow2v ba75TL3UVonJA/gCRZz14y+zdIc3Hpq0YObqOW7xDCa+GfPdc1QNyxd1p8+iyGhTPRk3Ix8kMWz lbH55+nzJ8jM8MGx//51mew6uWa8wzcA4GNA4NQP0pxoptfvcvu6NEBwqlJf/tpIp+eOc4G9OVV eqggCPYcLQuhrX+UuewKbxsigbH49om2D+Y3h+i3YZgZ8VokbmhdStE4aqddEcv9MVAmteM8DWq 6X/KaCOtvopY9MCw57bXHgyitnxbi6kgy9gXa9S/KThHcEXxfJBtXw9l7+XW0UiS+D4czK3M5us 86XTizBWbtRm0MfkNC0eyyx9QB5umLav+YaZLWYhojB6R6a2hmaYpK4AYdjwsmKyGL+8iO2mqS3 PFg7DCJfY4Xde5Q== 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-20240715_055515_266485_4F0AF2AF X-CRM114-Status: GOOD ( 10.95 ) 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). Signed-off-by: Artur Weber Reviewed-by: Krzysztof Kozlowski --- 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