From patchwork Tue Oct 11 17:23:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 614266 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 1FBBDC433F5 for ; Tue, 11 Oct 2022 17:28:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230050AbiJKR24 (ORCPT ); Tue, 11 Oct 2022 13:28:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230270AbiJKR1r (ORCPT ); Tue, 11 Oct 2022 13:27:47 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E356B71988 for ; Tue, 11 Oct 2022 10:26:53 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id 187so11393198iov.10 for ; Tue, 11 Oct 2022 10:26:53 -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=u4tu9IErf0pQ5NApJoK+MwyIV7wWxNHbMibtb5C6x5M=; b=Mnrb0mT62eNEHW2oTkHxFiY3wXZlEbhKt3RXXvsbhUDJ+Udo7YBh0U5grDiORdc5PY Aym1ZoBaGM8Cb3jnVMPPWk4eZh1gipVOuL5kOqP1lz/McEYOXJjURRbQEIOH3UoXBLDQ kv2TcEmj+Dndn4MRpVnQJlTtYwLbJzQjKZaIRz0f9at37ynuGelSQmhNef5E+z9w3Pa7 F7FcudIYKYlnMYc41Qn4SKu3aooQLhE635qjvXWdHgX9CsR4z9/o2UTsfU0z8YlX792g JJ2s5ktAkUL1FyoqtzobKMBRN4n0fruyCFwRN82HS/+uliJwJ6sUwNejkui8Pg+ap1Mx qcug== 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=u4tu9IErf0pQ5NApJoK+MwyIV7wWxNHbMibtb5C6x5M=; b=DvCeolnrVsTNZkh6feBjSyvFvIluSeoFVVFN+ISb+5DvwjMIJ3q+4fLdXMKxSx9uxw TrJy+Sk9vV9TO8s8SVAtFlyU9trG1y4AV5ZQcyfnDhD1W2K1IxpISY7P1FhpusjVTien os3cp3RsEjhKFrZ+oS8C7ukhV0Vo1HK3OayndUrTudpzQp8nlR62SQ+zgmHaCJeygODN omrGeTmtE3vWRq9HH0wW9px2lviAUXlQ9kXOwaCXGDuAYN4IYRwJ+5S2HS7kNiykNud2 6KDx8VswZPkdaCyV43QoYIOHRHKS0PFKMoALUJTbWuIHlxjHVBzNvcvU3BNpgRKFZLQ8 1FvQ== X-Gm-Message-State: ACrzQf0nvkDq/M9g/CtefyDVZfOaGRTc7hSt3rl6SzPR28HdmnE96+BQ /LuhXSFT69FpfbOxw4UcNI6Nb1V34I+Upw== X-Google-Smtp-Source: AMsMyM7P9FlKQXnuFszruJqKjhOfjdfKd194wL9ja+9wkIp6/TuL+YCd/dk+M0X10UtfqbFgNXpGPg== X-Received: by 2002:a05:620a:240d:b0:6ce:7f55:1191 with SMTP id d13-20020a05620a240d00b006ce7f551191mr16722448qkn.644.1665509185275; Tue, 11 Oct 2022 10:26:25 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 10:26:24 -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 13/34] dt-bindings: pinctrl: qcom,sm8250: use common TLMM schema Date: Tue, 11 Oct 2022 13:23:37 -0400 Message-Id: <20221011172358.69043-14-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 Acked-by: Rob Herring --- .../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