Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3316184iob; Mon, 16 May 2022 19:09:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTDcbEcTWl5YICAvKdpurTt6YOdPHkJg9aMbVnOqTEI50ZBfB1MD7bqMMUjW7TqXmb3gS4 X-Received: by 2002:a17:90a:688a:b0:1df:6940:e83e with SMTP id a10-20020a17090a688a00b001df6940e83emr5969381pjd.120.1652753378477; Mon, 16 May 2022 19:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652753378; cv=none; d=google.com; s=arc-20160816; b=yaEYFo17X8tp9RmL1M/WVQjie/TvxtjPg446ihn51Hcsk1p8W4zty4Fqz22SOkGFRO /bB8W2jEJZ6mos9s+WI9JAd69xYaeiK02og1VoBHvMU2m5DoiDd9BaSOnGGbWKM1CRD4 pyrgqVuTL9Fuv5oO6VmkiFv/AHHOtDPmnvu7KCPqqaZn1WE2OELzKKCMwRWP80S+ubfh sDBhZ2qrKjs7l7uggRE+7aOlepyNIE2zKWVYwZCCLxrojjUuvO3q390iLEiUOyCQXX9M J3BmDhvvWh5TptgIYvsB3vLpN/hGLCdrzMC8+iLT0UXZ9T9UyhiBe9ZwjguHI5iEL+oQ PuqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=elXgl3dl4vAJoBCDptoYieQAN23eMuUcW0bkSZuX+eg=; b=afT5ZDWsJ5tTEeQOsQ5i5090kxybgR7E+JXdydZvRjJACK3U47KzJ7mp+aaCf0nK1j qmLtyASYQymDzPi1EdDpr451BQ9+QJvyurC667jqD0GGzomYi7o4ekpk5ebhmh2GjbL6 OFY+/KfIdTNyHKmSTnKhwtOpWThN7mOapM5zRZcqrr7pXx7/1S+1T/eoUGL6E0c7PPLR E7MOpKe3wWKQLAGF/Imdw5S4K8KbmHBPsCTVTcZpSXmIHApUkWCjFL26NEFCurR/flyF mXrzrLkQ0r2UVSiyVULZUQxEA9xG3laQAHBTmKx2sszQXosj97O1iPzldMw8SUNX56Lk ymwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lwbeh96i; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om17-20020a17090b3a9100b001d1ad44a667si1334342pjb.6.2022.05.16.19.09.26; Mon, 16 May 2022 19:09:38 -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=Lwbeh96i; 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 S229588AbiEPPJA (ORCPT + 99 others); Mon, 16 May 2022 11:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241911AbiEPPIv (ORCPT ); Mon, 16 May 2022 11:08:51 -0400 Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B66733BA43 for ; Mon, 16 May 2022 08:08:49 -0700 (PDT) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-f17f1acffeso7906929fac.4 for ; Mon, 16 May 2022 08:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=elXgl3dl4vAJoBCDptoYieQAN23eMuUcW0bkSZuX+eg=; b=Lwbeh96im5IuvkLt390E8uMSvLj3XCZyRcrLRx3TijXYxvpjKgZjDXvPliCmb7nxSw fFp/Yh6O9X6Xkey8sFb2XDSr8tRSKi9EwgIGZxBn6WffAf6ojn8YM7ih1vrS2Xw/cGDa G17JMjOSQRFt5CDSdh74cRTW2Z338AtLspsbYSoJ0Nbe3cyxj6akBcSkqcSkFG8iv7O0 HfLKQAZ5aBnhPx5oorFcXlO+7iAcSzbDl7EIZDS3qQgnSHo+3AFR4f/eow9faQd07am6 F9e9DOWwSzfybN83/1Y2e6Y7t3xgu3q2lloR8y+4NFX8gTrVvQaeWkgtspNxQpA75ZL6 X6ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=elXgl3dl4vAJoBCDptoYieQAN23eMuUcW0bkSZuX+eg=; b=RR27I58zLcLpZupENcJjSsaisW1Wq5pQmKvodvy1DD4jF6Y9ANXhOz0U8U/Je2Irow drqnqUgjnIdoOJ7RDbEmYgXsAFlur9KCpa1Jjr4yz5lGBDB+2JDIMNwbyvyMcFCXG0E2 cJqipwcO6K+rLQ3cERQlTtBRtwtn2J9mW5mjUyUVvJ8wqyTGaPwDz7zXRcDIt10ZKRki IOS9/DdT3amzrQYCEK/f/qT+0EEnDDX3NLwaToO1AcYbL+No1yNXLM+20DAexJ3sswdP sxu2sI9bT9lxRbw64HKHcqY/fziqaH4PK427zcnbADjFDq703kheu6tLnFQUEP1qOwev Pe0Q== X-Gm-Message-State: AOAM532in7HP5IKJBvGQr/ZQn3HzVuw4yBRHCbqEtzhLU5GuMuzUX4l1 u407EWpzNo/wgt1Al9tiRj+REw== X-Received: by 2002:a05:6870:41cc:b0:f1:b014:1107 with SMTP id z12-20020a05687041cc00b000f1b0141107mr1207772oac.185.1652713729077; Mon, 16 May 2022 08:08:49 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id o203-20020aca41d4000000b00325cda1ff93sm3910010oia.18.2022.05.16.08.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 08:08:48 -0700 (PDT) Date: Mon, 16 May 2022 08:11:12 -0700 From: Bjorn Andersson To: Krzysztof Kozlowski Cc: Andy Gross , Linus Walleij , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , David Heidelberg , Konrad Dybcio Subject: Re: [PATCH 1/4] dt-bindings: pinctrl: qcom,pmic-gpio: add 'gpio-reserved-ranges' Message-ID: References: <20220508135932.132378-1-krzysztof.kozlowski@linaro.org> <20220508135932.132378-2-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220508135932.132378-2-krzysztof.kozlowski@linaro.org> 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,T_SCC_BODY_TEXT_LINE 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 On Sun 08 May 06:59 PDT 2022, Krzysztof Kozlowski wrote: > 'gpio-reserved-ranges' property is already used and supported by common pinctrl > bindings, so add it also here to fix warnings like: > > qrb5165-rb5.dtb: gpio@c000: 'gpio-reserved-ranges' does not match any of the regexes: '-state$', 'pinctrl-[0-9]+' > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Bjorn Andersson > --- > .../bindings/pinctrl/qcom,pmic-gpio.yaml | 53 +++++++++++++++++++ > 1 file changed, 53 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml > index 7e74a87ccc39..69195660ee2a 100644 > --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml > @@ -78,6 +78,12 @@ properties: > minItems: 2 > maxItems: 44 > > + gpio-reserved-ranges: > + minItems: 1 > + # maxItems as half of total number of GPIOs, as there has to be at > + # least one usable GPIO between each reserved range. > + maxItems: 22 > + > '#gpio-cells': > const: 2 > description: > @@ -107,6 +113,8 @@ allOf: > gpio-line-names: > minItems: 2 > maxItems: 2 > + gpio-reserved-ranges: > + maxItems: 1 > > - if: > properties: > @@ -124,6 +132,9 @@ allOf: > gpio-line-names: > minItems: 4 > maxItems: 4 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 2 > > - if: > properties: > @@ -137,6 +148,9 @@ allOf: > gpio-line-names: > minItems: 6 > maxItems: 6 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 3 > > - if: > properties: > @@ -150,6 +164,9 @@ allOf: > gpio-line-names: > minItems: 8 > maxItems: 8 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 4 > > - if: > properties: > @@ -163,6 +180,9 @@ allOf: > gpio-line-names: > minItems: 9 > maxItems: 9 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 5 > > - if: > properties: > @@ -182,6 +202,9 @@ allOf: > gpio-line-names: > minItems: 10 > maxItems: 10 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 5 > > - if: > properties: > @@ -194,6 +217,9 @@ allOf: > gpio-line-names: > minItems: 11 > maxItems: 11 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 6 > > - if: > properties: > @@ -212,6 +238,9 @@ allOf: > gpio-line-names: > minItems: 12 > maxItems: 12 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 6 > > - if: > properties: > @@ -224,6 +253,9 @@ allOf: > gpio-line-names: > minItems: 13 > maxItems: 13 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 7 > > - if: > properties: > @@ -236,6 +268,9 @@ allOf: > gpio-line-names: > minItems: 14 > maxItems: 14 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 7 > > - if: > properties: > @@ -248,6 +283,9 @@ allOf: > gpio-line-names: > minItems: 16 > maxItems: 16 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 8 > > - if: > properties: > @@ -261,6 +299,9 @@ allOf: > gpio-line-names: > minItems: 22 > maxItems: 22 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 11 > > - if: > properties: > @@ -273,6 +314,9 @@ allOf: > gpio-line-names: > minItems: 26 > maxItems: 26 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 13 > > - if: > properties: > @@ -285,6 +329,9 @@ allOf: > gpio-line-names: > minItems: 36 > maxItems: 36 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 18 > > - if: > properties: > @@ -297,6 +344,9 @@ allOf: > gpio-line-names: > minItems: 38 > maxItems: 38 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 19 > > - if: > properties: > @@ -310,6 +360,9 @@ allOf: > gpio-line-names: > minItems: 44 > maxItems: 44 > + gpio-reserved-ranges: > + minItems: 1 > + maxItems: 22 > > patternProperties: > '-state$': > -- > 2.32.0 >