From patchwork Sun Oct 16 17:22:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3124 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1097014wrs; Sun, 16 Oct 2022 10:27:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4VcdhP1ejTM1LujH2p4xhgyitUwGC66++nJKzVSA2ZxtDQKcz2Tj3B05M48LqyBY+CGkjc X-Received: by 2002:a05:6a00:8cb:b0:52c:6962:2782 with SMTP id s11-20020a056a0008cb00b0052c69622782mr8335645pfu.81.1665941271424; Sun, 16 Oct 2022 10:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665941271; cv=none; d=google.com; s=arc-20160816; b=DzuRVsFjQWdJrTSqHDk5RTpW7KNAqBYpMLTHq7UzvCQFo0qFp5gpjWVFuh1l/j7F1E PM4DLPqEy6PwZvHw0f54hpOK31tNkMR1+u+nfoYCtNQk3aPnDyzxjMiRhM2CjsHfD69m rcYPDjjbz9yoykBgmu8/9Yz0V/ZoSBdnDVDquKWHPB5JXOsCz9Ak6+3Bf9KDSUkbUpRN VwKiFxblzYv9YgtERhaGCrtIKknB+jY0utG7c+2d5XOWieuDSlFAZPfCbOfaJRd0LUAA NTw0pvFjVTeLfZamONlQY9eneuJ0Sp9U6brT3su/6oJYCOd6aMhPc95jXLYtdDODUX0t w5ug== 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=PWSKu7iskvYCRHNzfjjJULSfJxrJyK6VO5AdJbIhDuc=; b=N6K9+WWFSGEVBSwMZIDKpg3MlCw53FeZlKrKPt3/qk3qu1bUnn14Ym7W/asfesUFXU WykyTlA2ZSyNZm/s95ambVvqtYx7hPChjHjbkogiOaAz3BrtoiGPwngo7PAWg8p6zTLz otnqtBncFRUJDyAeGCsnc14L4fjU5axl5m7E1Dy/7hBQru9WAidgr+OxZ6P1U7jnr499 1frDGeNO+fOoQ37oVEX4cBKh8AK0wJI1eiPTfojU0cdzHCLCWOjLD4DqKQUT7mA5WMPQ 3JbjE1vNCgfBCETU64Pnw1/+OmPIoNrr5pD2rY54AxM5Jvh832O/nu6AxTxXua09vv5J uGAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YANfOS18; 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 b13-20020a6541cd000000b004393c9493ecsi9313927pgq.568.2022.10.16.10.27.38; Sun, 16 Oct 2022 10:27:51 -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=YANfOS18; 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 S230141AbiJPRX4 (ORCPT + 99 others); Sun, 16 Oct 2022 13:23:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbiJPRXG (ORCPT ); Sun, 16 Oct 2022 13:23:06 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 323B837FA5 for ; Sun, 16 Oct 2022 10:22:58 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id de14so6273327qvb.5 for ; Sun, 16 Oct 2022 10:22:57 -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=PWSKu7iskvYCRHNzfjjJULSfJxrJyK6VO5AdJbIhDuc=; b=YANfOS18yDjkBv8LX04Ri8LiKcAhZi4/VMCsQXt6LnTXavtuN1oiplbBpWzZxDPEwW zsG3o9TSArP3ryftHI+ZLRLQhr3xtdvVpJEaPKuXKwN6Fea/nSdMpvw1aI6ZaziJqJ1j k2dEzcabkumPpplCJMbceNjLqXNh8usZLM70ALhcp2/S+DCVpM9fJwPQRcBVyhQoU+oG 11GXlINrfvxFT6iQ86Fi5PLjS5p3RfE8e3+VP1Y4BpyppjKo36Iuls92m9oq7xaWJFeC enSrxW1zA5b5PCBCAUVzgExOQximSIGAO3+0F+kCIwgHB5PWOcqLfQtmmRgy0HhczpY2 FAYg== 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=PWSKu7iskvYCRHNzfjjJULSfJxrJyK6VO5AdJbIhDuc=; b=bUZLJ0DbmLa9Y7ZVrDrcg7nhtaMz9MgWpWhY4f/I20shgBIUFh56M13m6Cxe4MlbKv ogrHYjXwVOeOvFEBDjkfP1nB1RdWPSI/tLvyJ3ywTwHLGjAbi6gFKdOHU1YtGrXeFE9+ /RGZQ3IMibSMIhHKLB6uR0+LGmp99+b/Vv183hSMhIv+Lwz1FAqAQZAK8U2Jz2mn1XjL ZL8dbCHyzmvY+fN4A/vZVWhN831fb2wa0QivEhQbECy53uEFrdyw58rWFBWL+MiAK1bs 1OK3Qa7GAkurjg7o59wTq9K2nK2cPV5EyizYt/c/zJaEWHxj7d/Rq7N67y3vEdvkm1Rh ezYw== X-Gm-Message-State: ACrzQf1OyV+aqwvpWsk+lWsgQVe4L7g7Pk5GuAk+zH7HNAKB4jvSDwvQ FT9/+T/d5bS+x4aQh58f533eK6L+/2HUvA== X-Received: by 2002:a05:6214:21e5:b0:4b3:f3e0:5432 with SMTP id p5-20020a05621421e500b004b3f3e05432mr5607497qvj.19.1665940976508; Sun, 16 Oct 2022 10:22:56 -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 r5-20020ac87945000000b003431446588fsm6051008qtt.5.2022.10.16.10.22.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:22:55 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , 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 17/17] dt-bindings: pinctrl: qcom,sc7280: use common TLMM pin schema Date: Sun, 16 Oct 2022 13:22:12 -0400 Message-Id: <20221016172212.49105-18-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221016172212.49105-1-krzysztof.kozlowski@linaro.org> References: <20221016172212.49105-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?1746866034387023299?= X-GMAIL-MSGID: =?utf-8?q?1746866034387023299?= The common Qualcomm TLMM pin controller schema for pin mux and config already brings requirement of function for gpio pins and the definition of drive-strength. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. Drop drive-strength, reword commit msg. 2. Add tags. 3. This was previously part of: https://lore.kernel.org/linux-arm-msm/20221011172358.69043-1-krzysztof.kozlowski@linaro.org/T/#m277d25a5f3e9d10ca8221a7fba62ca468a67a60b --- .../bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml index 2a6b5a719d18..d70ab12f227d 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml @@ -62,6 +62,7 @@ $defs: description: Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state properties: pins: @@ -110,16 +111,11 @@ $defs: uim1_clk, uim1_data, uim1_present, uim1_reset, usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] - 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-bus-hold: true bias-disable: true + drive-strength: true input-enable: true output-high: true output-low: true @@ -127,16 +123,6 @@ $defs: required: - pins - allOf: - - $ref: /schemas/pinctrl/pincfg-node.yaml - - if: - properties: - pins: - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-6][0-9]|17[0-4])$" - then: - required: - - function - additionalProperties: false allOf: