From patchwork Sun Oct 16 17:00:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3104 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1089735wrs; Sun, 16 Oct 2022 10:05:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79obwZrq2QRel4g4jtBmr+gc/DJJDwOGKT0mwosx8LhNFLNmUVamT1FmIYmeePUIyLulBV X-Received: by 2002:a17:902:8541:b0:17f:6b27:7a75 with SMTP id d1-20020a170902854100b0017f6b277a75mr8120824plo.65.1665939921188; Sun, 16 Oct 2022 10:05:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665939921; cv=none; d=google.com; s=arc-20160816; b=exCVWW8rsB1R6HMigyS7uxm/eMlZ2otkZtsXfbxwY+XNcQfaLrsBQQiVV4KtNs7InU oC65yqY4HEMZroJ/TnEhQqjqzALwYun1KEl2qhopYdgsvI7r8o3cDJV62RQAdTCexwIg j5n1VrTNpQM2FHOrKYjxbFF9SfJJ+CFopz7qcm2P4jEwDEw2y93pCwsJhCGYVFCdzkNX Oelr2baAC41w/4fLLwFHC40wrK6f0d3gL4mAFAAGYYifrj/fg4kMYDWRE3+iCcNW7Dms almdzoWUY3SCgrHxpyr0x5GwHa4fhbhrcxwPLbF5rFZf1/ZJ0tFQScTxnq2T+6f1Nq6m MvCQ== 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=CEKjCuD1JH7JdjhuaALknErak/xWiN7RBOQ/qoS9q9o=; b=ayKQwUK92ylWr9M0koWE33wraCX+jnPOkUgGt50W1OeX2UdaA43kKe6XSxAzD2OrLS lLSeeAMC4QBgu1jLxO5/8CIx4rq0tjkdK2sk9EfxX62l4nFNHBgY4BrK+bsTX/8nnuP1 CeLUNpR8cWdI/w3rZhhqbFk8fD/rFUuKzNT9nAwxLVtclIg1k/x5kx1a6Vu+mTln6qkd y3QGhr6/H2tPGeid6yDTCfk5GtQIikskW4yUPhb7Ah8SPOdnFhN1LMbmHGEWLUNDd9Vj POrCOXoKAR4yBAZp+8TdKbq1I9qX7L0VKZHhht+xxshDHrwMAhNPhSruX2ETVSQ5N+tB IcMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NCpPPXy6; 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 q18-20020a17090311d200b00178662903bcsi10156926plh.52.2022.10.16.10.05.05; Sun, 16 Oct 2022 10:05:21 -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=NCpPPXy6; 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 S230055AbiJPREc (ORCPT + 99 others); Sun, 16 Oct 2022 13:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbiJPRDu (ORCPT ); Sun, 16 Oct 2022 13:03:50 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED41438458 for ; Sun, 16 Oct 2022 10:02:41 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id l19so6249920qvu.4 for ; Sun, 16 Oct 2022 10:02:41 -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=CEKjCuD1JH7JdjhuaALknErak/xWiN7RBOQ/qoS9q9o=; b=NCpPPXy63NmxjlBKSENPAyjLHiAxjufZCYr0E8yykcxmY+CpLNoGaZ0n5VqM32MC84 jrFWotBuiuo1+0d/cHhFgMWSz6dzbUdk++AUriMf56yDQ3H6syub2Bkfyiv4iWkfzrOm YsDloZ2heH6Thdk+KBD4ySJwtBw4w6QAgqeKBKZ3ez+3RIKWUBi0m6GKNJSQpMLTzGka baGj0cDWmP3WUNXALpNSIaOdbLgtfncrWWfs6ZJs/MpE0KK2QOaFmi1A0rznRjG3SmC6 xXWDvtkDnCeKQyqYKz1n0M2EHYr3Z9yK+7lFCCCkbUfE/5hUUlYCHKd0gGLcMdhKJITZ C1Hg== 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=CEKjCuD1JH7JdjhuaALknErak/xWiN7RBOQ/qoS9q9o=; b=Po+SbxJlhTSI4cwuOTz3WDA5f/gYeXQTcduxWtGfym7pZ9oTRnhc+ylaolSBXlf1JA AXkW0On7H+N20cRyzXLw9LBO87tHAJISoA/q4mHCwXLzbqlo2gnCdHIPL6qGnASQjMhi WFpDLgx7iHXsY4cdcJQ1gru+IrpTa3M/j3x+3Xq5y5Xfak8oTXuBMsWArYVaYp//oeEo /AYEfvJTaUF8BVebrJKBB0vFXsAAy3caNiEkIfg5fQk+Grt+DtgQ5dKk+Qcfs27Ll+/H +LZSYNzL1vEM6L6fH1wD3BA1cRBGiKLAZPkK+epaEJK+FZ+nTbtisZDkvldeKwgnbLZZ tztQ== X-Gm-Message-State: ACrzQf2oksaHs5AO6aKOWJhADHIBQr5Ko8/jm0bJPEH1gOyvU9DIRIaG FzMV+ZoNtbu4mV6JSQMK7bWgKw== X-Received: by 2002:a05:6214:1d0e:b0:4b1:7c94:5e46 with SMTP id e14-20020a0562141d0e00b004b17c945e46mr5498623qvd.38.1665939752970; Sun, 16 Oct 2022 10:02:32 -0700 (PDT) Received: from krzk-bin.hsd1.pa.comcast.net ([2601:42:0:3450:9b13:d679:7b5b:6921]) by smtp.gmail.com with ESMTPSA id q6-20020a05620a0d8600b006ce7bb8518bsm7539967qkl.5.2022.10.16.10.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:02:31 -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 v5 27/34] dt-bindings: pinctrl: qcom,qcm2290: use common TLMM schema Date: Sun, 16 Oct 2022 13:00:28 -0400 Message-Id: <20221016170035.35014-28-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221016170035.35014-1-krzysztof.kozlowski@linaro.org> References: <20221016170035.35014-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746864618734947736?= X-GMAIL-MSGID: =?utf-8?q?1746864618734947736?= 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 v4: 1. Drop drive-strength (included by common TLMM node). Changes since v3: 1. Drop properties and required items which are already provided by common TLMM schema. --- .../pinctrl/qcom,qcm2290-pinctrl.yaml | 43 +++---------------- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml index 5324b61eb4f7..ae73e3d45bbe 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml @@ -20,28 +20,12 @@ 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-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 #PIN CONFIGURATION NODES @@ -97,20 +81,11 @@ patternProperties: uim2_data, uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, wlan1_adc0, wlan1_adc1 ] - drive-strength: - enum: [2, 4, 6, 8, 10, 12, 14, 16] - default: 2 - description: - Selects the drive strength for the specified pins, in mA. - bias-pull-down: true - bias-pull-up: true - bias-disable: true - + drive-strength: true output-high: true - output-low: true required: @@ -119,17 +94,11 @@ patternProperties: 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