From nobody Wed Apr 1 11:15:00 2026 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 78B4E413258 for ; Tue, 31 Mar 2026 15:43:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774971833; cv=none; b=L8BoIDdHtGaExxo7TL92RvNVoP9tAuR62SinjxTvbt2d2HJqhpC6fV6iKwtwTcQiQhi1222wknCMS5gtOH/6W88uumK5Mm3JKyEo/6gZk4ul+3hpd9JibDcfPprUeXdAIBxOwV35zlFAhWS6VZ5Ut0zck0lVH06za2Vs0ipNy68= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774971833; c=relaxed/simple; bh=Kch86XWLNpsoWXsiUYScxG9+qZq2PDWJ+mVUNiuprdY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V0/eRPmG884oW/Lfe9i3PxaZz85XpAFWQVRDubE1B48hpFZsVcQLYjoxWAInd+N4RNNtJtiIVFW4aN7ewoQx+Dx/d2dYK5zMoiNGEx+zwlV5y/5A8wq+2QrvuL2XSX91RuYB2IcRube0UlFJp4JhD6eqkWXc70llukNgGnpUKLY= 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=SBJvd74k; arc=none smtp.client-ip=209.85.128.53 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="SBJvd74k" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-486507134e4so66854195e9.0 for ; Tue, 31 Mar 2026 08:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flipper.net; s=google; t=1774971830; x=1775576630; 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=a3tePfAp0V+6zfOlKlirFvJa8IZ0hYoxL5FVcQEbR28=; b=SBJvd74kiLcY8RlHk0XC95rT+rG1H/QJ9eHW7mLJTA0jTELVftETWRwBap6qGGLXoo 4PBwA3vp4pWlSncXJKmaUVe/2a73AGKBjzvfwp68blpMdtPDCSbIQp+CWzvL1mbKBYQN 11zx1de7/JalUwkugmfoxZAI7NiImHnfKPlXns2m2Sh6s5aMccqedPC6MJYThPrQycCW JxTebjlsBDgQ+bhlZUsJkfc18li30ASnQv14+dqifBt0m8taAVX6UFoseXXb7R1hE3dx YZonYaFKgmAnlZG/N6P9flleVgxIfTAr3whJp05NzV9H2eHM13oDFhzMb5aJ+HO7KzhI 4YkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774971830; x=1775576630; 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=a3tePfAp0V+6zfOlKlirFvJa8IZ0hYoxL5FVcQEbR28=; b=OR7Hi1evwHFfCtmRaTACRSkrg5j914mLPHZYoaPV4iVKUfurAgIhbYkMOnwj/uRmOl bTSqYoGOmwwpHOOs3aNPNANXzx8SlusaV0cVM5EBarBp6xHtA1+xUlKaux4PFT1POcWY zIR93398TUXDwR3g0u24H+NRAeXZ3hF+/9r+cUlrQGpgYK/SZdWJg9zZu+JCZ52JwDTa uDoJ3ZaxaMSfjLq9fvqSlxNhkUf9+ZyOqgObf8JpwgdYrEPSOwu1haxQyEaZk3Stw+Yf exbDOtesBE7HDDJ495sn/reCIeMbvBauerBZQy/hS4hmQwIV6KwST0pb8fen/tFAFqrU jfCQ== X-Forwarded-Encrypted: i=1; AJvYcCU8Me7jWZDHZ0jqWzZ1cqlDHe/CBL3Y8vbJ6tHmegHHdj7U5sqQRgH2U2qzvkxZbv+uCFlFhq/0W5f7RgE=@vger.kernel.org X-Gm-Message-State: AOJu0YzMi9ooREXOWr4Rhr/pOhITLX2lPPXJ2uo2rpdZ0/8HOdqtFqCl E09u4tglSHMENkI4SjhQS3695Kq5lxZ8Wdaxe3mfOLIZyLSjw7yJvdaWBFqBC4PxRjE= X-Gm-Gg: ATEYQzwAeOBnJj+xx76ZsPR98MkYcZFHWjHPVWdiZIyKaIvzwfuMeFOv712BvceqfwF Vlhg714X4nzrTajd7toAZv+QXaZIUQIzsY0azUeej8Xtr684sD1kYuBgErDlPppU4+YRcxowD/6 zZPTsoU8yj0oreHpIP4g1rEAppUYh8qRczraWrRwgLfc+qHsqwMuhi2lhlbNqmR51gMvSp3cKgb HVlg2lMEPFGLSlbqXoS51slvXmi2QOfPkDFjAubMuohYhUx047w+4kD4nAIcssw6UqmkccRdXf3 HVXJuFvRxqKiPvzU0vIBxdtXtwQptFnc9xGqI4U+LLWng9IAkgSmYXBA8tbPVbpoTYs/c6JxSvj Gz8hHCr7dOFCiyZbXF7TLgGev+6X2cZAuDOxhr4MAO/QIbvua2dEdflX0RZiCwqVQ5UkWqAJZnH LWToiEBakx3cACwR+5Np76x6wNr+nTHJ5c6xAfwz8nHDaa5X9WW4tDRSKNFF6TtBBCAy+G4JcLX K+lnwoYby7pV2wL X-Received: by 2002:a05:600c:3b27:b0:485:3aa1:a7f1 with SMTP id 5b1f17b1804b1-48727d5a252mr294923335e9.7.1774971829849; Tue, 31 Mar 2026 08:43:49 -0700 (PDT) Received: from alchark-surface.localdomain (bba-86-98-192-109.alshamil.net.ae. [86.98.192.109]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4887c8852a5sm48412605e9.9.2026.03.31.08.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2026 08:43:49 -0700 (PDT) From: Alexey Charkov Date: Tue, 31 Mar 2026 19:43:38 +0400 Subject: [PATCH v6 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: <20260331-bq25792-v6-1-0278fba33eb9@flipper.net> References: <20260331-bq25792-v6-0-0278fba33eb9@flipper.net> In-Reply-To: <20260331-bq25792-v6-0-0278fba33eb9@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 , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3922; i=alchark@flipper.net; h=from:subject:message-id; bh=Kch86XWLNpsoWXsiUYScxG9+qZq2PDWJ+mVUNiuprdY=; b=owGbwMvMwCW2adGNfoHIK0sZT6slMWSefr3edDpbxWsjpTPhaqe2KMzNvBRvXLWtwtxa5cMFo w/7GL3/d0xkYRDjYrAUU2SZ+22J7VQjvlm7PDy+wsxhZQIZIi3SwAAELAx8uYl5pUY6Rnqm2oZ6 hoY6xjpGDFycAjDVeSqMDOftfsW83SDvWNwUMOnUhAVe0n5LRE/7ntH2exdflL8q7ATD/5BZqY3 BoRJKf6xn7ky5/DvF7s36NQXSt55t6VPN/dLMxgwA 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. Reviewed-by: Krzysztof Kozlowski Tested-by: Chris Morgan Signed-off-by: Alexey Charkov --- .../devicetree/bindings/mfd/ti,bq25703a.yaml | 73 ++++++++++++++++++= +--- 1 file changed, 63 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml b/Docum= entation/devicetree/bindings/mfd/ti,bq25703a.yaml index ba14663c9266..cdce83f05804 100644 --- a/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml +++ b/Documentation/devicetree/bindings/mfd/ti,bq25703a.yaml @@ -4,17 +4,16 @@ $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 =20 -allOf: - - $ref: /schemas/power/supply/power-supply.yaml# - properties: compatible: - const: ti,bq25703a + enum: + - ti,bq25703a + - ti,bq25792 =20 reg: const: 0x6b @@ -25,7 +24,6 @@ properties: powering the device. minimum: 50000 maximum: 6400000 - default: 3250000 =20 interrupts: maxItems: 1 @@ -57,11 +55,11 @@ properties: minimum: 0 maximum: 6350000 regulator-min-microvolt: - minimum: 4480000 - maximum: 20800000 + minimum: 2800000 + maximum: 22000000 regulator-max-microvolt: - minimum: 4480000 - maximum: 20800000 + minimum: 2800000 + maximum: 22000000 enable-gpios: description: The BQ25703 may require both a register write and a GPIO @@ -74,6 +72,61 @@ properties: - regulator-min-microvolt - regulator-max-microvolt =20 +allOf: + - $ref: /schemas/power/supply/power-supply.yaml# + - if: + properties: + compatible: + const: ti,bq25703a + then: + properties: + input-current-limit-microamp: + minimum: 50000 + maximum: 6400000 + default: 3250000 + 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: 100000 + 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