]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm: dts: mediatek: Declare drive-strength numerically
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 20 Jun 2024 10:16:56 +0000 (12:16 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 24 Jun 2024 10:49:30 +0000 (12:49 +0200)
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.

Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20240620101656.1096374-3-angelogioacchino.delregno@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm/boot/dts/mediatek/mt2701-evb.dts
arch/arm/boot/dts/mediatek/mt7623.dtsi

index 9c7325f1893347ab5608f26e89440fad13787b0c..4c76366aa938b0923f1c62a0d1b20719a0ecbbab 100644 (file)
                                 <MT2701_PIN_238_EXT_SDIO1__FUNC_EXT_SDIO1>,
                                 <MT2701_PIN_237_EXT_SDIO2__FUNC_EXT_SDIO2>,
                                 <MT2701_PIN_236_EXT_SDIO3__FUNC_EXT_SDIO3>;
-                       drive-strength = <MTK_DRIVE_4mA>;
+                       drive-strength = <4>;
                        bias-pull-up;
                };
        };
index f0b4a09004b31785733a2e6a5288014d40b5a9e6..814586abc2979e725c74bf689754bfff288aeea5 100644 (file)
                                 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
                                 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
                        input-enable;
-                       drive-strength = <MTK_DRIVE_2mA>;
+                       drive-strength = <2>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
                };
 
                pins-clk {
                        pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
-                       drive-strength = <MTK_DRIVE_2mA>;
+                       drive-strength = <2>;
                        bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
                };
 
                                 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
                                 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
                        input-enable;
-                       drive-strength = <MTK_DRIVE_4mA>;
+                       drive-strength = <4>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
                };
 
                pins-clk {
                        pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
                        bias-pull-down;
-                       drive-strength = <MTK_DRIVE_4mA>;
+                       drive-strength = <4>;
                };
 
                pins-wp {
                                 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
                                 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
                        input-enable;
-                       drive-strength = <MTK_DRIVE_4mA>;
+                       drive-strength = <4>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
                };
 
                pins-clk {
                        pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
-                       drive-strength = <MTK_DRIVE_4mA>;
+                       drive-strength = <4>;
                        bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
                };
        };
        nand_pins_default: nanddefault {
                pins-ale {
                        pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>;
-                       drive-strength = <MTK_DRIVE_8mA>;
+                       drive-strength = <8>;
                        bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
                };
 
                                 <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>,
                                 <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>;
                        input-enable;
-                       drive-strength = <MTK_DRIVE_8mA>;
+                       drive-strength = <8>;
                        bias-pull-up;
                };
 
                pins-we {
                        pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>;
-                       drive-strength = <MTK_DRIVE_8mA>;
+                       drive-strength = <8>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
                };
        };