Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1003271rwb; Thu, 6 Oct 2022 07:19:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4D7fVFssQ4bsKH9O+pg67pNKGm78j+en+ctXwTKo/Vmn9YVEyRbs3lBqbR4z9D+vtdQqzZ X-Received: by 2002:a17:90a:5915:b0:20a:d6d5:31bd with SMTP id k21-20020a17090a591500b0020ad6d531bdmr67952pji.15.1665065989207; Thu, 06 Oct 2022 07:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665065989; cv=none; d=google.com; s=arc-20160816; b=JNoqJzWo3tZQz/FddTMoyv00aHK6ZFBAnndfhsfI91CayG5sj05A5VKWGC0kscxpY3 buTqODu5EtVKsGVgfxxtBHxXFTmGolon3nQIX+WjiuURrVkcx+IG2GUxMAh4gwN3WPRQ mGd5+6l2+BKyyZVGbvc5+zt2n0U6N+SHGkCv8Im8f8Eqg0TOIR+lPAGTnAaIiLAa86At iuduLgvHwv5+nMqpJ1iUtHbaqJ7KNbwGgeEgl7XXVZjiq93EFytlrHCvhgc+I2brKMC9 gEWQkeSQ3W24Xa3+4YhV9UTLPiTbAbAJJbIi0V/0TustrZOFPZd1LIbKVxI8Lss9giI0 NtVw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gjfbe7TbLhaoMq2X3jSEgOzMiaBougxufQB2UCN8MHc=; b=y3FSLRAYfqp0o4rnHgoWNpN1gCXjsixYSnTTWCutm3bJgagaB4HhhcYzhJ9mCWE2Bl V8OWMFd8ols9T/M/CXGZfOY6KlU5W3ODuRgV0kHJbeXsfkEClfRTM4JI/3k+9r4jrcDu UdhA4EhrrGe3e2URzAteKHoEmkNbnht04jCSfT7VkF6KhY7dyg5JvoQ9CXFaTZoeqmu1 lShCqaL8kL9H8yhySxzqTTJBFuV39zSb9q7PSmV31wBZ6ympVaUv8lWbzdq3spB77y0X kcpSxyyHSoYQhuuHcbdTYLqBR0LFg6Cfrt3AsXiiCr599wgMo9PEQYDwuQmrKWcrPMJs ZXSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O2MFYNAi; 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 l18-20020a170903245200b001782bd6c443si23149411pls.621.2022.10.06.07.19.37; Thu, 06 Oct 2022 07:19:49 -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=O2MFYNAi; 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 S231679AbiJFOHY (ORCPT + 99 others); Thu, 6 Oct 2022 10:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbiJFOG6 (ORCPT ); Thu, 6 Oct 2022 10:06:58 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26119AA373 for ; Thu, 6 Oct 2022 07:06:51 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id m19so1509438lfq.9 for ; Thu, 06 Oct 2022 07:06:51 -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=gjfbe7TbLhaoMq2X3jSEgOzMiaBougxufQB2UCN8MHc=; b=O2MFYNAieVdMBLcSp7p6nMLYI79or471UI6UySWpyPeuvGZDzV8Sv//xpl1xq9ABMA 56xVUDWzsBL637b8gJneYzvMXBycMqARGoNPYG5/V70AeoOuCjQkozpqR9Rf1zMqOQTD GYaDcxA84slyZjVfEalI38Qs9IfuSHfUYycK1UqGyNJ9rd2hZ1qrJdTbFSSi28gLvtTy Be1hYGxUKXoOVu+ZS6F52cxj0RzJB3S54brUgFIVFd44nEgqVo7dpJtJgQMo8MD+TULp 31eXikv+da2iB/DxeamJy6Ts0g8mhFkbNsFSF5tlE9Uj0r/zkD7sgULqc73DH9BlhUYb om8A== 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=gjfbe7TbLhaoMq2X3jSEgOzMiaBougxufQB2UCN8MHc=; b=Pcmi07Y++3i8zBVd+EzkxxAkWsn6/n0TxQhWIjNixaxcvkccpPB1rOuIpulrpvU6zu AmEAe4QlzOayKLlmStCY/y6b9gwgPfgDp70D6fSz5C2z6Y7tuiaN8XBX40C7+jOSQv37 i6vB71sPw3uAOIhKwC8kjzX7W/Pmvav/jElWqoYCCXwB/fR9kCgqkDC+uL/23Zh7dwrg axxbpCSa/Ns5Tk69FdTXqjSWI+pLo4QRDF3eFZ7GiDi12C320WYv7B/dE7ctuQj06FGb xLyPoImH7Ydesc8npiFuuzQZJ/TTWnmwQd+61OgUPsdeO7OszeFcipm1vs1d9/DUMh86 JJ/w== X-Gm-Message-State: ACrzQf2fhGFJB1qcv88gleelEqOnybVvXX1gJq5qbEyte6u0VPJW/zAf +YN7+120FYkZu5GydK5Bxmh8fg== X-Received: by 2002:ac2:4e71:0:b0:4a0:7191:762e with SMTP id y17-20020ac24e71000000b004a07191762emr39683lfs.361.1665065210828; Thu, 06 Oct 2022 07:06:50 -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 z3-20020a056512370300b004a2386b8ce8sm1833929lfr.211.2022.10.06.07.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 07:06:50 -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 Subject: [PATCH 06/34] dt-bindings: pinctrl: qcom,sm6115: use common TLMM schema Date: Thu, 6 Oct 2022 16:06:09 +0200 Message-Id: <20221006140637.246665-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221006140637.246665-1-krzysztof.kozlowski@linaro.org> References: <20221006140637.246665-1-krzysztof.kozlowski@linaro.org> 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=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-kernel@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 --- .../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 -- 2.34.1