From patchwork Tue Oct 11 17:23:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 614274 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 AD9C6C433F5 for ; Tue, 11 Oct 2022 17:26:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbiJKR0W (ORCPT ); Tue, 11 Oct 2022 13:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbiJKR0R (ORCPT ); Tue, 11 Oct 2022 13:26:17 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82F7E32AAB for ; Tue, 11 Oct 2022 10:26:15 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id a24so1134091qto.10 for ; Tue, 11 Oct 2022 10:26:15 -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 :message-id:reply-to; bh=nDkePsmSRkY1uOm7FPyheIsHo+mqqn9dTrU4I1E9EBs=; b=Fm5mErn9TA5tcFIYVnsfrc4dD0MyJj0NG325Ejzx/ABkjuMzCSwngDnBkb15Smf0kr KUl2C/FFDSRpJ5gwPgFnw4CnG7TcHeoayWhNZ3K3YL/mZ4xrT9gPE6uHz0eIg3+cbowF X10xa1qBFpHoONqq16XCKCTphVEZgaXu9rypERKV6OWGErkMT7m17q6o72dGPrpSQngn xVUFdW29sHLj2R0QfIHXAXRjdVYVnIROAxYTzt7TpMfwUJiVwreh3DYkhALyM1HO1Fjv gpr0MeYXUQvTxWjXFs/uiJAk/vpRPq/FKy0CI/yiVgUiTNBie+r6kqM9A7SCjHpXoIKX CdjA== 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:message-id:reply-to; bh=nDkePsmSRkY1uOm7FPyheIsHo+mqqn9dTrU4I1E9EBs=; b=GmIYuYbFbWSTF6dui/w0azVTCZqVNuni8ExFFYGNq3J4xATyLHyaqsH6f8c9tc9jUk aGSZEXUu4nF60t+aP/Q/PswhQ/9QvsIzzLDPeUX8dDWmv0ez3JYIMaYKmURxUAXNihKu L3vSMb1I6iGUhsV1T5jIHGAaEE0TMOisxu7+nUrwLKqorsrwdyuz2GdapT1GOWgUKKZA vlz+Gpkuf4U4HZaOYz9HF5YolLTdgPS5SveUxppxdAyJIxhPY6iizA6p6JOq11sVH56k 6EcvsGkfbaHDFBfB09WLhZrBCnhKdSg7EzZ+7o1MK7ppmta11ibyjOhmFod/i0ui5adN UNYA== X-Gm-Message-State: ACrzQf1+cepEjUoh96kdpZMPEHs62ismxGOR6Lqhj15+zgnFVTDXLWQB BFcTINpgzlZP4+StzF60dxWdVQ== X-Google-Smtp-Source: AMsMyM7HC+15ea+4aNrdBBsWCAvroVnfuehpL7xi2piD7cy0XBYDMaGqm3+Ugim6M2iYIsgw1xz4ug== X-Received: by 2002:ac8:5841:0:b0:39c:b754:2ddc with SMTP id h1-20020ac85841000000b0039cb7542ddcmr2038719qth.322.1665509174239; Tue, 11 Oct 2022 10:26:14 -0700 (PDT) Received: from krzk-bin.home (cpe-72-225-192-120.nyc.res.rr.com. [72.225.192.120]) by smtp.gmail.com with ESMTPSA id i14-20020a05620a248e00b006bba46e5eeasm14289087qkn.37.2022.10.11.10.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 10:26:13 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Shawn Guo , Srinivas Kandagatla , Vinod Koul , krishna Lanka , Iskren Chernev , Martin Botka , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 06/34] dt-bindings: pinctrl: qcom,sm6115: use common TLMM schema Date: Tue, 11 Oct 2022 13:23:30 -0400 Message-Id: <20221011172358.69043-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221011172358.69043-1-krzysztof.kozlowski@linaro.org> References: <20221011172358.69043-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Reference common Qualcomm TLMM pin controller schema, to bring common properties, other pinctrl schemas and additional checks, like function required only for GPIOs. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Iskren Chernev Acked-by: Rob Herring --- .../bindings/pinctrl/qcom,sm6115-pinctrl.yaml | 44 +++---------------- 1 file changed, 6 insertions(+), 38 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml index e39fbb36d8c1..3f5f5229a86c 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml @@ -27,30 +27,13 @@ properties: - const: south - const: east - interrupts: - description: Specifies the TLMM summary IRQ - maxItems: 1 - + interrupts: true interrupt-controller: true - - '#interrupt-cells': - description: - Specifies the PIN numbers and Flags, as defined in defined in - include/dt-bindings/interrupt-controller/irq.h - const: 2 - + "#interrupt-cells": true gpio-controller: true - - '#gpio-cells': - description: Specifying the pin number and flags, as defined in - include/dt-bindings/gpio/gpio.h - const: 2 - - gpio-ranges: - maxItems: 1 - + "#gpio-cells": true + gpio-ranges: true gpio-reserved-ranges: true - wakeup-parent: true #PIN CONFIGURATION NODES @@ -69,6 +52,7 @@ 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: @@ -120,31 +104,15 @@ patternProperties: required: - pins - allOf: - - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" - - if: - properties: - pins: - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$" - then: - required: - - function - additionalProperties: false allOf: - - $ref: "pinctrl.yaml#" + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# required: - compatible - reg - reg-names - - interrupts - - interrupt-controller - - '#interrupt-cells' - - gpio-controller - - '#gpio-cells' - - gpio-ranges additionalProperties: false