From patchwork Mon Oct 17 22:59:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3799 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1680724wrs; Mon, 17 Oct 2022 16:03:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4DuWBQfRDQFblu94qwNGMkU58l4LhYzRv8NBIP7zshXv7owL1fIIX1zjrPcLSsOnBrglLb X-Received: by 2002:a05:6402:d0b:b0:458:a244:4e99 with SMTP id eb11-20020a0564020d0b00b00458a2444e99mr60480edb.46.1666047832762; Mon, 17 Oct 2022 16:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666047832; cv=none; d=google.com; s=arc-20160816; b=ttxmQ2I0QwAeoCRx/SX/e6ySB4R2mtrIffaqkcIqRYC89dA42MKSUL22D2/1iRGVWp 4aa1Cm5umGSaOMXP/BZcIk80JJRQNZ4khl3qkNYpyBBZo5nIBdiJalGbLJUtX21dNaf3 Fpyrpp13VygH0d7m0fbFbJmTWHICKv5vCu+AtBkDoS8gf23KjhoSnFXRfB7LUZm0O3Tz qKcZzwGdutU9PPM/Mf6GgEMgVx7xiB4T0dFRbVbuhnGsMh1VrMYmejJDa5P74CzETFMF H/6JZ2sA/XnsI2Iqx+irf+8dgi7k555SJNtFagR6by4JZ9iZQlYVoKnI/kVRz1QEK5+J ybMQ== 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=GWjfCBrBsSU1ByEdtEtQGsBHhgMgWBvICo70lg4eh4k=; b=BFarZpXs3Ya3oHgHlg9hBMfSIXnLFeptUoptTt01/GYvaySHrUIhq9VYlwb6/as/Hk pdeUstXP8vFSRsisz6IdQWQpelAxZ+Mn09EhNfIF+6aDSHsbPDRGHHaQR/mxkIp36bpS Afk75wahXxNfyr0T75FjNmGjt4SFRTeizne6OluUGcqn54gxjgaAWsoxddrfgK539OPk SswrF1JWuNjaSDD2h61mUixA+7H+bpXtqJ/YbXkC+5Z51/VzG4X1t4ciLIdI9mgBHrA2 agrK+ll/BrsUaJdrU57n/fTAb/JVqXWiq2ZeboyJ/TK9prckX6PAuLUrm8zUiFDszOpF P7rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OcUhYh7m; 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 da26-20020a056402177a00b00456c6b50e90si8686218edb.419.2022.10.17.16.03.14; Mon, 17 Oct 2022 16:03:52 -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=OcUhYh7m; 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 S229848AbiJQXBy (ORCPT + 99 others); Mon, 17 Oct 2022 19:01:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231160AbiJQXB0 (ORCPT ); Mon, 17 Oct 2022 19:01:26 -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 474F782D29 for ; Mon, 17 Oct 2022 16:01:00 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id g16so3899570qtu.2 for ; Mon, 17 Oct 2022 16:01:00 -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=GWjfCBrBsSU1ByEdtEtQGsBHhgMgWBvICo70lg4eh4k=; b=OcUhYh7mA2kES4Rtq1+XGWnJgXLgLzhi4uTVNlU05Gp+OGy2b3Tep5WLSQMe6QA/WD UY3DhSpbZ2VHO45mTfCIqj/tVW534bjnzc3VyZy2Ekt4FbnShZa6WhLRTLYii25RHett JW4ROMS3wvBtgkKIUMBrJP2vlh1IVTNZFt59PZQg1MWbrGVzfzoBRsXxaxoa1AQLGiXL zwT4Ua+3IL//crg5oEi0o5Wa4GP5HGlH2hN6CYUPzlfEFgYYlel4ccRauOXmzPUFcq46 XbXKVhBX/4w7UAzbpukre4B/NDpPwj9UAWFPtbQ3JgNGe3WITDQddiUvrq9dJvrU4PSb y8Kw== 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=GWjfCBrBsSU1ByEdtEtQGsBHhgMgWBvICo70lg4eh4k=; b=S+9QBMjaq4YlL6kdc+Y9fZsAVHZFxaBTE8SK65cVWxjTckDCa+g/TqjE3j373hdX1D BG/6yCg95ONZChFE3hFF9oE1KHYb+rGMGukQIEQxL/wVx5ADGLfHbhAwKOnQ/oy+Crpy a7Pp6Rmo+6Rze2OfQll6/3+nSPEamJpYEo3Pza4jb2SguXEe0uSJulOo8fYpHZ4+nqRG 3nBhWmdc4bKpQXomBXYkq5oiZqE4nhSEJzWiGUWLZtZIFt7vYbPrE2T5O3oTUVJnQRGC kRKT7LEomSABgokNG62EqoP8bWhz2Bd5l096zITOSuC2cgxol4NiuY5TZl2wgAUPWzj9 BXWA== X-Gm-Message-State: ACrzQf0UD6vR4L0/6LQiVCicLsSDR0lRymjukXR4kjWoRlqzxe0adGzh eZZbqtaDwGKsxoy03zahXEwuMg== X-Received: by 2002:ac8:7d0f:0:b0:398:3029:3328 with SMTP id g15-20020ac87d0f000000b0039830293328mr10989239qtb.99.1666047659712; Mon, 17 Oct 2022 16:00:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 16:00:58 -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 12/33] dt-bindings: pinctrl: qcom,sm8250: use common TLMM schema Date: Mon, 17 Oct 2022 18:59:51 -0400 Message-Id: <20221017230012.47878-13-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?1746977772490461685?= X-GMAIL-MSGID: =?utf-8?q?1746977772490461685?= 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 e9619c4a39d8..e424ffc1472b 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: @@ -124,18 +108,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