From patchwork Thu Mar 30 06:52:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hermes Zhang X-Patchwork-Id: 76912 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp926239vqo; Thu, 30 Mar 2023 00:00:23 -0700 (PDT) X-Google-Smtp-Source: AKy350YsoVWFT+ow1HnXVGyu+e09/qBw5IUOoIxGPmXgphYIF/HCZq5L8ZFrGNsPbrXTKxNT4w79 X-Received: by 2002:aa7:dc10:0:b0:4bd:94b9:b8a8 with SMTP id b16-20020aa7dc10000000b004bd94b9b8a8mr20915727edu.26.1680159623100; Thu, 30 Mar 2023 00:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680159623; cv=none; d=google.com; s=arc-20160816; b=WkwQ0bQrYMBBf7m3wGI0faST6wqhArk80rzLO/EZtA2zBsGxzSDA+ygbJe4NRtpaYv DLbWM+zjwyfE19xpI5KC5RppXxb7pSUmcrwxFltbIjebjipQ1UB/YrebF6COBVK+ccsX 2VRV5Hf7LGQqddgoytzvrrCDlMLOQPaAz0B/97Jy18+3q5TtpEL47NMnZAuGZDLQyH5H VgySP5wsW3GGsDigowFC/uvytUVTn+L9YB7G3DuBt+qQbto468l0DF52fAa7njMSZjHo wIzYiXqm6vKYAExSTg+MlQ2iwAUGGZA+JVuDQhoWNtIYgdax/qXJ+V4oVxGaDBRSDEuQ je+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GUkfkVjjfUh4Vh4vq6xCLs2XptKtdvQVMMQaabfQcpw=; b=aEYxckRnnr26+nZRHNJE5covIKc54hKtZ7ibWM5R8nmnq31I5hiV3YoUBtvSyXDuYO KUR2SH6AOdWYuuMHDW1ddMLDGr6cioSyprX6Wx3Ts2OeuKJiwRgOBDjV5om3YvjVAQ4E Urv4xYNQ2HThRc0lV9RYUIBHNdCDmejqe03kLxfaoNAzXNorfZZBmJbYgJ7EE49+q/Vk RICrqsemhNt6LQ+iaPVBfznyiplQcvDiiLtOCMtFPQw+xYHhsHYHdEpBKGIdRfiNdD8o LutdRi5Hpe8n8BQpyZhIFVXnMV1CQYz/O4M3iTccFWS4pHd+Lc1rxnGjEdA7rVzG+mai 8aew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=aIJEA355; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020aa7d7d0000000b00501db4ea3e9si23232285eds.173.2023.03.29.23.59.58; Thu, 30 Mar 2023 00:00:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=aIJEA355; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjC3GwQ (ORCPT + 99 others); Thu, 30 Mar 2023 02:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjC3GwP (ORCPT ); Thu, 30 Mar 2023 02:52:15 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AB4F19F; Wed, 29 Mar 2023 23:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1680159132; x=1711695132; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GUkfkVjjfUh4Vh4vq6xCLs2XptKtdvQVMMQaabfQcpw=; b=aIJEA355ewMBlrdd6tYZHwXR0/rhkVhONW9NGBGusTo/lZs+Q/mH2xmz tywP9/xi0/R/ovzo+C49aJ2ZacV4obyswiLOyaX3zSfb/eqoTrYmvcKM5 nU/XTf0WFjnvne+lVCoO6yIR9FrrYprb0VzY203fwSIVGZGe8lkygZQYO pKAWJv1Koc/xnZQpHJ7CvYOAOiSO6yqL0jtUl82DpfJalFA4DnmzvlAfY kj19x6nsyvOF/qRfNJVgy2/7Qe7gU0ArfvMvgZqW1E7wPkKjvXC69dvxG JIeaPc4guMXveDnzMw0IIK+T0d4qvG4E6gLk06oJ7kdzRVnf4JI71HnHi Q==; From: Hermes Zhang To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andrew Davis CC: , , Hermes Zhang , , Subject: [PATCH v4 1/2] dt-bindings: power: supply: bq256xx: Add ti,no-thermistor property Date: Thu, 30 Mar 2023 14:52:01 +0800 Message-ID: <20230330065202.1349948-1-chenhuiz@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761775057001834449?= X-GMAIL-MSGID: =?utf-8?q?1761775057001834449?= 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 --- Notes: v2: change property name to ti,no-thermistor v3: drop "|" in property description v4: rebase bq256xx_charger.c .../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: