Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1019367rwb; Thu, 6 Oct 2022 07:31:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4et8Q8WtFHZSl1vdLoPF5slQn9m7g9AqGfR+Zb8eh3sMTWgQBkiqLOjavWoA0ETWF1BTO1 X-Received: by 2002:a17:907:320a:b0:741:72ee:8f3 with SMTP id xg10-20020a170907320a00b0074172ee08f3mr136543ejb.168.1665066702160; Thu, 06 Oct 2022 07:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665066702; cv=none; d=google.com; s=arc-20160816; b=S+RM76dl+FVyFHTVnWyXyebgLJ4aOL/9pcX71oFI4yv5WNJD8EHTL2PD+ZrtttCXGs EMTIk+qddmcfCNFbyJ4vJvl/xh0fafozwtb595+4gL0PhKfZQYoxd+oykGtgnFcOXZdc 6D9eDH0agQJs3KG68agzKMISMXj37gtlMHg7NZTPQBiRauL7tVjggIbbO6mrkpPyaOnw QeSa1a5D89fN+OJXOMUQwJp6EzJpBzXALShF1tRcY4Gx3yYJ8UyA7+dkQv58qL/dN2hX C5/yLBgoREl7UMeNETeNsmEyIzIXvDROed4IZoiThegHfnxZgp5QC7kywAJ++rq1lcrq Rc4g== 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=pRqxpn5cq1L5LfEhiXeoiCmT7jspcIhYvY65ZNp3+lg=; b=izQFbjmqnKS18e80IDwTdz11pYH3TZD+AuWc5lhEWYaaK+8E+RaEKam4Vc75rw5+OI eY2ZGNg8Jst/nw+kLSpzE7ca3VT0Y56X0fzQM00fOL5DDc6mtBRrNbd5oC8XdaOSJdD4 ZUGvDkOM4bYFcmil0PVuywz6898fWSRxSdbnlPOH0E4qo7uOq0qAi9TIdT0pey8C7NZy j6bx+x568av3t5bL4IbdWxStF/OLoFrZsHv/WdEIAyMHZ7z+9DGfBet4gskGS5kA90j+ HIhPiMOLBVfXiAAOm2tkaZfBd+t8IUp+7dx4lyG7sP7L9qubf1Ht2FHmH6Wtqz++eBT7 BArg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RNKGEPJm; 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 z12-20020a50cd0c000000b00451e0d930dfsi16425111edi.497.2022.10.06.07.31.15; Thu, 06 Oct 2022 07:31:42 -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=RNKGEPJm; 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 S231814AbiJFOHz (ORCPT + 99 others); Thu, 6 Oct 2022 10:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbiJFOHW (ORCPT ); Thu, 6 Oct 2022 10:07:22 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15E2FAE227 for ; Thu, 6 Oct 2022 07:07:01 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id f37so2856406lfv.8 for ; Thu, 06 Oct 2022 07:07:01 -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=pRqxpn5cq1L5LfEhiXeoiCmT7jspcIhYvY65ZNp3+lg=; b=RNKGEPJm9K0hZtOvt64mOUIscabTpLoDpgNH76Gp7t9ZxktD4K1z9OWUCtuC/L7kza /rvqgBZzuTNM3I4KcXD8Qfs/jQG/BS6L+q9rpCS4prPwUuv2RDuOQyz+3Her97L4dB6g zEFhSm2RX7kM/aI/mx0hDRWg/p5xdiBQWxlBfsXpvjuFlY094JqLO0dPG4+hsGgFZ2Ql lAJoq0nDvrt6r/ucGmHMnZSffbM9qsreNr8dikDCy0qBq2IZHRlXMSi1GpX+OuZxLCkz mTtexSckUZSp6cDp+O/9urPY2Za3FYbRt2Dm5M9okL3AKnau/ZSZtLZbGAsypWD819ae LFrA== 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=pRqxpn5cq1L5LfEhiXeoiCmT7jspcIhYvY65ZNp3+lg=; b=ARDt9pbo/MRcAUA6Jabteq/vO7V2Z6dTUs3cFwPZOkYcbSm70JVKlSpIXyp2pIByeQ t3VY2Ygtra5hrdsstmn89JHjCqMvgzrgTrxQH7kWXh2yDBJKbZ4jOGzmeYbYFTFqv69n LRNJVp0RcRbZiiy9u92VcQ372TAH3DuvK+RzEoe3n9veq6p145Q7aFB9hb57kYRAxCG+ 9avwq+kRiNxsfmauK17lcTawrXpc10th3eVJHnY+7KYhVz0s4f4+nfz6S3xAuv0zbkMF MfQnulaLnMTCHiBZwJE4KHXvCXcnXyh203hkdvpw3ry3WejFe16pBqICk+u6xasrnnaK dlDQ== X-Gm-Message-State: ACrzQf0kgfFw68D/ItQ2Dn6T9h2+QX6UPNQv/RsUIjybd1blqMVuDgMh kfOLBob1+p5Jr+a0bGTvXFLdPA== X-Received: by 2002:a05:6512:1694:b0:48a:9d45:763f with SMTP id bu20-20020a056512169400b0048a9d45763fmr48192lfb.662.1665065219513; Thu, 06 Oct 2022 07:06:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 07:06:58 -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 13/34] dt-bindings: pinctrl: qcom,sm8250: use common TLMM schema Date: Thu, 6 Oct 2022 16:06:16 +0200 Message-Id: <20221006140637.246665-14-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,sm8250-pinctrl.yaml | 34 ++++--------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml index fb753fd8bbee..824a4dce1202 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml @@ -27,27 +27,13 @@ properties: - const: "south" - const: "north" - 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 + wakeup-parent: true gpio-reserved-ranges: minItems: 1 @@ -56,8 +42,6 @@ properties: gpio-line-names: maxItems: 180 - wakeup-parent: true - patternProperties: "-state$": oneOf: @@ -129,18 +113,12 @@ $defs: 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