From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 986F8C433EF for ; Mon, 16 May 2022 15:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245008AbiEPPI6 (ORCPT ); Mon, 16 May 2022 11:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244977AbiEPPIv (ORCPT ); Mon, 16 May 2022 11:08:51 -0400 Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B40073B57F for ; Mon, 16 May 2022 08:08:49 -0700 (PDT) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-f189b07f57so6953862fac.1 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=zPGZkTxx/M+3xgfR5lCIRgw2B7iV9PwrgPlck6rqF/0zq71nLEALqBcOvFl59FkurK GqkNUnPYpkOA/b9p+eCMBYJUmMIylbC+AtgSfjWy4N+cbMEjA2MY9ZmdsHgl/NcOD8bi NQhbnImb5Blrc/CnLlwW6h02mHNPYWa0mbfVjgHDK021spHmCkoidUkV6YMSjYVoFwjs G9BV50zySMNj3wboykResc+wurXHkaGusUecxr56p+DUbdGkQQNhDU9uMSeqnHMk8Bo2 kydyFCAqn9vZev3AWPpDjqFwGyJ0pn+Iy1htSoWUWsIEEybulsY/ybFI0qov1zkkpXZx mMvg== X-Gm-Message-State: AOAM531PpQwSB9f3Ly6DUleRsOFBnAGSCwcHE7wEPfQGFsk0OpqkuWvy RfmN7HlUwB1d7N9QjqyvTS+o9Q== X-Google-Smtp-Source: ABdhPJz9R3vuSmtEtCaD+6qvP3nFEpQD2xGDEu/kZCRoF4eUN1B/cQEcyuXSZo8vowPBOqg5QfmoEw== 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> Precedence: bulk List-ID: X-Mailing-List: devicetree@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 >