From nobody Fri Apr 3 14:39:19 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 D65E93EAC95 for ; Tue, 24 Mar 2026 11:38:26 +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=1774352308; cv=none; b=c0pyuWIYvIpU4IXlfABn71vPz4FCNT5ZSINFIBKy3wktpjYwXuBE2p69mZ0Ids0WJ4D7ozLH4E/GZPrQZN7XbdowpBm3RcWplpIeHperLiw6G84kv2AAfiYy4A0lJBHKRPTsyWdbeSKdjYzT1P6jSS7594NC1UIqlbcj5whzJ80= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774352308; c=relaxed/simple; bh=Kch86XWLNpsoWXsiUYScxG9+qZq2PDWJ+mVUNiuprdY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TeXcwBjCF6wmtS398+hv11ob2giejHiPyT4cgLwbscUtrNj2aB8SQ09o5ONinHk0Qd8Yh3rUB8l8pD+nhRXUzOcIAHE8k8IYI8IdRCRiA1U/E2jvuTrqWg1ekDgSJ6YaWzpqhdZcuRXOeTK7rgVjXOK73Ks/1X0We/5+jF2puYA= 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=ubRAuAF8; 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="ubRAuAF8" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-486fe2024a9so29770065e9.0 for ; Tue, 24 Mar 2026 04:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flipper.net; s=google; t=1774352305; x=1774957105; 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=ubRAuAF88g4+lGWoPq64KrLUncS0g4eFfK1GJ4EduzgXwzIMBMpksvLqtcKEpnkqYr RjJixLr6YTCJErncVwJ/iz1ObtxBs4QjKFx7oAsPnVRuTlej7zfHXIBeCu1tSZecOhDP J5r9bg8tYNJqsveGsmqym3qp58bXbvdi3aM/spXa8SmHg8Dn7vJ8dfTC4+ZwSsQtQXko +siLqm4ngQT5QRGih05PnlMinhG/ddNVu0S3NzlR+k923E3ruKg2OQ1X/5ij1/NzNM6m /VxMy5C53NzbdxF6JUBOZPvL5n2yEgrupK/gAgp8hW7nsZ5a8Mur+c2Mw489bOU7vsJN tDAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774352305; x=1774957105; 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=k4ir/eFyuVlnZeAin3wnQhENp20mJt4l035/dQXdFGFOzwFXBQ+BCLXttLsiEMfDkT dMa6rIWxECl/n6TcOeWmEjt1qi2BxCFWqL/u7tc0H2uNwTFO2cdFKWQRcTFReJsFY9JW QncEwZexfwEJi9bz615JfMyuKM/uY3mBD5fCcF0+osWdmXukDNKQU79mJop6Ezhgw4dg Odkfevm6CCBwDF9G4xg1YgOKRmWq6tHI9gahoI9jHZUzACRqYgrklgP1oc2cAsSyn3+Y 0Lb6eONiZEz2HbETWSoi1UjBVtOEsvwQSfLWwcalkXNmhhO9Pilnw/LKucQZXC2UH33n 7e6w== X-Forwarded-Encrypted: i=1; AJvYcCWFfMmrCCvkmpaWV5h9lg6i2QA0hwAZyaHqTXDkuEfHcZX+r9w0cwsFU4GOZy9BXiLxSP6g5ZarjKdzlfs=@vger.kernel.org X-Gm-Message-State: AOJu0Yw4xjLyPgugyp9WDe5qmFSYBEJul5B31qm71Ak4RwwTTWx5TSaN zFpNfvfLU8qBJgVdANbJqpctjWBWW4lVPXsusWSfrrx0l2cY2rTpwY6PUwfbN257ErE= X-Gm-Gg: ATEYQzzJHtoulV18UZRR1rhJfcWt1Uwom9ZiUBGy6WiaIk6WjKLuwg9GlMwYUUpQN17 Kr+QZwkV6I21D7T8zHhwWUVTjOSpitoA/jg/2ILgnvD8j7MrfVHmUs+E+EYUw1ol4Y+G/ASlR9k Gd9hJXoeoMorvmHgQ9TBHwi4hYcQHY4lHJ75IgLJ1zd9xQzV6bE610qsduTtzlpI/mD7iTtvssi HSipfLWNaZ3CJ7KWB32Lg37h2RGfH129LZflSCXhvUGsQS29O8ZF+hh87unkSXfxk6b7ZMYj6ki SePPPl4zTIssud1XWNPLwM28prtJrIGioXJEJ74WFLzMAM75NBnVAc6QhahDIAYbtogb7mAcqWf KCmKq2hBhzYXBOKI5ZdJZQPNlGlKyoTHQM6nng7wYRAQ1IHeINY0S1iQI8T+lslDU8EwX2WCF6O 4VLD2f+ljhDKOyPQ/vfJHK1E7oL4P3KuBVuaS3uu4IrF2xaq+7cBVD9P5VgVyKnSV7jCPoS+SAE t572A== X-Received: by 2002:a05:600c:4f10:b0:487:2e8:69c5 with SMTP id 5b1f17b1804b1-48702e86a88mr199543535e9.15.1774352305270; Tue, 24 Mar 2026 04:38:25 -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-4870f6c0fa6sm20846715e9.1.2026.03.24.04.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Mar 2026 04:38:24 -0700 (PDT) From: Alexey Charkov Date: Tue, 24 Mar 2026 15:38:06 +0400 Subject: [PATCH v5 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: <20260324-bq25792-v5-1-0a2eb58cf11d@flipper.net> References: <20260324-bq25792-v5-0-0a2eb58cf11d@flipper.net> In-Reply-To: <20260324-bq25792-v5-0-0a2eb58cf11d@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=owGbwMvMwCW2adGNfoHIK0sZT6slMWQeKl8b/UHHfAfH3BNlrTrCV1ZnLHZjV5NhvPzZ+aL28 Q/X5x+X75jIwiDGxWAppsgy99sS26lGfLN2eXh8hZnDygQyRFqkgQEIWBj4chPzSo10jPRMtQ31 DA11jHWMGLg4BWCqQ7MYGU4/Ulia0nej+siCabodsmeTlz/LZ/+6flfnzJU9Pi1r5ngz/A9vfH+ wd9qU+HPN+iL3m15oxeRn3dXSKd2h76M/XYlbhgkA 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