From patchwork Sun Oct 16 17:22:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3123 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1096959wrs; Sun, 16 Oct 2022 10:27:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4psv19otCgQl5i7MsIbWUzy8CU2DJDH7aa/3qvwVMNO5yWtq+0HCCT95SLDvVZHS9Ofq8j X-Received: by 2002:aa7:81cf:0:b0:561:7d72:73ef with SMTP id c15-20020aa781cf000000b005617d7273efmr8461221pfn.16.1665941262358; Sun, 16 Oct 2022 10:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665941262; cv=none; d=google.com; s=arc-20160816; b=Ghxeqt1FycP4uPeOq9dwo+2+syZFLiGs4fNRvqoLGfSIqTZB0AgTyOrRyJGm0K89LJ pDqvjFSRO1yLIWiucPUkOTTobD60R427MKnrfKzi63udGJNb5rCqZjmuCZ9xt7ayJBr9 McQCM6HFS027mGKb2p79sC3gBpAOSogOj+C4tWFQnCC+Nwrr7ykuKl9mbiJ8TW+SfoUa iWuYEj/17NOInFxJRf1nlQMXbO60s9M7em3kLoV20ybig8kcrS3y7wl1GM//SJzJ02EM IACQzW4SVJ1ScVG1apv8ctXnrB8Yjsx2Jhv06zv2YCTGjwrzP7zGcylTyenboCvBf0S6 d5NA== 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=GR0uEMXM+VrjGRr3ZFiuAh6rMg7dC5fdvkVqkE+E16M=; b=VdrUnWMoN7xcsY9fkfui9N/Nx0ChLjaj5+1ss3bjSi1+HNss1fU4ltsUBuOLgq4eMp jhs1FoeLu0fqSnwP9rvz/s+Jw4Dx3s+YfYYlsalRP5j0ZQum/n0cmGSU7DERHlHFJkgL wzskeUdkrg8l5vjXIrqMZfQXarH3Y8bVE0a+cFSSMnlssENdcqxQdBaEUpmq4T9JIqR1 AupKPxyFmd1B6vRbNG5DlGCiPWxVeBnVFyvgX9PJPe/uPaekkPWEQnqdN1f2opDKU+kB ErXM44eBJXayvmlxD6Cj+9UgtceW5B4EMGxgPmZ/NxuKBfFNwqRRy4ZewlD0VVhKbe6A 6cjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V50UGpTs; 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 c1-20020a170902b68100b00182fd75c74dsi8172850pls.386.2022.10.16.10.27.28; Sun, 16 Oct 2022 10:27:42 -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=V50UGpTs; 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 S229930AbiJPRXt (ORCPT + 99 others); Sun, 16 Oct 2022 13:23:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiJPRXE (ORCPT ); Sun, 16 Oct 2022 13:23:04 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AC0D402D2 for ; Sun, 16 Oct 2022 10:22:50 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id t25so5460577qkm.2 for ; Sun, 16 Oct 2022 10:22:50 -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=GR0uEMXM+VrjGRr3ZFiuAh6rMg7dC5fdvkVqkE+E16M=; b=V50UGpTsUJplx5g4WSm5Gy9xgDyGwMm97Hwi+1A5DHnS6+CiI8PLhmBD+KP9y1Wh41 b+S+/X2PLym77W+6xx5YdEVwibbPKYmRIHbFTVLVP16URU6BwesKs+Bi68MbOXVibFFt bVR0LFz1OtXSREMSkbZIBzKzFAt3yI25EmO+QeaMJdGn68Cu/K0ouXKACRO0YDjRhojK YqeSBRtna/PrLCen563eT+ETPkH8oftFbfD/0v6V0gB8X+/+r6a1LyvBknA+20Gycuam 6Y5kjwj9+frTj1yf6QsNQ7fblKawnR4X30l++w8O4K32dAo1wYfOxkqJ6VaaIul3PBhq 7K5A== 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=GR0uEMXM+VrjGRr3ZFiuAh6rMg7dC5fdvkVqkE+E16M=; b=rNjApw1GV6LmbJQJsNLuEBxdy2pWEzaz2NlZPIfTAK8ugztnafKitlaXZ9tX4ORjpD xT4VP+X8iday4iy/8KXC+2EjFTtxCmEQGiLiBhozq+i3+9f3JzlUGDBr6QDb3NAEMLHm fAQqOlU3ubWCSLnz1JPeNm2jTq88jPA2cte7WkmxTF68JzhwlY5sZvJ6a7PqYBODsWXt NcEpKtJ6cD7Ujd6EbvF+FHYQO9/skf5ZF/e1MqjA4Dc93jf52c/OOokbKZOPIApPL2N/ RLL14IWm0n2OBxx6Tx18T7TruENFZ8+yybRXONZA3w0HR/HWpnJTMG9Zr2MnxWqu3SDf ratg== X-Gm-Message-State: ACrzQf1T17reUvWF4M15kb3Bm3YFwyiPIrb9+Ya/bNZvR6TVgKZpWnO5 ze4OA+Uai+6IfcnWQvWI8IfV2p8TB6Rm0A== X-Received: by 2002:a05:620a:4388:b0:6ee:8796:e390 with SMTP id a8-20020a05620a438800b006ee8796e390mr5122084qkp.289.1665940968587; Sun, 16 Oct 2022 10:22:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:22:47 -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 12/17] dt-bindings: pinctrl: qcom,sm8250: use common TLMM pin schema Date: Sun, 16 Oct 2022 13:22:07 -0400 Message-Id: <20221016172212.49105-13-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=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?1746866025195089709?= X-GMAIL-MSGID: =?utf-8?q?1746866025195089709?= 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 Reviewed-by: Bjorn Andersson --- Changes since v2: 1. Drop drive-strength, reword commit msg. 2. Add tags. --- .../bindings/pinctrl/qcom,sm8250-pinctrl.yaml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml index d7d8e5d3b659..9447b79655e2 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml @@ -64,6 +64,7 @@ patternProperties: if: type: object then: + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state properties: pins: description: @@ -99,18 +100,12 @@ patternProperties: tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en, tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, 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-disable: true - + drive-strength: true output-high: true output-low: true @@ -118,16 +113,6 @@ patternProperties: required: - pins - allOf: - - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" - - if: - properties: - pins: - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$" - then: - required: - - function - additionalProperties: false allOf: