From patchwork Thu May 4 09:30:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hermes Zhang X-Patchwork-Id: 679262 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86CDAC7EE22 for ; Thu, 4 May 2023 09:31:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230391AbjEDJa6 (ORCPT ); Thu, 4 May 2023 05:30:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjEDJay (ORCPT ); Thu, 4 May 2023 05:30:54 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 191A98F; Thu, 4 May 2023 02:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1683192652; x=1714728652; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xTuVk6d/jrXuaIb/XYcfnjgJyJ+p5y/gtLPxLnYpBYc=; b=a3M3uutBJu7f1inuj05buueZ7ytf2tD+fbaVYqGvmIVbyQOwQM1o6VTF fuDUwYl9BVR7zAED4ySBmkcdKwDoRiwmcu/PvWFwNJuw9Pwm/XRdsYAMP szMsGpf3URL0caoOqTbbkscVNApZ9CWxvuskobTaPX5OcUlzsLzQwyaae Zd0XTe6U7EzPXEG+HBcg1JiZreIC6m7e1TwiWZrI11pTc7kF1gX4Ih5EL Y5dmDBWcKaF1gubP19sjlWf0FmUER7twwogP56ZOOI7Dr8kZeamKsv1NA sd0w8RFdJ/ggC21MbciAzn7dAjLsQaPYrz3R35cpChLJyph82+4jv3jHh g==; From: Hermes Zhang To: , , Rob Herring , Andrew Davis CC: , , Hermes Zhang , Krzysztof Kozlowski , , Subject: [PATCH v5 1/2] dt-bindings: power: supply: bq256xx: Add ti,no-thermistor property Date: Thu, 4 May 2023 17:30:36 +0800 Message-ID: <20230504093037.2056146-2-chenhuiz@axis.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230504093037.2056146-1-chenhuiz@axis.com> References: <20230504093037.2056146-1-chenhuiz@axis.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add a new property ti,no-thermistor to indicate that no thermistor is connected to the TS pin of the chip. Signed-off-by: Hermes Zhang Reviewed-by: Krzysztof Kozlowski --- Notes: v2: change property name to ti,no-thermistor v3: drop "|" in property description v4: rebase bq256xx_charger.c v5: add Reviewed-by tag from Krzysztof Kozlowski .../bindings/power/supply/bq256xx.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml index 82f382a7ffb3..4fe9c3705265 100644 --- a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml @@ -68,11 +68,29 @@ properties: Interrupt sends an active low, 256 μs pulse to host to report the charger device status and faults. + ti,no-thermistor: + type: boolean + description: Indicates that no thermistor is connected to the TS pin + required: - compatible - reg - monitored-battery +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,bq25600 + - ti,bq25601 + - ti,bq25600d + - ti,bq25601d + then: + properties: + ti,no-thermistor: false + additionalProperties: false examples: