From nobody Thu Apr 9 19:19:01 2026 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 45AE748C40D for ; Tue, 3 Mar 2026 15:33:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772551983; cv=none; b=ulxl40sf/tWmGxNWJL9P0uBbE5Gu18amm4mc7ukI9QVImal/9FGewB0NlG9lh8w/MtnMucEh+cgpPnirDEfjBHLPnM/kv3naIVixhIxLxm2k4h01bBMqjyWXlIBWlkogqMz39XDVD3TzNZB4YYCgxWsNHFD+58MBJ5sIWE9CV3s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772551983; c=relaxed/simple; bh=gbAU4zrwrEG67lPkWkojKT2Pi1hPLMXLErFJjWvmqxE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r0+1lutZXJ80Jclpl1jUh7vxucnObcnFnZqRDIqQ0tDZGWLpsdWcPmdqKdmhfATS3NMZPI9qEXz9Hza++fK53Zkl73jYN+eqZUT452lEpj5atavRkBwq7oYTYf1WKJ/3As0NjyJ9aZlExl29Sw9DKYl1RrJgYh+FYrXvS/u/Ric= 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=3ZyEBw3Y; arc=none smtp.client-ip=209.85.221.42 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="3ZyEBw3Y" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-4375d4fb4d4so4372996f8f.0 for ; Tue, 03 Mar 2026 07:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flipper.net; s=google; t=1772551980; x=1773156780; darn=vger.kernel.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=0oaDOn0WoQIww/ZnO38d/qe82lVLUA14KTAKUsdavPQ=; b=3ZyEBw3YxDnqVzJz3CtYiSsQUJSy0C+PIR4oFvMO5CqWi5Ctr+V0bwEk7A5L7QJ3sG csYlu8rj0+kA6i1YhBRF6/Zrb259G+a8tEHhpNr9HuxoHUWL7c8+VsoamkDe4Fx77R6l xGfo97w8FRiYu5TyFZIkIlWjzhBM0Em+rEvBd0i6LT2qx9XPOohaTCi6fivMUZGLnBYF NaRUM7z2yWmFpNNxBv5AQqDoc+ZqaBKo24xJ1aVwRHdhMpV+eX69OWcOe4SXcit3ac15 O+0TD1sr1GZ6Ca0gSL9yyPJLOrgJxdwwk/KFuEY5an05FCNetO+paxT3BJK3OouDHMBx qwwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772551980; x=1773156780; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=0oaDOn0WoQIww/ZnO38d/qe82lVLUA14KTAKUsdavPQ=; b=ir3rTXEgozcc5EzJyZkK1bWu2jluRocrQurOFHG2pVwmTK/SPLgoCZW3af6M+Vg/9Y fCKRN7SujcXIQot/vJDQ6699/ARVF/4rKqr7iyCizoBxKV8H6jrczB1PGePdSqZIovzX QSbgmRWE4kVhXuhyOk7uC9/1MqfYv6YiZuibyauUaTnZEGCoGMYrFfuX0v9h2DVebea5 +NR6DfGtER7rqgA/zKQaOyKu2RnkBTpZi5elZzevaHVKgtMIjhielHKywW2GqasJSByJ X2XpUrvTNgxrtNrcDYVj+pDcwhIrN1AxKQAc6OSkP+Yz7OVZA9lgBkUnPkyjNRWEdPdU sGrQ== X-Forwarded-Encrypted: i=1; AJvYcCVa5UETMJWBTqfPvngcNYeACzwx12yBXZbDPPek41YuM3QNrON+ArUEaFkKJ7ctSeRPVYK6ImpT2BuXPlk=@vger.kernel.org X-Gm-Message-State: AOJu0YxscEKv99Vcuxz7sMPAtlpIR7Yq9yD/veQZngMrb8O1QdgwCmM3 lspslJOmT0mk8LqbVyFNTZ5ZyJBN62gD1iEQACF0YgzzG2W0XQc6wwIr1/OLiHhBNqE= X-Gm-Gg: ATEYQzykFj5m317FklpuD0PucfLtQpvuxM0TPG+E4J57OmcKKWHJ8N1WabJGzDj90fx P51og5Mtz3OHC1sQDiQkqXkL9TspHYfWd1XdFckKn7Tenifw9OmNYVsv4XqJOzUdgjODPBlZih/ yWby9V4Hq8HsYb/RHVma/YUVJ9TylOHssr0gB8jlONLzIEyMEq0jaPA71RqsP/Xben4inPf2xck 4ZCdFKxue4bKQRx/CtZhz8ztgkBuuYikzfnsBahRZ4Azf5PRuFWDwyuKs0jOujMgyCAFXF33wn7 RR3gP9Hm0DdRPiTPLswO9czpAfbhclFPUS96amqtHi0baH927MxH0g3XhhJ4W9oOjRSZQ6DJd96 SClWhdF+Yw0lWult4GHQdkAD4kEjdzxm+7Rp8wCBuxZzlvcsO6nbpHRtfDzYXrw3FIbpF50pD0z 3fqaoN2cYMzVXSSnF0DO7cGvR3hwKPt4D+xEx22tnjEq7nsG0i8Z6lljmfG/6C4ZJkjtmf9X2vv zY= X-Received: by 2002:a05:6000:22c1:b0:439:c018:60f2 with SMTP id ffacd0b85a97d-439c0186351mr5563064f8f.12.1772551979971; Tue, 03 Mar 2026 07:32:59 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2026 07:32:59 -0800 (PST) From: Alexey Charkov Date: Tue, 03 Mar 2026 19:32:46 +0400 Subject: [PATCH 01/11] dt-bindings: mfd: ti,bq25703a: Expand to include BQ25792 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260303-bq25792-v1-1-e6e5e0033458@flipper.net> References: <20260303-bq25792-v1-0-e6e5e0033458@flipper.net> In-Reply-To: <20260303-bq25792-v1-0-e6e5e0033458@flipper.net> 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 X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=4128; i=alchark@flipper.net; h=from:subject:message-id; bh=gbAU4zrwrEG67lPkWkojKT2Pi1hPLMXLErFJjWvmqxE=; b=owGbwMvMwCW2adGNfoHIK0sZT6slMWQu+6+m/jp+k5yUXuG982Z5fbkB6av9PFj4MhN5Trb1f FLI+mvYMZGFQYyLwVJMkWXutyW2U434Zu3y8PgKM4eVCWSItEgDAxCwMPDlJuaVGukY6ZlqG+oZ GuoY6xgxcHEKwFT/r2D47+DMreW4sfehk+e1Po8gri9zP5+ckFD5sabBrNhCUfbJOoZ/ikvnSz3 ruXcxPqyINTt1YVNNR0y+7oeP6um/2+RiWx4xAwA= X-Developer-Key: i=alchark@flipper.net; a=openpgp; fpr=9DF6A43D95320E9ABA4848F5B2A2D88F1059D4A5 TI BQ25792 is similar in operation to BQ25703A, but has a different register layout and different current/voltage capabilities. Expand the existing BQ25703A binding to include BQ25792, and move the voltage and current limits into per-variant conditional statements. Signed-off-by: Alexey Charkov --- .../devicetree/bindings/mfd/ti,bq25703a.yaml | 79 +++++++++++++++++-= ---- 1 file changed, 62 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml b/Docum= entation/devicetree/bindings/mfd/ti,bq25703a.yaml index ba14663c9266..99b4fba7c1d4 100644 --- a/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml +++ b/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/mfd/ti,bq25703a.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: BQ25703A Charger Manager/Buck/Boost Converter +title: BQ257xx Charger Manager/Buck/Boost Converter =20 maintainers: - Chris Morgan @@ -14,7 +14,9 @@ allOf: =20 properties: compatible: - const: ti,bq25703a + enum: + - ti,bq25703a + - ti,bq25792 =20 reg: const: 0x6b @@ -23,9 +25,6 @@ properties: description: Maximum total input current allowed used for both charging and powering the device. - minimum: 50000 - maximum: 6400000 - default: 3250000 =20 interrupts: maxItems: 1 @@ -50,18 +49,10 @@ properties: =20 properties: regulator-name: true - regulator-min-microamp: - minimum: 0 - maximum: 6350000 - regulator-max-microamp: - minimum: 0 - maximum: 6350000 - regulator-min-microvolt: - minimum: 4480000 - maximum: 20800000 - regulator-max-microvolt: - minimum: 4480000 - maximum: 20800000 + regulator-min-microamp: true + regulator-max-microamp: true + regulator-min-microvolt: true + regulator-max-microvolt: true enable-gpios: description: The BQ25703 may require both a register write and a GPIO @@ -74,6 +65,60 @@ properties: - regulator-min-microvolt - regulator-max-microvolt =20 + allOf: + - if: + properties: + compatible: + const: ti,bq25703a + then: + properties: + input-current-limit-microamp: + minimum: 500000 + maximum: 6350000 + default: 5000000 + regulators: + properties: + vbus: + properties: + regulator-min-microamp: + minimum: 0 + maximum: 6350000 + regulator-max-microamp: + minimum: 0 + maximum: 6350000 + regulator-min-microvolt: + minimum: 4480000 + maximum: 20800000 + regulator-max-microvolt: + minimum: 4480000 + maximum: 20800000 + - if: + properties: + compatible: + const: ti,bq25792 + then: + properties: + input-current-limit-microamp: + minimum: 1000000 + maximum: 3300000 + default: 3000000 + regulators: + properties: + vbus: + properties: + regulator-min-microamp: + minimum: 0 + maximum: 3320000 + regulator-max-microamp: + minimum: 0 + maximum: 3320000 + regulator-min-microvolt: + minimum: 2800000 + maximum: 22000000 + regulator-max-microvolt: + minimum: 2800000 + maximum: 22000000 + unevaluatedProperties: false =20 required: --=20 2.52.0