Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp901749rwb; Thu, 6 Oct 2022 06:07:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57JgsXG/r0ZbT+7OAIYsdpTN9D7Ydk/bXSdsA4v5dPmZistL675477qJVIIhdBzynYv6vr X-Received: by 2002:a17:902:d2c8:b0:178:6f5b:f905 with SMTP id n8-20020a170902d2c800b001786f5bf905mr4731817plc.2.1665061643397; Thu, 06 Oct 2022 06:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665061643; cv=none; d=google.com; s=arc-20160816; b=AFkkhEKBbgU8PLzGiCIynvfEEUXRJ+WlQYDjvKD8xbWRshIQru8G8bCERVj5qAW0DK 1fk1SyC0vUG5LljiV/K6Tg1eGyQv+AUG8Sgv2prFNXoyvvvImJrI/QlqmNTX+du+aotu crYsWQ5w7vJtEO0BkfMARqTRXYMnsj/cFftJTAZKGC8mFihS0uBAnWw2ebK34jUhXOTJ HpmR3mhV31aAO27ZDZFXLXALjY0dv+liztLpRavomcpijA3/C7DhOyISLswdPHz4HLRK D6/mkpR0hh4nhDE4YFrw7ySOLCOuT+6ThRVOxD9bWPa1Wf7osNkZ5DJQI0n6p4e4OMX+ Dwuw== 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=DTnkMyPtDfiwoSgvFf9kmj5h7qwOf7FMQFhN75k8kMw=; b=E0jOvNZekFFbRCXnbIKP//Cc9R/gLae4VR4ScaXOXTKkSCuHEgs/p0OO14wnM1WVeq FKlwzldomrpOt0v7+l/Ht8jdwz6qAxd5VkUyUp0NK/RCO6kSSDVRwi/IPqu9tY61aoKG nWp6Q1AWvxrL41peEp7H0P84VZZwSQNOeU4Omvnbw7AxDswrJibHIC91MIK4CU3oylMt y1jNlFMF8ZwFAIsroI/3gkHsiHKiG59SLeEiPoaWS5BGb+ELgCzOnSoXln7AVZdAnoF+ R+eUk7P1dl9bU5fGyHejhonABhs+WSB/M31C7F7DS6NfbPAM1nCJQrxq1TDjVeiQNk6z 4sxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ciXpxLHW; 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 k8-20020a170902ce0800b00176b7e66c9asi21527527plg.155.2022.10.06.06.07.09; Thu, 06 Oct 2022 06:07:23 -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=ciXpxLHW; 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 S230116AbiJFMsd (ORCPT + 99 others); Thu, 6 Oct 2022 08:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231492AbiJFMrg (ORCPT ); Thu, 6 Oct 2022 08:47:36 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DEEFA2AAD for ; Thu, 6 Oct 2022 05:47:19 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id r22so780412ljn.10 for ; Thu, 06 Oct 2022 05:47:19 -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=DTnkMyPtDfiwoSgvFf9kmj5h7qwOf7FMQFhN75k8kMw=; b=ciXpxLHWeo2k6aiELo73Wm7k5Sxf17v/fd6IcSpQCIXq1zJb9ik6ZDAdSfEwooRseM YKep+K5MizcKry35ksqSfezCVbwdcIxlXDQMUJ6Y9hbqW6tPvUg/3A7E2tZRfP4QxV+4 5zEjlglm8+GQFKSDM5PdGibhx6kqNnkxd/hz/yaUhek8G2GuQCTCQ8jNYYcXmW0Smg1E vxdbl/NdoKQ4cL0aK8W9+Z9EotoHogLr6K9sGo6Tn5CLOlHbRw7cuOW1cn3AoSuvLwtk 6UPKKkaJPcVUfPEyBMiJgI+GAft/uAo0nX7cgL/Vcxsv+liPpTu4jB3NfyjGj773eCck Od+A== 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=DTnkMyPtDfiwoSgvFf9kmj5h7qwOf7FMQFhN75k8kMw=; b=zXaaoTWX+ltgkWPl1Gw8LTUUW95XhLcADXj06yuK6YLcgc9EO4LAzJd5dp9fa4/1yG 92alGEWZVn7KfkFOdt42+iEJ7vbOOegPA3H/ryGvJatr5szp2MqcDRI3qHC9kqeWKLrQ 62jgCIjlMF8D4xuHXKCPCBjlh8/uvEDPCHW8xZCnBXnuNW3DC7anNj5aEPKlr77KH0eH tHrCeX5tDOwTYwV1zT4+xaoxYnMG9FbqaRgbQn3eb5gDeV899hiVkGzXvyeC7xVwx+SR uIUDKhwFTzn/yYKeSct3NqN/CX3v6OqP0sCgGCzXvc23UwJsoK0fClzyk8v4+TZ+wYAh Ndyw== X-Gm-Message-State: ACrzQf1zEpuHfPrGdHn5gct/y8H6H0la4obW/jhOlaUYF+VON35kDZua rOc4DJlk4+doeyTUR75vlYOUjw== X-Received: by 2002:a2e:bf0f:0:b0:26d:e258:9ff6 with SMTP id c15-20020a2ebf0f000000b0026de2589ff6mr1840996ljr.356.1665060438970; Thu, 06 Oct 2022 05:47:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:47:18 -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 15/34] dt-bindings: pinctrl: qcom,msm8226: use common TLMM schema Date: Thu, 6 Oct 2022 14:46:40 +0200 Message-Id: <20221006124659.217540-16-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,msm8226-pinctrl.yaml | 33 ++++--------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml index ecb90c77f666..158c9a50101e 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml @@ -21,26 +21,12 @@ properties: description: Specifies the base address and size of the TLMM register space 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 - 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: maxItems: 1 @@ -60,7 +46,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: @@ -101,22 +87,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