From patchwork Tue Apr 4 16:29:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 79234 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp10866vqo; Tue, 4 Apr 2023 09:33:52 -0700 (PDT) X-Google-Smtp-Source: AKy350bXb+BFq+P5bFcvt/p3mWQCetM0m45dxnBeejZuCmTKHZlQPicz3W9YHF3xDY+wUYHB8rCl X-Received: by 2002:a17:906:390c:b0:932:9502:4fd1 with SMTP id f12-20020a170906390c00b0093295024fd1mr141581eje.43.1680626031896; Tue, 04 Apr 2023 09:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680626031; cv=none; d=google.com; s=arc-20160816; b=RNIHtdNkjKocDg2UCeUrfilJb4VWocvyKCtvjmIimyBAQKfm5QbSxz6BJRVJX6/l2w VYT/NuPmO7mXbmTVbVixvbvNDB8totOSTc4V5pNbnFGMh8REmqMRjBZVQHx+mxFjD9kn HhQxpBChYph1ljVCSx4QJ2EnUZpygZc2PIPW38/T4mO2UpxvSpd1dt1cwrAs9C8qmAdr uzChc0HnG5GMeOY6sRY9Vw7wiDCSfcIV4oMHBs1Q4Bd6kUlCkMB8ij3r6gektpv4HMgp RBop6wXHWWSGLN5QOhBC2UrIPTEIsh5gij9lIF+Pepn0eLrZWZ/YRQfyjoJX/sQuvc01 qiqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=RBNri8YkynclVYwoBklQprwBa6iRmkrRnEEZ57sGW7s=; b=s2HIrgTlIgBHx3PxeOo5oAQdSbYfTWwua+qU2rT7hPFnAjewCFDrmtjNGsNxxNr+wK NQTK1W8G7whb627vBW7TSokHS0Kw3ZtKj2IoEMzOxAJWSKIDC1QkttmxEjcHomcvq7lz 8V5kAtBPSzfkN1c6iEiN001PpDRAG3vB5WqnNeKWIualSGS+vtPHqP49UgYYR/mNK2pm X4sBjpGc8QUUQuutbOSZKmEs715ObH9cTvBQeJNAWzuS4xYpiQzsDhd0f2K841clsUtF RiOwxFUzjyl5QrQJL8yWOeVibhlUvKL7fANa/EWtohdNUEeCjfhsfz577DREcDST1V0N cUNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=b7QPSFIR; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a50ed8d000000b004aad0c7e385si687524edr.270.2023.04.04.09.33.27; Tue, 04 Apr 2023 09:33: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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=b7QPSFIR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233767AbjDDQaU (ORCPT + 99 others); Tue, 4 Apr 2023 12:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231348AbjDDQaM (ORCPT ); Tue, 4 Apr 2023 12:30:12 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59E864685 for ; Tue, 4 Apr 2023 09:30:09 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id r29so33417308wra.13 for ; Tue, 04 Apr 2023 09:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680625807; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=RBNri8YkynclVYwoBklQprwBa6iRmkrRnEEZ57sGW7s=; b=b7QPSFIRLZWuSwErIjXPg8XFGT2FBNUXe5LCta9x8zNLcel6vlGHrVw0LsChCTCVsj AtTFrdZfbxSS5g1PQyhzqrY/O1HIi+TO59Mm564sv/lWAJIge0EJWk1JOmmw08YH9oXj 2miV83a179yRVjzgH8z5pVcSjykDfpno6MOmQ0zWl1ulDj6DmPvN2Vk0udCd6d6egFp0 TuJBwe8fGF4qmOArdi61E8O4oN0tsC7RHkXDTiOHyQn5Eslc/dAs6wDJmOPqFX0UA9XP IOQfgnoeZ9gBVi9123H/OGtgu3V1HpZrTvBP6B9h9cPavd5JfwO5xre9HJ2JIj9lzyCy D6/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680625808; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RBNri8YkynclVYwoBklQprwBa6iRmkrRnEEZ57sGW7s=; b=QbBGo5QTB0zLCj9fAh9PbroRHrn1q2YaLnwpVk54HDqGi0HHNqvZftZR30ll/9XeqJ YImYwBv5gNn2NX8iChAeFB5qpbVO1vZnTqBOxNp5s4Uwnee1DecSCtUT4bLBlNdBEL1X XvNUhA78L0VHIZEqryaH/0Bk9xP0KmZuVcrZmks0IKxvlFj+Muht9BXAsNFwKeLgjcfG jJmVy/ohLopXSnOoL4BC6qsEdlx1GELJwfA+FeGsxg8et/eKtuyeT6U6cQjdhi26gsC+ RetPrXdAWepbqP2Gd2sRaMeo4Gdn1EWVwVfQTVAqiVpL8IjtzXvoEkAaH7FbFmvdjElL jFkQ== X-Gm-Message-State: AAQBX9fLgsVUryIxaEz93qQw/i6Qh7doElJQbZRdW30WidlM3ykrSY3P x/SulW4uhUphkWnpzXP+v7nLrA== X-Received: by 2002:adf:f504:0:b0:2d8:1a74:9b94 with SMTP id q4-20020adff504000000b002d81a749b94mr2271019wro.68.1680625807739; Tue, 04 Apr 2023 09:30:07 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id o7-20020adfe807000000b002e4cd2ec5c7sm12694528wrm.86.2023.04.04.09.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 09:30:07 -0700 (PDT) From: Alexandre Mergnat Date: Tue, 04 Apr 2023 18:29:49 +0200 Subject: [PATCH v3 1/3] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property MIME-Version: 1.0 Message-Id: <20230327-cleanup-pinctrl-binding-v3-1-6f56d5c7a8de@baylibre.com> References: <20230327-cleanup-pinctrl-binding-v3-0-6f56d5c7a8de@baylibre.com> In-Reply-To: <20230327-cleanup-pinctrl-binding-v3-0-6f56d5c7a8de@baylibre.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Zhiyong Tao , =?utf-8?q?Bernhard_Rosenkr=C3=A4nze?= =?utf-8?q?r?= Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3361; i=amergnat@baylibre.com; h=from:subject:message-id; bh=4xeMETQ7de8kyAEZcE0zaBq7ZmTpxY4WtvuqGUwV7yE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLFCNdWrj6CahMuPiWgdQAJwKwga4xOpbZOc6aCRP Om+lme2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZCxQjQAKCRArRkmdfjHURU8mEA CeaF9knaja2TNK9zBPlYjowTWhAiATJgs49BPXeDsISohsxk5daDywxWNhJvUjgvHeOQBzc7Yq1rW0 Pg1rRLdPeMvHmw5XJ6mOcQNDA0Cx31nYE8wWVNH08jWQWuKRAD0i54eYvvl86Pzkg3htfbAjS3Br7T 8tYa/L8eFxDCq8PLNk7eBfQqWLiPyk8UQhL0ieRBWJajUlYFjgAYWmw0ZksCY6JZPQBIdFX+HKolt0 yG+yr/xJOxueTvxUxHSfk96x8Vr7eqfoNo7YF9DZA2BlvuLz4DLg92UeWuQ6VMS8m2HpmNquutggB6 touIkJscb84k2PyTD19Zmps1aexjake7OTalGQDbjTbERe04HD5H1swoZDrKpSCLonypbWcRo8Jyhb Dtcq5OhQqMAEwSOn0RYixV4kZVVE1IYo1cfZZOp6flImb9E7Yj062mvZ0XgVIVNLMjmVFTcnckO4N1 8swSJ7caqZkTaHjtoVNtSGGoRzpnqp1gGdm1RGDr14ZwEia96DNV6lkxrh+ZdlV43ZLVhj04vRGseY DE7dcRgVjCgKuaVXk1gwOGwHxHNVbeHt5ZLjbWw82XWzDrCQDQzYn3W/3Z6QEtYndMXM9weL1XaJvZ NXhJ+93tVeCLoKBjQa8bKG+k0x+v8UK+H69eljGQ2BPvtCtvE8dk2Y0neq3Q== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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?1762264121997289357?= X-GMAIL-MSGID: =?utf-8?q?1762264121997289357?= Deprecate mediatek,drive-strength-adv which shall not exist, that was an unnecessary property that leaked upstream from downstream kernels and there's no reason to use it. The generic property drive-strength-microamp should be used instead. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alexandre Mergnat Reviewed-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 8 ++++++-- .../devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml index bf67d4672455..ff24cf29eea7 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml @@ -110,8 +110,13 @@ patternProperties: drive-strength: enum: [2, 4, 6, 8, 10, 12, 14, 16] + drive-strength-microamp: + enum: [125, 250, 500, 1000] + mediatek,drive-strength-adv: + deprecated: true description: | + DEPRECATED: Please use drive-strength-microamp instead. Describe the specific driving setup property. For I2C pins, the existing generic driving setup can only support 2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they @@ -217,7 +222,7 @@ examples: pinmux = , ; mediatek,pull-up-adv = <3>; - mediatek,drive-strength-adv = <7>; + drive-strength-microamp = <1000>; }; }; @@ -226,7 +231,6 @@ examples: pinmux = , ; mediatek,pull-down-adv = <2>; - mediatek,drive-strength-adv = <4>; }; }; }; diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml index 5aa8ba4cb547..dce9fd1a6a72 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml @@ -91,8 +91,13 @@ patternProperties: input-schmitt-disable: true + drive-strength-microamp: + enum: [125, 250, 500, 1000] + mediatek,drive-strength-adv: + deprecated: true description: | + DEPRECATED: Please use drive-strength-microamp instead. Describe the specific driving setup property. For I2C pins, the existing generic driving setup can only support 2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they @@ -191,7 +196,6 @@ examples: pins { pinmux = , ; mediatek,pull-up-adv = <3>; - mediatek,drive-strength-adv = <00>; bias-pull-up; }; };