From patchwork Thu Mar 23 03:30:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hermes Zhang X-Patchwork-Id: 73762 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2702884wrt; Wed, 22 Mar 2023 20:45:18 -0700 (PDT) X-Google-Smtp-Source: AK7set8nQLcUK/Wvqk/UkHIrSAKbjLLxP1NP+M9/3lHA7vrxEug+HwciZCiEtmuwgqt9YyJBdYG2 X-Received: by 2002:a17:906:46d0:b0:933:3a65:67ed with SMTP id k16-20020a17090646d000b009333a6567edmr10783087ejs.75.1679543118024; Wed, 22 Mar 2023 20:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679543118; cv=none; d=google.com; s=arc-20160816; b=zSkYIPUfJB5nAbaZsoqsoM7Vf9EuIyMnEUk61Gc+A4tKADuCwq3Kafd0M74EurN9gm xHPt5zx5v9vrGDyoFCIMtI5wsxR4lNJ23t+Ywd9rW3oR6vtjpoweGGjLvlh4aCcOyDFg iRhQpQo7HbJ+9ebK2iWXG3DCZxbN2t2nIbx1fnF+iXFsgol6OB68LvwhKMQpJpOANPF0 dKS9kfKBlqmmVRbPZyKqN86jkoRPx6TMXxgttcs9IKO2sKx/+GoR5j1vsyjEhAKsF2+N xbqGkvb0oUfYjC2X8AeH95PewVgywpYI5qoIzLjJUu4DKXMkU0amNhRZxF7UjYhIXOWo DFTw== 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=gq0qyZKNaLBz1ZipLKUy2zilo/3yGKq4flu6j9JgEcA=; b=o5TCXEgDUeBE6moPBtphV5/XKDNCpr1jfiRW+/jJIC5BEkg60DowdwZAWhkQVzaqVR 7jGdlrlbwEV4zBWWEiHvR6fJDfl1J3MLVEk1sb+TCpRGWZ3ZdmrBs2thabvB4DBVxHgP /HWREfNiKNf2JPWJSdQ7gXOXp+kwulWW+10fStSwn731VnLiWdjUqYrJz6Z+7q8MuJM5 quzWioG5phvB4rUjr15emWIYqw0+Ok2exMwNR0/tHqyQ6o1ixabByF4Z/UEh4Ue5TcyZ M1UUszuXKAZhB+vjVfOwKRGIAE7Vn5eZ4i3a/kP7xLJWeMt7zs4rb4Y61ZyTdZBkulAw ra5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=iRriFXrU; 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 qq26-20020a17090720da00b009332543cd23si12860183ejb.144.2023.03.22.20.44.54; Wed, 22 Mar 2023 20:45:18 -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=iRriFXrU; 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 S230039AbjCWDad (ORCPT + 99 others); Wed, 22 Mar 2023 23:30:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjCWDab (ORCPT ); Wed, 22 Mar 2023 23:30:31 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CD1F2596C; Wed, 22 Mar 2023 20:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1679542229; x=1711078229; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gq0qyZKNaLBz1ZipLKUy2zilo/3yGKq4flu6j9JgEcA=; b=iRriFXrUbG8ZFhqeHZ1uVjNW+tOz93Ig1Z+TqoibcufxsZlVNH7JOWPC AVosds7ex1B0xjxtBpjWWZDrUsSG9gGrHuTS8WbilIL5uJ0nyXfq+HJ+P 0LX9k5I7eEVhLl42X0h1bGNw38NXxxw+00dRLUOqayyiJCthmV8jVqp8c 1XTTOPScPqUu5gBD/WvDkLsNwwFcOEg4VwTdEHe0KECRCFhZQ7btfBK+9 QU0UxPSV2emv6M3Skcil225+IaJdyN12BcfKnpfSpHAmRvB/fxypMguwL JQ4hVefIsMNkyNPbTHTREEmbQOshZJdByLcn3VgUxdgqD8Lhz/tr37o/G Q==; From: Hermes Zhang To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andrew Davis CC: , Hermes Zhang , , , Subject: [PATCH v2 1/2] dt-bindings: power: supply: bq256xx: Add ti,no-thermistor property Date: Thu, 23 Mar 2023 11:30:11 +0800 Message-ID: <20230323033012.416953-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?1761128604449123709?= X-GMAIL-MSGID: =?utf-8?q?1761128604449123709?= 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 .../bindings/power/supply/bq256xx.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml index 82f382a7ffb3..ab9ae6ca7700 100644 --- a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml @@ -68,11 +68,30 @@ 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: