From patchwork Mon Oct 17 22:59:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3792 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1680255wrs; Mon, 17 Oct 2022 16:03:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45YjKpBjqzsGOKFCtQXTAQMhGb54JONGcWVcjULxxLBE4zFtoz7JdBfEekFh4RLboKbYdD X-Received: by 2002:a05:6402:1d4e:b0:45c:b459:25cb with SMTP id dz14-20020a0564021d4e00b0045cb45925cbmr48900edb.170.1666047780614; Mon, 17 Oct 2022 16:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666047780; cv=none; d=google.com; s=arc-20160816; b=b1zbtx/9prTvDOkHddzS76K30/CltPJwcaTlN5l4cFBJ8EkP7O03LpurHNWSUAqW71 2KY5QsdQQ2ChfTnyjQ0Fbgdk++0gTrgz/ZlDi9J2SRyRNhGyKoI1WU03CNe5Sq/gKXM2 9Qoq1GpWPR0siyi2BddCBV9s3ne4MF9sgxFc9V6nXmCG4JCdCPd1u85F639uEmXL/7R2 bvgVASPOyQq8MLVOxk4gP7uUkJe4kcIA9LjsqjOxuROU9RhMguz5qtHNUU1Q0nKCFbv7 KC2K0iu7+XTtBohxSN79chEjnYHJS1ppXN6IOGH9LSlrXoyH5kJiuIa0QMdlKybDOHU7 dBhg== 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=oIZZaObCIVwyxhGsjEud+/xoayWhTwNNIL2D7dwmU4k=; b=O1iSiShP+8t3pxygsQWht9FVYQhxs/rUdDMn5jThlH4Vgz6bp5XyDfLdpemYw5uwo/ bMhZoytI5IceG8zpabsKHsW2gRvZo3/jcexItj9Pb/DzN+d0Zq/NqYMKfTa0bhawkAHP /YdYVR0Q/2YTku81bzTssMjVdL13SodHooiWexLPL1IaYQ3xTK9c7OSJuXu8QA3GjYbJ +zb/u2GagfrReWTCpQPbykNtUVMAX4Q7mrkvWX2TOvTTmCF24ek8xTxTkLiLjNeFGDmA RPd5/EpCd2wS0Fj+ZwYgvC+1OIEESILu1/IxP7XqYegwGXixqLRe2AR9hhb0b3zK5LIo TrkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HvdvNSB1; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp21-20020a170906c15500b0078df1c345dcsi13439162ejc.535.2022.10.17.16.02.23; Mon, 17 Oct 2022 16:03:00 -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=HvdvNSB1; 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 S230496AbiJQXBI (ORCPT + 99 others); Mon, 17 Oct 2022 19:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbiJQXAt (ORCPT ); Mon, 17 Oct 2022 19:00:49 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A471A808 for ; Mon, 17 Oct 2022 16:00:46 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id g16so3899261qtu.2 for ; Mon, 17 Oct 2022 16:00:46 -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=oIZZaObCIVwyxhGsjEud+/xoayWhTwNNIL2D7dwmU4k=; b=HvdvNSB11gw1Yxlr2dstg0Q0AUDGzi4vj+b2RLBNCYimlDkPXxDVOdzIyCNBLs+fwz NbFB5+Kj01Cef9yBMQzKH+sSXTmsVKw2GNN7rjtPjkj0s9Yo0md+jDYneDjtlE9VMjYk /QgKeCHsAxU3o5m+a6ReCPwuOerBGvvcf4rAtZHvSe09k6Uul0c+srD1mMq9kJLnWZob TwXk686ZCtflXovuIySuZgJZChIqVQnJFw41SwO0Ghh6TJQ9ePFn5PawCVVtr9SEtSkv N/RZJ651dweh8OFUY5yGTwW9AifLC+7UtuXPxI4FeYZADLPPPTfO53NYSCOrSPfpja44 Ul7Q== 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=oIZZaObCIVwyxhGsjEud+/xoayWhTwNNIL2D7dwmU4k=; b=YsE8C02VweYbzNfZICfObMlHK/nUv7/4yfebykSfdeACcUeqCZeiFqCNR4AvU+9bzS 2ehkTA02W/gRQIQ+QTaPHPRg74BnsQBA80DR+9muLL1BAvUOLcP/tdoUOXF2V4KAVTyL oXAE7b+Ul+05f8nEBKKakvdmteu9GgB6Txl/4vZzzPcstc4g95rSrh4aUfglfz1cMLG1 WzsUbsUlqonjP7gRc5VBdumEUHMru+HW+iWDTjSiX4DXWMgIun6PdnJ1VHffhK+lSpjP RdoJ/ttzNtwEdv/73Ylj2F/G+BgX8csh2OSB+MmTrzlrt95yTU9uJXbpjgqf1s8KWuVQ zniA== X-Gm-Message-State: ACrzQf3T9ZTxTtUNVUoMJJR5VaVi7fqfmUh61WLYUUyvdQAkO841m9K3 fMjbjyiKPheccix8pTBJqwI+NQ== X-Received: by 2002:a05:622a:1654:b0:39c:ded0:4780 with SMTP id y20-20020a05622a165400b0039cded04780mr10885263qtj.688.1666047645278; Mon, 17 Oct 2022 16:00:45 -0700 (PDT) Received: from localhost.localdomain (pool-72-83-177-149.washdc.east.verizon.net. [72.83.177.149]) by smtp.gmail.com with ESMTPSA id fg11-20020a05622a580b00b0039cb9b6c390sm729670qtb.79.2022.10.17.16.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 16:00:44 -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 v3 05/33] dt-bindings: pinctrl: qcom,sm6115: use common TLMM schema Date: Mon, 17 Oct 2022 18:59:44 -0400 Message-Id: <20221017230012.47878-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221017230012.47878-1-krzysztof.kozlowski@linaro.org> References: <20221017230012.47878-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=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746977717517132511?= X-GMAIL-MSGID: =?utf-8?q?1746977717517132511?= 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 --- Changes since v2: 1. Drop drive-strength. --- .../bindings/pinctrl/qcom,sm6115-pinctrl.yaml | 55 +++---------------- 1 file changed, 7 insertions(+), 48 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml index e39fbb36d8c1..dfb6e5403ea6 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: @@ -101,50 +85,25 @@ patternProperties: uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, wlan1_adc0, elan1_adc1 ] - drive-strength: - enum: [2, 4, 6, 8, 10, 12, 14, 16] - default: 2 - description: - Selects the drive strength for the specified pins, in mA. - bias-pull-down: true - bias-pull-up: true - bias-disable: true - + drive-strength: true output-high: true - output-low: true 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