From patchwork Mon Jul 29 17:47:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13745512 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 87652C3DA4A for ; Mon, 29 Jul 2024 17:48:52 +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=pkEdD4X8B8T7oknY6aCSNjWcx7qQc569zwNW9DTeGn4=; b=Vh46qFaIK/XVtOdN23n4hOF3Ap kJ0Dwmuhr04TaqBXxr2skCTu1WcoMYEdErqWh7b9YXvJu8GrxtGM6O4vx6Z3x7WtCYSy5587fiZbw W6pawKwBfjQnwOHB02xC8Gg2tpFw0SSHOGLKNz5osbN2bEcCA3WJyv6gX8yHVvqZ7mERgIpjEbBbK f8kI8mgbcBzNB7wyNnlr3Re7TjzbvR32VG0F8rnn70Hjd/oEs8At0BwI5SCWuVFYC2sL5iTvvXQnz Zvcbqy9Lvm64EL8/0WNVlPcRUWGh5ESSu1b+7srZyG96TdepSm+juKn2RvPt+9M0E7L2SvWnPhvUm zRnImO6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYUUD-0000000CFS3-1jDL; Mon, 29 Jul 2024 17:48:41 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYUTP-0000000CFD2-0Kkz for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 17:47:52 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4280bca3960so19634095e9.3 for ; Mon, 29 Jul 2024 10:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722275269; x=1722880069; 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=pkEdD4X8B8T7oknY6aCSNjWcx7qQc569zwNW9DTeGn4=; b=AfM3+wCBLmQenqiGGP1Q4BUjzki2MCtIbqHwmVbgV9aI/dq3alpQ1kCudfEjKhX0yX J/iehlWF9Iyl+fqL5eSGOtro2lesdPdT4nomJlNHU70Jozy7SzjdwQIHlG2VLbxFQcb9 RJDNFhlB41Q+cxTItGW1vOB8BFwDSao3WzAk8/GGx27Oz20GhGb7WnGoQ2+O7D9XvHwh GI8K4HdRbyIc6qVzaXrPeJ9jnbim5ouw9Mfr3XBx16Vp94ZPwefJKLkCojZrL3G+fPfI u2EDhdANFHe/4aGCSIsYfMLwuIq7We0kp4L9gljdpB4JlNR+JZvhIkkysneAZG6ZSDQY VOAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722275269; x=1722880069; 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=pkEdD4X8B8T7oknY6aCSNjWcx7qQc569zwNW9DTeGn4=; b=iNz3LQJZoGrTQfoCUnphAsyxllREngAtODMsMZh9G3HlWepIIUiIosFKhb1ufz6faY G8eZXSSUdPZ3IICOorApkWeQ6KazWl5vjW5AOek4tiUtJHHzimjIO3QZEZ+s5pEuglgx mCVzXxb6IGvIJ0aAyIU8ea037NYtHJLDXqx+sS7KFw4SRWSCk2kDPUyNgX9nabo5+9ia sKW6Owf3tF7He8IgwVMkiQSj53BeDtL/H6Jo1RAX2swp368t0Bw+3KwyDtkFyY924HxL IweD8o1WS3CIgqu1bAknpFSfUY34QMLntXkRtCB2eraWcls5hPNkgFre8YW9B/lUz0QL cEXg== X-Forwarded-Encrypted: i=1; AJvYcCVRAgJu5ybrc2AfRAkRiMBRR8C+5zVGncVrE34piO1l7ZM2QnHSf2OqqXi3Cl9mDrrIl9VG/RtbL5Gr/AmRTEa6nGKtlkmxttNk/bZxN39UFlpADbc= X-Gm-Message-State: AOJu0Yy+WhfICnreYGiuVEsvZkoBy4FT1mrHTg/ZaKO4IiniboBmXMAz efikhV7WUy27r6U+MUiS4L/pAEEinZN+H7F/llOnGPCKbx/mmgdioNz4WQ== X-Google-Smtp-Source: AGHT+IHFzA3benq6KmvJSdWIZUCEBHfwHUXl0n3vqkbeclIfATIrtxzc4QgIEKoGiKCBOyXFMfqm7A== X-Received: by 2002:a05:600c:3111:b0:428:151b:e8e with SMTP id 5b1f17b1804b1-428151b1210mr49714045e9.10.1722275268565; Mon, 29 Jul 2024 10:47:48 -0700 (PDT) Received: from tablet.my.domain ([37.30.0.99]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b367fc8a7sm12716550f8f.59.2024.07.29.10.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 10:47:48 -0700 (PDT) From: Artur Weber Date: Mon, 29 Jul 2024 19:47:35 +0200 Subject: [PATCH v3 01/10] dt-bindings: power: supply: max77693: Add monitored-battery property MIME-Version: 1.0 Message-Id: <20240729-max77693-charger-extcon-v3-1-02315a6869d4@gmail.com> References: <20240729-max77693-charger-extcon-v3-0-02315a6869d4@gmail.com> In-Reply-To: <20240729-max77693-charger-extcon-v3-0-02315a6869d4@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=1519; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=XiA66QrY1cKpyMYoVlkQgoD3V8kx0+u1J/F4sMqHt7Q=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmp9W+hyYirrvSUUSF/Ig46ckgslOodqZNCsTXs HIu6j1uHgyJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqfVvgAKCRCzu/ihE6BR aKdLEACEQ9fwZeu3U1x9GzFDQA1ODMTVTblEzeQV40qOmlcuUnUymB1ZCfwC9jtoV6D0YMFm6dQ WGScggQQzjgIIpnY8M14jStpnw8AndMqgNJaU//aH5veKVjH0QFRCsp7Z9aSFxuJHJlt+tTwhC4 n+bOFdOOzwHFHJe02AKohvRLQxb2/EvWGlOMXnxVJJ57SoPBoLgpZGKGOWp2MWd+lI516sHiSD9 xzUtI6YkUN92UqD3Vllno85lhJYjtHBt9L6XvmWlHiUSjVn4x7uSlWQjNy5QJH9AITNHpF7RMcu +Kx7rKm+2gyhmUnBVFVFzJqjcorolgjQ1zDpjTiKhHPFqcJPH/9XcPxXrvrOKyADBMosdgAkG6a TnTR7D68egq+iIntelaLLKQ7z2ha53ToJi4Lj9XTH84OWpU93pMq4tFhyASZYZHV51OJQOH1TQO 6xYvl1bXJ3o7IFCPe67ITcB9W5Q6bslun+sPvii9Nb0TM8MJOk/ggPi1JlG/OyXPToUNoWWmDOT Qsx5VRrsEFGB/Q45VAo2gNXlx8hhSJQGZ6msiq4u9SEn2qvyJSD14ooCys9v1ICgcHQF0U1ItU7 Exuo42lFDdtVb03bg8dLoUJ7zO9ZBiKhFle6I19/G/gZHoPosmJPtaNu+c5alDerneGhPI4nbBR LRajcvaq+/TmC1Q== 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-20240729_104751_177545_9D654B34 X-CRM114-Status: GOOD ( 10.76 ) 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 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