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: 90024 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp176351vqo; Thu, 4 May 2023 02:38:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5poUzFNcjGSvux2yK19V0W2LtQtnedLMw+P+ZcjgaR1gDyYnr8ELnFSAYPiWM1IxRpOuS5 X-Received: by 2002:a05:6a00:218a:b0:63b:67d5:be9c with SMTP id h10-20020a056a00218a00b0063b67d5be9cmr2043663pfi.29.1683193116098; Thu, 04 May 2023 02:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683193116; cv=none; d=google.com; s=arc-20160816; b=OOUZeJv+VB0MhuaVjhTPY1Wgow3ghxI4BdfkRwh5uTXjvqPEOkgokbbwCeD0DcfuqU iENB87wxHkaBUkGIY0M6UfcRnOV4XwXQPFgfkK4ZNgcBugLCsehrCGxKTW+E3gAlikui Bt/Fyfz5toaOFZPMWw3fgAc9SJeXvSc/zg9/823tAeSlrFtmrKXWmla8BJnNFPbErx5W eMXYxPs8JFF5yl4jWqPnT0H5IYZzjqaZVzXd0fQwefi6n15TRl4pMUh4rHhIFso84YQh E99aUjZ+k9EvVzOtoqgLTsy390RxhN7ZjvsptVZ87/ODJlanoBO6rzlstL59mE1+2fqQ 7jEg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xTuVk6d/jrXuaIb/XYcfnjgJyJ+p5y/gtLPxLnYpBYc=; b=xSibcwH5B6+XwOAaJ0viz7pirb9HKv63ppmU5hFJaY7B3IPIp31Xu4B5JAnr9QuO0Y bAZYLhtGZ1Ea2ADKY4XLOhFo9ZwXD8iLw0XYl/My1SChknaHVUi0H99+28qWVsMVB7xH GalzjO8WoIfG67xz8c329NjoyT/tk4JuASpu93KNqi5st3TKnZ756CoQ3dbSPM5UWlEy BgvU0c7jorhCJfRopl64035xYWiRVgKa0IHfhJtiAhP+z3XkPm4/ZmZLl8GE195O1+Tg Jr9DNnhFvf4oM2F6BOSWi3w7Qcuvtxvipbuvq9FuChZc1DIfST8ZE4b+kfxUMEpia8pX 4kGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=a3M3uutB; 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 x24-20020a63db58000000b00520d737cf49si35320816pgi.271.2023.05.04.02.38.23; Thu, 04 May 2023 02:38:36 -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=a3M3uutB; 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 S230369AbjEDJa7 (ORCPT + 99 others); Thu, 4 May 2023 05:30:59 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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?1764955904958171713?= X-GMAIL-MSGID: =?utf-8?q?1764955904958171713?= 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: