Message ID | 20221102182011.106040-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp66892wru; Wed, 2 Nov 2022 11:25:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40YECVRiZPIrpGpj1JaQCuWo5E63uP/RP5SVV9ZIcBGwXIRNWaaZ/9vnrBqIjpBA5KcWhT X-Received: by 2002:a05:6402:3217:b0:461:d6d7:7f19 with SMTP id g23-20020a056402321700b00461d6d77f19mr4782658eda.109.1667413551171; Wed, 02 Nov 2022 11:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667413551; cv=none; d=google.com; s=arc-20160816; b=c4zxxEWnTHOBDjh1PZOAiURKzoWFKPI74/M/Py3x3eUgI6PctcrqTN7uMXfjVT7LEG ZcsButM69S9+DMtlGYdBPDQX1z2pLiim/hOeUuvcJakDHe/rHKEKv8KEHLh4yJtU2k1p NT0e/vJIqbtaj7TjgJUSa+pc5SeSGAcPzOrkexwyUT6CLs3FvKrMk5O2xsT1GC+1FvyB bIFZZo+Ym9LdtdeWfum3p85fD7lFqRH3BlsIfHz5pLug5JHSMhD98X1RyaAFBNvPsYqW w38JsjhS/NjLvN3isjH8fXw9Iblk7Ap7lCkBMJz8yVtlXNK+y+nJ0ijNHyS0AYLhMmHU r2EA== 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=PgH8+iPkG2HkoR14yXypmLmMN1g+buscpWKRVlqLP/4=; b=hd9e+334QFl4SKFNABjDMQoFuxOzu9p9rPc0b6ifzDyobn+SRGM+14tzJ8kBjIyTSx wUsftS5IWf1p06RRqBu0XpKclccw7tao2YZ3niEcY83+vn2Jq+ISNmBYj6Km27ZcLE+o m2fmkXNFMpDE7Gf4pmSyY4rGyZH5BP5fM/dglpbThFZejQdB3aMr4JJxWSZwSHtlIvA2 nlW8lNzyGRoOMlQbjtwUbC8VhWt/QJRVZi7wAKv+Nphbt/UTvdIiMVY3/cwkLDq3fC50 mX1ktH/5Hus/dnJEWWYTkSoXjWHjznnoGo5IGrZi6xXnnNhYk97DbIMXBmPORVFHWIic mp2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g5qhWsDe; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a17090669cb00b00783e7d72fc0si12896262ejs.272.2022.11.02.11.25.08; Wed, 02 Nov 2022 11:25:51 -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 header.i=@linaro.org header.s=google header.b=g5qhWsDe; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231645AbiKBSUo (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Wed, 2 Nov 2022 14:20:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbiKBSUS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Nov 2022 14:20:18 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC202F03D for <linux-kernel@vger.kernel.org>; Wed, 2 Nov 2022 11:20:17 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id k26so7815628qkg.2 for <linux-kernel@vger.kernel.org>; Wed, 02 Nov 2022 11:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PgH8+iPkG2HkoR14yXypmLmMN1g+buscpWKRVlqLP/4=; b=g5qhWsDeWUZf+m5OUQo8qmB9Ed32os7oG2djVX3jvfoPzImGy93QlZFzE0xA6JaAP1 i3nBl8QrDECNpiCLKSXqjf3AWRSkqVyrIqs/b70/uXT68xqI3AHpNevHd+oVLt67wHS+ moepsm+88S8MFFd04DVnhHYtvHAPXWHkbiNS9ULg9447FU5uC2UtvPRcg2ls1wAEPQkW 4952B9OeWlb0zlICo8DNbqbjQvZxbaDG1f5fn4LMfeRa/ZLfi5M/AcN/d7JndSxHH7jc y/+1kWOVqGNwO5BZ7J16JdRX7c/2kc+wbCjvDyfiLFprwFxCNHZy+JajwlVUn/SSVPwP hjtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PgH8+iPkG2HkoR14yXypmLmMN1g+buscpWKRVlqLP/4=; b=qj/QgfIGHf8mwoq5BLsQiFLhzxJXDxqOYrX6edG4tTWNevEBiv6m6BPihY4pFyr2B4 Wd5RiMeIW6+1q08lHAnpnOzoC5X3BJckmNTv0IgPeLPh/tS3asW/q6DcFmU9fsaQArfH 3+I0IXVFfEYklkBY2zdP9zsw+hNH1pmkYGziuW1/9oDaaaIW31O8A0lLuRiblwGq/LDh bJAn/jfSw33fIb+JhNCgWoKEFc/TumWJg1cYcu+MhKji0VC983tHQd5fH8MaflSFNthG E16ds1k92fVP3LKQCYZYEti+NT2bdZ2uYDZNZAzWaSf5d9CTjQ5LELT2cO1ZfWjmYtdL 2xhw== X-Gm-Message-State: ACrzQf0DweU5pjf0ZlATWpY3MiXjONvQcCSclQs9TM7r7saz6INHwwYo IPh4mZJxODrnlHDj9rarL5CB0w== X-Received: by 2002:a37:96c4:0:b0:6f9:f3f1:8e4e with SMTP id y187-20020a3796c4000000b006f9f3f18e4emr18631503qkd.534.1667413216822; Wed, 02 Nov 2022 11:20:16 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id t1-20020a05620a450100b006cbcdc6efedsm9081995qkp.41.2022.11.02.11.20.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:20:16 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Sebastian Reichel <sre@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH] dt-bindings: power: supply: bq25890: use one fallback compatible Date: Wed, 2 Nov 2022 14:20:11 -0400 Message-Id: <20221102182011.106040-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748409832168741771?= X-GMAIL-MSGID: =?utf-8?q?1748409832168741771?= |
Series |
dt-bindings: power: supply: bq25890: use one fallback compatible
|
|
Commit Message
Krzysztof Kozlowski
Nov. 2, 2022, 6:20 p.m. UTC
BQ2589[0256] seem compatible between each other in major aspects and
remaining features are auto-detectable (by reading device revision ID
register). Existing DTS already uses the compatibles with a fallback,
so adjust the bindings to reflect this and fix dtbs_check warning:
arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: charger@6a: compatible: ['ti,bq25895', 'ti,bq25890'] is too long
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/power/supply/bq25890.yaml | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Comments
On Wed, 02 Nov 2022 14:20:11 -0400, Krzysztof Kozlowski wrote: > BQ2589[0256] seem compatible between each other in major aspects and > remaining features are auto-detectable (by reading device revision ID > register). Existing DTS already uses the compatibles with a fallback, > so adjust the bindings to reflect this and fix dtbs_check warning: > > arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: charger@6a: compatible: ['ti,bq25895', 'ti,bq25890'] is too long > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../devicetree/bindings/power/supply/bq25890.yaml | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > Reviewed-by: Rob Herring <robh@kernel.org>
Hi, On Fri, Nov 04, 2022 at 04:53:14PM -0500, Rob Herring wrote: > On Wed, 02 Nov 2022 14:20:11 -0400, Krzysztof Kozlowski wrote: > > BQ2589[0256] seem compatible between each other in major aspects and > > remaining features are auto-detectable (by reading device revision ID > > register). Existing DTS already uses the compatibles with a fallback, > > so adjust the bindings to reflect this and fix dtbs_check warning: > > > > arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: charger@6a: compatible: ['ti,bq25895', 'ti,bq25890'] is too long > > > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > --- > > .../devicetree/bindings/power/supply/bq25890.yaml | 14 +++++++++----- > > 1 file changed, 9 insertions(+), 5 deletions(-) > > > > Reviewed-by: Rob Herring <robh@kernel.org> Thanks, queued. -- Sebastian
diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.yaml b/Documentation/devicetree/bindings/power/supply/bq25890.yaml index fd01ff10b4e0..ee51b6335e72 100644 --- a/Documentation/devicetree/bindings/power/supply/bq25890.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq25890.yaml @@ -15,11 +15,15 @@ allOf: properties: compatible: - enum: - - ti,bq25890 - - ti,bq25892 - - ti,bq25895 - - ti,bq25896 + oneOf: + - enum: + - ti,bq25890 + - items: + - enum: + - ti,bq25892 + - ti,bq25895 + - ti,bq25896 + - const: ti,bq25890 reg: maxItems: 1