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: 670210 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB229C77B60 for ; Tue, 4 Apr 2023 16:30:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235382AbjDDQaR (ORCPT ); Tue, 4 Apr 2023 12:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232656AbjDDQaM (ORCPT ); Tue, 4 Apr 2023 12:30:12 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A01E469D for ; Tue, 4 Apr 2023 09:30:09 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id d17so33428835wrb.11 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=CohCmGYNGQ9FqsTu0otISoThxYQlW5mX6Iw/bNK808rBi1n0feZhznanWM4uL9rQXS tTaUjoPe3/5JrA4PcMSTLnNNuG1Zz4QLO6UiGgcVkp2ykBA1ZfmMlO2yKZn4wxQtcDqX v4rdhpA6WD37H4Bzv13QvY679W9p4nyOevBqQXSuUzCF4WyoU7MTvd6qocBJqA2EAZCb /PFvtZvhU3z8btiLo+WnXE3y0x3ldUZboy41xR3Vjza752f9N0NNWcNTahu+QODfgmeW d9k8VMG/hJcjQ/nFARwnyns/5DPFEE2VLFdr0upGoqE2lB9Fls0kAIhXTeGkXuYwdQAU 1/jQ== X-Gm-Message-State: AAQBX9fHLcB+X3qgnScCQyzG1Ty++cnrgID5+tSOjwhyW0ocyVg/9zb3 GjMEwJ4PEYaEM7P7WGzGtDeUPA== X-Google-Smtp-Source: AKy350aZrkStOHE3/rNCMGCA7ZZbrEZnj5QmJpF6x+bIHaF/DIglv94GiA0cPOPu5E/jCP3+B8wZZw== 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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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; }; };