From patchwork Thu Jun 20 10:16:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13705084 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D037AC27C79 for ; Thu, 20 Jun 2024 10:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MKG/o9Ai1IW2ZUIQBpnb8fHXRWztg5sUthn8aRW8Axs=; b=veuk2v5Sbdk8cMZ12b3zDmkmmX cr2ltKbJb0X/iQBk4uGi3S7F3fvMVFlXfpT9y3CpeY/bGUBe0azQI2KFBasMTOprhzxKZq9dIYd8u 2r1IVAGFJmbSy52cRZ3bbkg+k7nd6IL1YhG5arSuAovdnMMiWq7hhaWxUmNyTXwiOWzDgsgkhhVrB OIhdubh/4vHkkx84KJHuC8QLHIDa3epI9P1qz1SPDHQLC76NkE9pB4/JsXYH9Rab+WVsF8KnQ7KvS 6cbxtKhpLWpv482aLSzhqybtFdvcdaPV3T7Jfe3GPk7blLSA6bFov50hA/FOK2uWm/4QCY/u/wDgv Q6PKQpqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEqy-00000004X9f-1NNb; Thu, 20 Jun 2024 10:17:16 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEqn-00000004X5l-3eit; Thu, 20 Jun 2024 10:17:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718878624; bh=xzrS59hbUBkr2k9yR5uBvEzaG4iOlLQ3QDX01MkRSVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NY2U30ZAchD2HC2B/EgzcKIaCg5++2AFXwZ7POUz5N0EhDt5fOs6lupcNg/1AUUab qMf9micf6H+eumGtniDsHPdv0UWB9Ddle9mcVvCHT0D7kVNjLptJQsHQ/QCSnkGwwC XqYfwo6sGOuxo0/FlaZR9+x4GlhGXWotamT0bXhjMl1xkXvoEph9Nn1p9sgq5lVqfh QgO44RIhhtFdVy+R36Pj2604Ioki9oIDdX+ucyESsFQiazjrYZvACJogqYHBfUWioA JBA3Elyd1gKTYhhPwNJdCXu8uGDZuVss98p2DcWoI3GTnKA0ZgLI2EOSWaZOAShCRM a199tjgu7fzXA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id DA7793782159; Thu, 20 Jun 2024 10:17:03 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 1/2] arm64: dts: mediatek: Declare drive-strength numerically Date: Thu, 20 Jun 2024 12:16:55 +0200 Message-ID: <20240620101656.1096374-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240620101656.1096374-1-angelogioacchino.delregno@collabora.com> References: <20240620101656.1096374-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_031706_364669_FEB3199C X-CRM114-Status: GOOD ( 11.44 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On some devicetrees, the drive-strength property gets assigned a MTK_DRIVE_(x)_mA definition, which matches with (x). For example, MTK_DRIVE_8mA equals to 8 and MTK_DRIVE_30mA equals to 30. Also keeping in mind that the drive-strength property is, by (binding) definition, taking a number in milliamperes unit, change all devicetrees to avoid the usage of any MTK_DRIVE_(x) definition. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 4 +- .../dts/mediatek/mt6795-sony-xperia-m5.dts | 8 ++-- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 12 +++--- .../mt8183-kukui-jacuzzi-makomo-sku0.dts | 2 +- .../mt8183-kukui-jacuzzi-makomo-sku1.dts | 2 +- .../mediatek/mt8183-kukui-jacuzzi-pico6.dts | 6 +-- .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 8 ++-- .../boot/dts/mediatek/mt8183-pumpkin.dts | 4 +- arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 26 ++++++------ arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 4 +- .../dts/mediatek/mt8390-genio-700-evk.dts | 40 +++++++++---------- .../dts/mediatek/mt8395-genio-1200-evk.dts | 28 ++++++------- 12 files changed, 72 insertions(+), 72 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712-evb.dts b/arch/arm64/boot/dts/mediatek/mt2712-evb.dts index 234e3b23d7a8..c84c47c1352f 100644 --- a/arch/arm64/boot/dts/mediatek/mt2712-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt2712-evb.dts @@ -137,7 +137,7 @@ tx_pins { , , ; - drive-strength = ; + drive-strength = <8>; }; rx_pins { pinmux = , @@ -151,7 +151,7 @@ rx_pins { mdio_pins { pinmux = , ; - drive-strength = ; + drive-strength = <8>; input-enable; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index 7364c7278276..91de920c2245 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -288,25 +288,25 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-down = ; }; pins-rst { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; pins-ds { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-down = ; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts index 3fab21f59d18..bb4671c18e3b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts @@ -213,14 +213,14 @@ pins_cmd_dat { , ; input-enable; - drive-strength = ; + drive-strength = <4>; bias-pull-up = ; }; pins_clk { pinmux = ; bias-pull-down; - drive-strength = ; + drive-strength = <4>; }; pins_insert { @@ -241,13 +241,13 @@ pins_cmd_dat { , ; input-enable; - drive-strength = ; + drive-strength = <2>; bias-pull-up = ; }; pins_clk { pinmux = ; - drive-strength = ; + drive-strength = <2>; bias-pull-down = ; }; @@ -265,13 +265,13 @@ pins_cmd_dat { , ; input-enable; - drive-strength = ; + drive-strength = <4>; bias-pull-up = ; }; pins_clk { pinmux = ; - drive-strength = ; + drive-strength = <4>; bias-pull-down = ; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku0.dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku0.dts index 4eb2a0d571af..ddb993521bbf 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku0.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku0.dts @@ -19,6 +19,6 @@ &qca_wifi { &mmc1_pins_uhs { pins-clk { - drive-strength = ; + drive-strength = <6>; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku1.dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku1.dts index 6a733361e8ae..10c4f920a7d8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku1.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-makomo-sku1.dts @@ -19,6 +19,6 @@ &qca_wifi { &mmc1_pins_uhs { pins-clk { - drive-strength = ; + drive-strength = <6>; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts index 6a7ae616512d..46fc3a00cc5a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts @@ -68,16 +68,16 @@ pins-wifi-enable { &mmc1_pins_default { pins-cmd-dat { - drive-strength = ; + drive-strength = <6>; }; pins-clk { - drive-strength = ; + drive-strength = <6>; }; }; &mmc1_pins_uhs { pins-clk { - drive-strength = ; + drive-strength = <6>; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index 5472cd0be63a..cbca8cc08068 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -488,7 +488,7 @@ pins-bus { , , ; /*8ch-i2s to it6505*/ - drive-strength = ; + drive-strength = <6>; }; }; @@ -502,7 +502,7 @@ pins-bus { ; input-enable; bias-pull-down; - drive-strength = ; + drive-strength = <2>; }; }; @@ -673,14 +673,14 @@ pins-cmd-dat { , , ; - drive-strength = ; + drive-strength = <6>; input-enable; mediatek,pull-up-adv = <10>; }; pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; mediatek,pull-down-adv = <10>; input-enable; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index 81f6c205fa98..1aa668c3ccf9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -350,14 +350,14 @@ pins_cmd_dat { , , ; - drive-strength = ; + drive-strength = <6>; input-enable; mediatek,pull-up-adv = <10>; }; pins_clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; mediatek,pull-down-adv = <10>; input-enable; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts index b82f7176b4a1..31d424b8fc7c 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts @@ -305,14 +305,14 @@ pins-txd { , , ; - drive-strength = ; + drive-strength = <8>; }; pins-cc { pinmux = , , , ; - drive-strength = ; + drive-strength = <8>; }; pins-rxd { pinmux = , @@ -377,7 +377,7 @@ pins { mmc0_default_pins: mmc0-default-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-down = ; }; @@ -392,13 +392,13 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; pins-rst { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; }; @@ -406,7 +406,7 @@ pins-rst { mmc0_uhs_pins: mmc0-uhs-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -421,19 +421,19 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; pins-ds { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; pins-rst { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; }; @@ -441,7 +441,7 @@ pins-rst { mmc1_default_pins: mmc1-default-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -452,7 +452,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; @@ -465,7 +465,7 @@ pins-insert { mmc1_uhs_pins: mmc1-uhs-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -476,7 +476,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 50cbaefa1a99..4211a992dd9d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -308,7 +308,7 @@ cmd-dat-pins { mmc1_uhs_pins: mmc1-uhs-pins { clk-pins { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -319,7 +319,7 @@ cmd-dat-pins { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts index 6bb1d5d112ef..1474bef7e754 100644 --- a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts @@ -383,13 +383,13 @@ pins-cc { , , ; - drive-strength = ; + drive-strength = <8>; }; pins-mdio { pinmux = , ; - drive-strength = ; + drive-strength = <8>; input-enable; }; @@ -404,7 +404,7 @@ pins-rxd { , , ; - drive-strength = ; + drive-strength = <8>; }; pins-txd { @@ -412,7 +412,7 @@ pins-txd { , , ; - drive-strength = ; + drive-strength = <8>; }; }; @@ -520,7 +520,7 @@ pins { mmc0_default_pins: mmc0-default-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-down = ; }; @@ -535,13 +535,13 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; pins-rst { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; }; @@ -549,7 +549,7 @@ pins-rst { mmc0_uhs_pins: mmc0-uhs-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -564,19 +564,19 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; pins-ds { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; pins-rst { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; }; @@ -584,7 +584,7 @@ pins-rst { mmc1_default_pins: mmc1-default-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-down = ; }; @@ -595,7 +595,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; @@ -608,7 +608,7 @@ pins-insert { mmc1_uhs_pins: mmc1-uhs-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-down = ; }; @@ -619,7 +619,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; }; @@ -627,7 +627,7 @@ pins-cmd-dat { mmc2_default_pins: mmc2-default-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <4>; bias-pull-down = ; }; @@ -638,7 +638,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; @@ -650,7 +650,7 @@ pins-pcm { mmc2_uhs_pins: mmc2-uhs-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <4>; bias-pull-down = ; }; @@ -661,7 +661,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; }; @@ -678,7 +678,7 @@ mmc2_dat1_pins: mmc2-dat1-pins { pins-dat1 { pinmux = ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts b/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts index a1b613808780..a06610fff8ad 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts @@ -475,7 +475,7 @@ pins-cc { , , ; - drive-strength = ; + drive-strength = <8>; }; pins-mdio { @@ -502,7 +502,7 @@ pins-txd { , , ; - drive-strength = ; + drive-strength = <8>; }; }; @@ -567,7 +567,7 @@ pins { pinmux = , ; bias-pull-up = ; - drive-strength = ; + drive-strength = <6>; }; }; @@ -582,7 +582,7 @@ pins { mmc0_default_pins: mmc0-default-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-down = ; }; @@ -597,13 +597,13 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; pins-rst { pinmux = ; - drive-strength = ; + drive-strength = <6>; bias-pull-up = ; }; }; @@ -611,7 +611,7 @@ pins-rst { mmc0_uhs_pins: mmc0-uhs-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -626,19 +626,19 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; pins-ds { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; pins-rst { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; }; @@ -646,7 +646,7 @@ pins-rst { mmc1_default_pins: mmc1-default-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -657,7 +657,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; }; @@ -665,7 +665,7 @@ pins-cmd-dat { mmc1_uhs_pins: mmc1-uhs-pins { pins-clk { pinmux = ; - drive-strength = ; + drive-strength = <8>; bias-pull-down = ; }; @@ -676,7 +676,7 @@ pins-cmd-dat { , ; input-enable; - drive-strength = ; + drive-strength = <8>; bias-pull-up = ; }; };