From patchwork Sat Sep 24 08:04:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1681819 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=coQfwEXc; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MZM7d43cCz1yqV for ; Sat, 24 Sep 2022 18:07:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233670AbiIXIHX (ORCPT ); Sat, 24 Sep 2022 04:07:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233759AbiIXIGZ (ORCPT ); Sat, 24 Sep 2022 04:06:25 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63CB91251A6 for ; Sat, 24 Sep 2022 01:05:37 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id a10so2387746ljq.0 for ; Sat, 24 Sep 2022 01:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=I9UI65DEwAIEvnPw/7Aklq9Nug9drrNeZhV+82t1En4=; b=coQfwEXcRvx4ZbcQ4ke1HnuHdi5hVuUsbEBsrM9hTNtsP5FWLCfljrBMJeHbQ2B7Kn ZYn2/jpgH8gaXoBaNHzUffbEhA7NOYrM1T1RGTHMxcTONyPIf+MHfzt+nAaDnA1f13EU pVN9jUNZtGF/EdpD/BSVukWhMBia6wpLicsHciD5v8BxZOdZGXVu9284/uTDafttsF3S DY0UObeu3j/TOno6Yr0N7eO0MZsaz0Ji8xUYVdh+ngKxLSmMC4LxAo2W/2wij44PvRyp +mQ0hkdbm9kOgIBhUsO51UOVYGVjFw8J8nWRHF5atLGIrpQjKSpPdETSI964cHz9A7OQ uSNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=I9UI65DEwAIEvnPw/7Aklq9Nug9drrNeZhV+82t1En4=; b=vjW3QfsLijh6wdkI4Qk4IA3aYOtVYENTYsgEYPiYDNzw4o6ORIgNKtoZ5apGbGXD1I 4tMKGhgTINa4o3YRdqSAope+djLzK3YU0WyhHS6rBDmEBgvBsl9w3WQwYC9DPi10f8sy SfSBb2HHbNy5fhSnauoPJQuekHsOKVN+IWBlv0B2o/bn8L1WaEKIyv989cUYu8M9C8SP uQS5wlqEm8TzxDysg6hh9TUWcbotWdtk6vLWfr8wMZZpdVpTta1A9iCYZYPzK+v/Q8BJ wo5DN2cDgB2bbXR+V88ze7YtSiGQN7CimqSdUUYL1W+ncBx/1S8TWpI/jjvP1f7BsmwC jOFQ== X-Gm-Message-State: ACrzQf0Ebvt8WdMY4yLdzXj4eqRixwXRGjrq4FzBaKSW7YrPW/qJNb8D hwTBf2N1Dqo7sRMrxcAPIpz5uA== X-Google-Smtp-Source: AMsMyM7sRo70fgBGTXgxjxqoLxubcDvl0NgXGmiAAPeKxyLV70pEN8PKSiXAusDGICoBOzkh7KFRhg== X-Received: by 2002:a2e:a7ca:0:b0:26c:51d6:55ed with SMTP id x10-20020a2ea7ca000000b0026c51d655edmr3940457ljp.426.1664006736602; Sat, 24 Sep 2022 01:05:36 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id y2-20020a2e5442000000b0026c41574790sm1696668ljd.30.2022.09.24.01.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Sep 2022 01:05:36 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Sricharan R , Stephan Gerhold , Shawn Guo , Vinod Koul , krishna Lanka , Sivaprakash Murugesan , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 22/32] dt-bindings: pinctrl: qcom,mdm9607: do not require function on non-GPIOs Date: Sat, 24 Sep 2022 10:04:49 +0200 Message-Id: <20220924080459.13084-23-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220924080459.13084-1-krzysztof.kozlowski@linaro.org> References: <20220924080459.13084-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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=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-gpio@vger.kernel.org Certain pins, like SDcard related, do not have functions and such should not be required. Signed-off-by: Krzysztof Kozlowski --- .../bindings/pinctrl/qcom,mdm9607-pinctrl.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-pinctrl.yaml index f7bd4be1739e..ef22090fd6d6 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-pinctrl.yaml @@ -53,7 +53,6 @@ patternProperties: description: Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties. - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" properties: pins: @@ -115,7 +114,16 @@ patternProperties: required: - pins - - function + + allOf: + - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" + - if: + properties: + pins: + pattern: "^gpio([1-9]|[1-7][0-9]|80)$" + then: + required: + - function additionalProperties: false