From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4709447DFA0 for ; Tue, 3 Mar 2026 15:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772551980; cv=none; b=Oi40516WU0FWcuA73S5x0ngqjiIBMsuFtvifwh3kK6Et33ws0u9+bmLAOa11lUt962uRLT+A9Pek/qOI4WWv7LwXJoUMMEcJZ4cp925U765AMkidcmr0MBvRdT187scyF1+CPy4jWlgBqeXS4+aElru1GUrMQbeyZA6gFiVXu7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772551980; c=relaxed/simple; bh=qiMt4AKxRW6uzIHaOc4XWX09wGEBsrHpnjGhmEeRg3U=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=O+Y1Mfeo7sEX5O3BR4KWO3G4gI+BieMcBVSZigeSV5WzZVGleEBxM8AaSw5gexcdEckpFSyEPz3jU2qehcBYsMVKF9n/gXMTJahQOxxh1Q/zPmNdthZIQsRdSHWZxzdiQ0i+kXsz7E+kksN3pAg9pdXcx/ekGobz3IGRJfUYbWk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=flipper.net; spf=pass smtp.mailfrom=flipper.net; dkim=pass (2048-bit key) header.d=flipper.net header.i=@flipper.net header.b=hxuIy/qv; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=flipper.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flipper.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flipper.net header.i=@flipper.net header.b="hxuIy/qv" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-483bd7354efso77014585e9.2 for ; Tue, 03 Mar 2026 07:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flipper.net; s=google; t=1772551978; x=1773156778; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=lR9itk2uXqg3duC81sXm2F1W0Z/G0NBQ0f28RHZQOcc=; b=hxuIy/qvmAKWUHq4TrmjnNtynVs8ldsC1Vw2u0WBoZD0J46NJnuuj42aqSuH/dHhDd 8uogG7FO9WXA+HrcLOgSGYAFh0DcKGaB/lheN0i7glbpmBESLAC3VQkoZpg7xTdfk0Fz 1UqmMBXzeiR5IHKAWwSWQfedIUKbvJh2s7DU83tB0mcmlv803P7TtqXIpc4pRpzsymLJ yqe6v9HhTK6rE4Kc9ScK3Cx4Go0pxZPBJcVD/cobnRRgK+2SFNpwbe6jMXcnTa34+NQQ fWGm0TK6RaZ8JFK7W0QCwKa6wcBTGAaGQWSOuqgdFEKdU1xFgGldHI5Rqe+gNhEwB+wb LP7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772551978; x=1773156778; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lR9itk2uXqg3duC81sXm2F1W0Z/G0NBQ0f28RHZQOcc=; b=n5/KoyPdN0uFACFgXftSGlm4rhaaSMiBCxwujhXS0EXOmAJWWudHuFK1ZxGqfN5Rb9 WkTuBowuYJILNYEh+kM5M40KyS7KXdYyy+VH30H2l5yIovmw7XmAeX6L/08GGH4qq2FX M+yHtHCy/Wu6SESeUb/S3kuzjUsz/9cASsT7SqZYvt+1cvwxJydCIo46ygDy+dDrxuyh BEWT1zOiDU43A0mO5TzIkhiiNvlRqlDNWpqC3rWk5Zjys21g9OIf3sX2Of4Ri1nco/Cx 3KRAW6PWXEaC4a/ZBiviyn5+lihHCjGIrIfvQ5aGD0Q45YLF8cfra5xt9y+zdi+LQmlT rL4Q== X-Forwarded-Encrypted: i=1; AJvYcCUqQhlHNisWu8WEjTawbAMYzwwsIxWOL60I+ritoSB1QnQKDmMDZycoA6G5W5VfTru/wFXRFqIrpQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yzmw7scNoCGJqFXCg7qy4au7KpqAABx23kq51rhBLAfJVIEGMI5 SPeaAopLbKFGH+iFFcDMkuQ+f8fRbzvpBPL4TXQZ9nu1AEz8wC2dv7sKhS+KzeJqUC/Zzqie/+B 9SSbhdiM= X-Gm-Gg: ATEYQzyFayqe0EJ7hIB7s0zaVV5snol3MqPa0olaiJvtmIUFcncQBeFfqxow1PgloVa 5l+7gRabnyKQB2emxcvzbVRyzx/a6h0jh10udU6ajxr3GGehaXo8imxcD2n32S1JrN0NSvNDCCE LeDvDi1HvCsIz9evXesLQgKEOKrqmfrQQgAT75lw5HddhZ83bGRUQvU43zW9BKgZ7w9uVG/grk8 ZR+Aolc1Kjdz3w3yr4XBZBHiHGbxF8Sy654gxgpyXodScO00bNe7zACNzwazeOlj0rrbEfL3/s9 L8sDlj+Jm9+fn2iiQYaKBJC91bWW/AlAS9qMzg4vESYJTbLoULu5pM0PZ//nnyxF6+KdsNVI4U5 ppnSZTiPe5Xq3hzvBVi6wPc0rzzWo0azJkA9URspFVT3UPycKBMVNqlHhoG9mbtnx7QNGrKxlLS V9fHrOcp/Myburr6m1FjIaOh2kqIsEJFh1LmgjIyjhMCFboyxUGXC5N988gK5BHrfFZyRo1sXGV /8= X-Received: by 2002:a05:600c:4e8e:b0:483:a922:2e8d with SMTP id 5b1f17b1804b1-483c9b97198mr270143195e9.4.1772551977423; Tue, 03 Mar 2026 07:32:57 -0800 (PST) Received: from alchark-surface.localdomain (bba-94-59-44-101.alshamil.net.ae. [94.59.44.101]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439b55d15besm19799447f8f.30.2026.03.03.07.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2026 07:32:57 -0800 (PST) From: Alexey Charkov Subject: [PATCH 00/11] Add support for the TI BQ25792 battery charger Date: Tue, 03 Mar 2026 19:32:45 +0400 Message-Id: <20260303-bq25792-v1-0-e6e5e0033458@flipper.net> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAB3/pmkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDYwNj3aRCI1NzSyNdA0Njo8RkCzMLE7MUJaDqgqLUtMwKsEnRsbW1ADj AvYlZAAAA X-Change-ID: 20260303-bq25792-0132ac86846d To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chris Morgan , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , linux-pm@vger.kernel.org, Alexey Charkov , stable@vger.kernel.org X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2511; i=alchark@flipper.net; h=from:subject:message-id; bh=qiMt4AKxRW6uzIHaOc4XWX09wGEBsrHpnjGhmEeRg3U=; b=owGbwMvMwCW2adGNfoHIK0sZT6slMWQu+6/mWnhU/Y7Xn+AVIvuyS2cvyzFoy4q7t2r2Dr1jP 1ZfkE9N75jIwiDGxWAppsgy99sS26lGfLN2eXh8hZnDygQyRFqkgQEIWBj4chPzSo10jPRMtQ31 DA11jHWMGLg4BWCq/x1lZJiXfbXzS8ZWe/Oy+HsGD7bqn6qwP/6/qUetd0/hzI1v3VUY/ocECfW 8W/HavEx1IkOk/fcPDnmctWE/Kg2zPJ1/W12dxwgA X-Developer-Key: i=alchark@flipper.net; a=openpgp; fpr=9DF6A43D95320E9ABA4848F5B2A2D88F1059D4A5 This adds support for the TI BQ25792 battery charger, which is similar in overall logic to the BQ25703A, but has a different register layout and slightly different lower-level programming logic. The series is organized as follows: - Patch 1 adds the new variant to the existing DT binding, including the changes in electrical characteristics - Patches 2-4 are minor cleanups to the existing BQ25703A OTG regulator driver, slimming down the code and making it more reusable for the new BQ25792 variant - Patch 5 is a logical fix to the BQ25703A clamping logic for VSYSMIN (this is a standalone fix which can be applied independently and may be backported to stable) - Patches 6-8 are slight refactoring of the existing BQ25703A charger driver to make it more reusable for the new BQ25792 variant - Patch 9 adds platform data to distinguish between the two variants in the parent MFD driver, and binds it to the new compatible string - Patches 10-11 add variant-specific code to support the new BQ25792 variant in the regulator part and the charger part respectively, selected by the platform data added in patch 9 Signed-off-by: Alexey Charkov --- Alexey Charkov (11): dt-bindings: mfd: ti,bq25703a: Expand to include BQ25792 regulator: bq257xx: Remove reference to the parent MFD's dev regulator: bq257xx: Drop the regulator_dev from the driver data regulator: bq257xx: Make OTG enable GPIO really optional power: supply: bq257xx: Fix VSYSMIN clamping logic power: supply: bq257xx: Make the default current limit a per-chip attribute power: supply: bq257xx: Consistently use indirect get/set helpers power: supply: bq257xx: Add fields for 'charging' and 'overvoltage' states mfd: bq257xx: Add BQ25792 support regulator: bq257xx: Add support for BQ25792 power: supply: bq257xx: Add support for BQ25792 .../devicetree/bindings/mfd/ti,bq25703a.yaml | 79 ++- drivers/mfd/bq257xx.c | 60 ++- drivers/power/supply/bq257xx_charger.c | 534 ++++++++++++++++++++- drivers/regulator/bq257xx-regulator.c | 123 ++++- include/linux/mfd/bq257xx.h | 415 ++++++++++++++++ 5 files changed, 1163 insertions(+), 48 deletions(-) --- base-commit: d517cb8cea012f43b069617fc8179b45404f8018 change-id: 20260303-bq25792-0132ac86846d Best regards, -- Alexey Charkov