Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp880967rwb; Thu, 6 Oct 2022 05:53:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tLURVKxPYlWG/AYHw3KB+iPN6OPp/0EyngnaPEUvxH2eVRClLLF66rY260IsCadDPmLIP X-Received: by 2002:a05:6402:298e:b0:451:129e:1b35 with SMTP id eq14-20020a056402298e00b00451129e1b35mr4460314edb.79.1665060800921; Thu, 06 Oct 2022 05:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665060800; cv=none; d=google.com; s=arc-20160816; b=mic/7i7DOtSUwZIGavnEQdjPbjeTwGc+QpT/c6I9a/nCzeB2mUhSSAAX+qcBzCUu2l JdrxpOmFYP5OseROjxWqIi0hY2HKGwZ/FfXXAtcZvfM5hFzBWDgpO7BnBkbJVSH79RUU 2n0FKoCRoTQAJPQ+6ic2vEckodOMnbzNQTTwZlKx3oyHPAfKhptcOTXRlxFPIOfLOQaC 2KwsUls1xmJ/dSTrbPPRuYYRengo5iF19tdpPVdqrkLaJ6fYli/vctWvJ1UAClM1qubO ArMUoRsvstzCwLMLPOrCP71W46aQNb1FY9cQqut/7gOGdlmAEInD/jo/ed7NqomHtaO6 BsEg== 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=8jHVt4Wcuk7kdlxqQax1e0sLrENLcN4emuDAtVxRluU=; b=lk9VgfSgQGKZFZnHWSocad+V435rjKu3CUJV2wyqzjDYLVT8B8HFB2OFACQ/30L0CW GUHmeeSDmq40fibTsWqm4L6ZAhtYlIZkUZpKrnm59rBSNBNrdkv61woH50noBsfwVYqy 67UnxUCWTQ+0QqQbIpUEiyb0lMdU1KUzr4Gl784EMidcKDJmJiwzB/X4tv5O0qHc3Y0H Pstl2uWCcZuP6hRy/LTehiPROU/HLH86dDDfIe64DzSN4JLAvJhCWu5E0tfKWCWpao/6 IEVn2IY2B0IHaT33IrvvNvbiYtuLj7RSobhj9xOzE9dcI7A7kJfDrXpl+kllJv/fP/0h QRGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WGbdXTh2; 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 e19-20020a17090658d300b007879bb732c6si21132900ejs.712.2022.10.06.05.52.55; Thu, 06 Oct 2022 05:53:20 -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=WGbdXTh2; 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 S231768AbiJFMuc (ORCPT + 99 others); Thu, 6 Oct 2022 08:50:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231704AbiJFMtx (ORCPT ); Thu, 6 Oct 2022 08:49:53 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFC7BA50C2 for ; Thu, 6 Oct 2022 05:48:07 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id p5so2065781ljc.13 for ; Thu, 06 Oct 2022 05:48:07 -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=8jHVt4Wcuk7kdlxqQax1e0sLrENLcN4emuDAtVxRluU=; b=WGbdXTh2/BKZ9IFcHrcbHcTJw0t7YjtFLt3pQwOE/fp8M/2iKmU8MDKtGRCpYGdUVB qmH4OWacnwMRV7LHoD651ES7m2UdS2Fy2RgvxuURkceWxAvqM6t+/i73dFFFvAHrNfNa wsaS0PNbkdtQpm0TtAI9OH0HJ817g47IUmJjUdUGKeDSrM5HS6X2Lc/qEsdggaSjUlKZ JPT/ceyaOVB8H/AOLT5tUUE1ndos5VDcT5zj3zywuhJMOxHnwuo3hFl1RVy4Jm+I4FPe RX7+pMthOfJeBalqghV0E03s/BCYqRyjTM+FU9z5FThMXUaZSfnmhY6sHW6r9Ysottxy ahTw== 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=8jHVt4Wcuk7kdlxqQax1e0sLrENLcN4emuDAtVxRluU=; b=jT59W5xMR3G927n7AQutNtroeBt1FBfPCBICjAqcXobk8QZWnqJ7DvHXbtPTDIVBvq OGiCZ3gse5Nmk+G1d7vNdr1Hp/PPtTCrQzX6A8xiaBXLdCEPLKA0M3m748tqyZjsDelf XVurN8tybjFTZ7npJ/YvqPwmGlwewF4zpQHoNEvD1vOPQUqvd3RZGjLPt05SDOH3TfRC FJOtKryfd1doLNPtdYyLeuUvczqJCOEbOZiTf0slxXDU5JLyZIMoDJwBqz1sTybyJpHy MxsmGjCd7HOT3Td78Yiw4cp2CExFZU/odLYY6loCmZncHXbcZGoVX2VzZnQyngJb/7is w/XQ== X-Gm-Message-State: ACrzQf0J4uqUImzr0xpGbpO6BUhgz0JA5rabKZEWo0TTfmbhIDfLTeNh A2JOr61RBBe2VcIsrwhaMI5RTQ== X-Received: by 2002:a2e:9011:0:b0:26d:dbe2:d1f1 with SMTP id h17-20020a2e9011000000b0026ddbe2d1f1mr1818482ljg.230.1665060455681; Thu, 06 Oct 2022 05:47:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:47:35 -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 29/34] dt-bindings: pinctrl: qcom,sdx55: use common TLMM schema Date: Thu, 6 Oct 2022 14:46:54 +0200 Message-Id: <20221006124659.217540-30-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=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 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. --- .../bindings/pinctrl/qcom,sdx55-pinctrl.yaml | 33 ++++--------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml index fff57abf4fbc..e02590daf7bd 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-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: @@ -122,22 +108,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