From nobody Thu Apr 9 18:45:33 2026 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 4AEC634CFBA for ; Fri, 6 Mar 2026 14:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772807596; cv=none; b=Z6RQXFUMctk1szmR+rlvQ9HRvGFYTdz3FggF/A6JFUpEn6SULYJ6c3ROtdBTbO4theZt6kQggBicL+nq1w58MtL+d2Szu4rUR3+7+tnDUx3nTeX29pXTxxqO8RFDZ845YuMTioVUKQdV4+BpuznHTKyf1yWLCx02ahV+judk1RQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772807596; c=relaxed/simple; bh=58YP2dJRgAizAOikYaKjM/irmjn+e7RczszyYkhkS9E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KMJqpiQUP4FrmxFwewwE/5CvqXmgX6ZojPIA9Tdx8NQJgvbbfoVpuNGzLSfYGoyJX1vKAPkNnKA2zavPSLiVgPhshTr7ChHj1OHMc5L8BUgLVDvrhe6OUYQ9BCfl+n7hftBTt63T1rntopXuUcC5Sj3chTBC5Xay8LsrFBeBmTo= 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=g0gDN96p; arc=none smtp.client-ip=209.85.221.50 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="g0gDN96p" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-439a89b6fd0so5965210f8f.2 for ; Fri, 06 Mar 2026 06:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flipper.net; s=google; t=1772807594; x=1773412394; 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=jt/bQE8Be9/7vIBUKX4+9xpaDCMMIJNvl2zw+VOvhnY=; b=g0gDN96pc3H1b+eveNBdoH6ko0Exh0Vn1npPf9W4gp+ELRvpKg6pIMmGbUc3X7JjZ8 PUd9CFrCsL2D1BdjI1KvnlMSaePMUeGq1h4VWXXuWS7k+W6c1B6gSXNySjZEZBGOAjtN ZRaxYSybu3V/nf2NqC3/O3uR74HVGqRKh/uNF8ZjuhTBVOwZlj0s5fOifyAv/grLiP1D g0D3C4bqtQ3foTm9H0egWAXzxdqIrNv9VuUDrgLKezHTeyErzrxjmejTLB1cO3McGrn2 CPWA9eun6iXBDRp7dmwuoHrb3zmbf8UMaysk381gur0JR7O2k+fSOm6fteSdMo2BdNA5 ZDWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772807594; x=1773412394; 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=jt/bQE8Be9/7vIBUKX4+9xpaDCMMIJNvl2zw+VOvhnY=; b=L1qPHUvllEqb68qfi65ssyFHFEFJsnJQH4EUPGzBVVQlh9xPuEoIJ0bg72vzv49IXC o/c8ICXIxN/21j/XIObg1jUybftVDsd+ltZicNLzxPbDStpSARLYRGac+WzbmzKkNYG3 VJpEOU7MXmJMT3w/qfmQY7qx0ZZUo6qIEkuk24T8NktwwHS430Wb1y5I+FDgdaB5rp1D XqvN0fLk2UbkEFn8DAuminlXtJQLqDwehiap7fzLcXpLwBlNLMuYk0hlwxK7kb7/Ekx9 ldggDIADzCmM7jNNMvPhrSOG2p/i82zHp0w1ujNkxt/N5YBQmmXbRrM5sIq81TVHhy7F Q1+g== X-Forwarded-Encrypted: i=1; AJvYcCX3TxXeOShh2VMhqwItoaSUpq0kiEG627tJ1wFzs1QlpGf9zmmTuUP/y0LKa6KCrY7ScZ1ycS4acg767bA=@vger.kernel.org X-Gm-Message-State: AOJu0Yzkg5gudJX3Xs40f60sZm83986XwPJRiAR12rIxBXQEjOTYfJhE etIX1nhiK+jn03T+887x5WZvwBQCLCuO0N3MNOh1NpvSfjCXhJSccu2nD6M6u8RV6f0= X-Gm-Gg: ATEYQzzGi19XDlM3ppl4UxWyYwI3fLhC2eAjfjaqxskjtK/vAGaLTb18V4nzVwX4DFr AXt6Haz35Om7KzNXL4t3iLIgyktXLkpsuSTmE6tjcYc9+IWNGc76HuOWJC1pYSFS3ocJzoH9zri 8O38B4LRO/31dZ79B3F5/kGTk6nvAQc+8SCMoYWHoHBblCrO0tnRUsVuHmw8mhfjtg1zA9GqIi5 I8skbGU5bIUHTXxD8zO7SXZ64su/3+Z0xVYJPXTFVkvo+EG6CZYPbDH9e0ti8CG5ScXQxSY7WLe JE1YueZZPRIXD8UXgTDrYZSow+rRBbvtpcuJW6INbtGQx9saxBbRTvc3XEUpTb+eOAzff8NiRbr h6NgcL6VM4r7cu63hE+Y7I/wWMvUGLM6vKJkedob/dmW+6dQP5ObmokrZJv7t687O1AZmaI8Phu MmdSCaTYzFe0oubHFYPJGoK4rVJQTu4+fooLkh0WMsX7Y51VuPW8URFlwRdhRfzcXd6DNIroiY3 CtxgA== X-Received: by 2002:a5d:5c8a:0:b0:439:ac98:751f with SMTP id ffacd0b85a97d-439da65764cmr4107142f8f.23.1772807593609; Fri, 06 Mar 2026 06:33:13 -0800 (PST) Received: from alchark-surface.localdomain (bba-86-98-192-109.alshamil.net.ae. [86.98.192.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439dad8daf2sm4635281f8f.2.2026.03.06.06.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 06:33:13 -0800 (PST) From: Alexey Charkov Date: Fri, 06 Mar 2026 18:33:01 +0400 Subject: [PATCH v2 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: <20260306-bq25792-v2-1-6595249d6e6f@flipper.net> References: <20260306-bq25792-v2-0-6595249d6e6f@flipper.net> In-Reply-To: <20260306-bq25792-v2-0-6595249d6e6f@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=3798; i=alchark@flipper.net; h=from:subject:message-id; bh=58YP2dJRgAizAOikYaKjM/irmjn+e7RczszyYkhkS9E=; b=owGbwMvMwCW2adGNfoHIK0sZT6slMWSuero4VYovWf7P7kmhP2IWiaW2vvps0vCwm6f82eKKQ uYkqcovHRNZGMS4GCzFFFnmfltiO9WIb9YuD4+vMHNYmUCGSIs0MAABCwNfbmJeqZGOkZ6ptqGe oaGOsY4RAxenAEx1gh4jw8TnCx92iPPs9ZaZef5tCBtXYwDT1NpztxyXhjwN7E47MZORYZNpoNW 7XAFNk9Uypct+i9/+PH39h5uaF5pM1rzivmLBzgcA 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 Reviewed-by: Krzysztof Kozlowski --- .../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