Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp878338rwb; Thu, 6 Oct 2022 05:50:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xR0fSNCib1SeNTSbxbhBvtSZj6T0rnpHmeUe5ekGJN102ISENzfQHLusaOWG7SQFRr64O X-Received: by 2002:a05:6402:501b:b0:459:df91:983 with SMTP id p27-20020a056402501b00b00459df910983mr2528103eda.85.1665060659430; Thu, 06 Oct 2022 05:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665060659; cv=none; d=google.com; s=arc-20160816; b=jzP58v8vlkiJp7Zp0OfeHV6Rbk9v17+vQl1FV7yeArV/EVmaEDk0J1JbsiD69w73ib U9pYqolxzXU8unt0d4/kISjGPXs6TXl+j3n8Rpc1ciHFzOCqruEE6mwDuBclNOiPENoN 83GpCXARSDLtLtO+iVNnc7SpZu5byXd86X/N7mn5T27Lu9L9xVyUUoALayNHzYR6rLbK lsKvgFPqTRBolqKXmZkXOzl6HaIiFAIXgFMDce8HGjsvX7JTgrONpc5JRyLzKdDO4ihd UIQeV4Uk0C3QO7OcMaxiBa/nGZ0hhR1hmCrmbbTICjaeKovQkFjxjGEiAku1Y12EvniT 6efg== 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=ED0JY2un+wt/JOYmEVTQcdYewvvA1MClLH9MAkoeAo0=; b=lIs6BhqaJ8PrdHq4JLK+zocozBEpj618PeBiCGUfy7n+C/Vgr72y8gsNFue0Y+6TLN DLJBgwGKvY4UFHas1Lc4x8a/AP9oW/NHoKA4YW90jmYTEgwu3j0zgEN4ET/GGfDFabWt oqVkBuLvF0ysiz+zf6JkdTm0xjnb931T83ICOYU4zgFLMcwQ1hpV2EC75ISJb8DEYU4y nHcjtT93QzK6yuXEltGHQ4LoW6YneLfHYW6D257o282xRz24IO/WprwiUq16eiiI+u+r owvZWuG5YD2rTt3a0yjPJZ41PiGHEucx9C2L0u8AhQ3OVEkn7lQIN19YQmjJF6hnFdV2 dluA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQF+56vO; 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 r4-20020a50aac4000000b00457dac9ce7esi15530619edc.322.2022.10.06.05.50.32; Thu, 06 Oct 2022 05:50:59 -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=eQF+56vO; 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 S231644AbiJFMsj (ORCPT + 99 others); Thu, 6 Oct 2022 08:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231527AbiJFMrh (ORCPT ); Thu, 6 Oct 2022 08:47:37 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A84B0A3463 for ; Thu, 6 Oct 2022 05:47:27 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id g1so2503082lfu.12 for ; Thu, 06 Oct 2022 05:47:27 -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=ED0JY2un+wt/JOYmEVTQcdYewvvA1MClLH9MAkoeAo0=; b=eQF+56vO0QTuRvthLJ/0DDW1pHyrmR+RKGSk9XSgeg1KDWbqAxbfXe/9X6JHzHOg9W iFmFO4W+Y8aW8KopkpRqUS3rHZNcALOt10b7a3ONlicJNPPsHCry4kXw4qQVAyo+KZk5 t/T5Iw7md4Un4al05WZSAKmX7vPwIWCeHlRbBz1D4Oj5CqysuucEZRK2ygfOSowAaSgu 9VUkBHKDvNWf9D20YhWMJytchKtHLOUDqYPjSaS8tJoXp0cfiCiFDBbcqWAQ0a0SBL1H f7npkcIa2fmte79Of3ZYXQOwVEf7ji44XkBg0VBM6DaCuB+3Cdo2Bh0SG8lsZDncMd1t PyEA== 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=ED0JY2un+wt/JOYmEVTQcdYewvvA1MClLH9MAkoeAo0=; b=WU/oulzNdTOSpBVt/Gp0yXIU6UKS7wf40/U/BRu8BMDHG6//I6C6Nt/eZK+N10OuDg xH9UHSH/6tF9AubrfDkk0kIYcG/3sr08XW9rL6pdltWEhBG1n8RPps2hKLLLWvJIO37l 67K7MZoyOTeiNwnkl6dzPyyW5SnnSCElgFJdaga0vdlkN/60Dm+wkQugxCu/dyR9y3gX JjKwZCk2qdvsDYTbhlQC5KbNTbjCZTspl/sawpO4K5Keo4MO2kxM0ggo0nvWIps15RI1 egMFbw7Sk8h2vXnK71HjotwbH5oHIOvZhrbK03ZlJ7dfToHnPjMSNbwFsD5rKd0jFJ9N upPw== X-Gm-Message-State: ACrzQf30gnJ+BZcSB6bJ+iEaTIBf/GUFWOitaIK85ivibMhGgaR/xzxH qp9gpKmFs35OZz4dNvjHjHSD+A== X-Received: by 2002:a05:6512:c0d:b0:4a2:4129:366e with SMTP id z13-20020a0565120c0d00b004a24129366emr1901983lfu.328.1665060447020; Thu, 06 Oct 2022 05:47:27 -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 br32-20020a056512402000b00497a3e2a191sm2687659lfb.112.2022.10.06.05.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:47:26 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Shawn Guo , Vinod Koul , krishna Lanka , Sivaprakash Murugesan , 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 v4 22/34] dt-bindings: pinctrl: qcom,msm8953: use common TLMM schema Date: Thu, 6 Oct 2022 14:46:47 +0200 Message-Id: <20221006124659.217540-23-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221006124659.217540-1-krzysztof.kozlowski@linaro.org> References: <20221006124659.217540-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=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 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: Bjorn Andersson Reviewed-by: Rob Herring --- Changes since v3: 1. Drop properties and required items which are already provided by common TLMM schema. --- .../pinctrl/qcom,msm8953-pinctrl.yaml | 35 ++++--------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml index c162796ab604..a0e3c61fffe4 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml @@ -20,29 +20,13 @@ properties: reg: maxItems: 1 - 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-reserved-ranges: 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 patternProperties: "-state$": @@ -59,7 +43,7 @@ $defs: description: Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties. - $ref: "/schemas/pinctrl/pincfg-node.yaml" + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state properties: pins: @@ -139,22 +123,15 @@ $defs: required: - pins - - function additionalProperties: false allOf: - - $ref: "pinctrl.yaml#" + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# required: - compatible - reg - - interrupts - - interrupt-controller - - '#interrupt-cells' - - gpio-controller - - '#gpio-cells' - - gpio-ranges additionalProperties: false -- 2.34.1