Просмотр исходного кода

mediatek: dts: use dt-bindings enumerated drive strength values

The Mediatek pinctrl driver can only accepts drive-strength values
enumerated in "dt-bindings/pinctrl/mt65xx.h".

Signed-off-by: Shiji Yang <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <[email protected]>
Shiji Yang 4 месяцев назад
Родитель
Сommit
f3ce0c29ea
53 измененных файлов с 181 добавлено и 174 удалено
  1. 3 1
      target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
  2. 4 2
      target/linux/mediatek/dts/mt7622-buffalo-wsr-3200ax4s.dts
  3. 6 5
      target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts
  4. 3 2
      target/linux/mediatek/dts/mt7622-elecom-wrc-x3200gst3.dts
  5. 3 2
      target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts
  6. 2 2
      target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
  7. 2 2
      target/linux/mediatek/dts/mt7981b-abt-asr3000.dts
  8. 2 2
      target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi
  9. 2 2
      target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso
  10. 2 2
      target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts
  11. 2 2
      target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
  12. 2 2
      target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
  13. 2 2
      target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
  14. 2 2
      target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts
  15. 3 3
      target/linux/mediatek/dts/mt7981b-openembed-som7981.dts
  16. 2 2
      target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
  17. 2 2
      target/linux/mediatek/dts/mt7981b-tplink-fr365v1.dts
  18. 2 2
      target/linux/mediatek/dts/mt7981b-unielec-u7981-01-nand.dts
  19. 2 2
      target/linux/mediatek/dts/mt7981b-wavlink-wl-3port-128nand-common.dtsi
  20. 2 2
      target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts
  21. 2 2
      target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts
  22. 2 2
      target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts
  23. 2 2
      target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
  24. 2 2
      target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts
  25. 4 4
      target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts
  26. 4 4
      target/linux/mediatek/dts/mt7986a-acer-predator-w6x.dts
  27. 8 8
      target/linux/mediatek/dts/mt7986a-acer-w6-common.dtsi
  28. 4 4
      target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
  29. 4 4
      target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
  30. 4 4
      target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
  31. 18 18
      target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts
  32. 3 3
      target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts
  33. 7 7
      target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts
  34. 7 7
      target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts
  35. 3 3
      target/linux/mediatek/dts/mt7986a-netcore-n60-pro.dts
  36. 3 3
      target/linux/mediatek/dts/mt7986a-netcore-n60.dts
  37. 3 3
      target/linux/mediatek/dts/mt7986a-ruijie-rg-x60-pro.dts
  38. 7 7
      target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi
  39. 3 3
      target/linux/mediatek/dts/mt7986a-tplink-archer-ax80-v1.dts
  40. 2 2
      target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
  41. 1 1
      target/linux/mediatek/dts/mt7986a-tplink-tl-xdr4288.dts
  42. 1 1
      target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6086.dts
  43. 1 1
      target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6088.dts
  44. 3 3
      target/linux/mediatek/dts/mt7986a-tplink-tl-xtr8488.dts
  45. 3 3
      target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
  46. 4 4
      target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
  47. 3 3
      target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts
  48. 3 3
      target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-common.dtsi
  49. 4 4
      target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
  50. 3 3
      target/linux/mediatek/dts/mt7986b-tplink-re6000xd.dts
  51. 2 2
      target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi
  52. 10 10
      target/linux/mediatek/files-6.12/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi
  53. 1 1
      target/linux/mediatek/patches-6.12/117-complete-mt7981b-dtsi.patch

+ 3 - 1
target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts

@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 /dts-v1/;
 
+#include <dt-bindings/pinctrl/mt65xx.h>
+
 #include "mt7622-buffalo-wsr.dtsi"
 
 / {
@@ -39,7 +41,7 @@
 				  "NALE", "NDL0", "NDL1",
 				  "NDL2", "NDL3";
 			input-enable;
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up;
 		};
 	};

+ 4 - 2
target/linux/mediatek/dts/mt7622-buffalo-wsr-3200ax4s.dts

@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 /dts-v1/;
 
+#include <dt-bindings/pinctrl/mt65xx.h>
+
 #include "mt7622-buffalo-wsr.dtsi"
 
 / {
@@ -25,13 +27,13 @@
 			pins = "SPI_WP", "SPI_HOLD", "SPI_MOSI",
 			       "SPI_MISO", "SPI_CS";
 			input-enable;
-			drive-strength = <16>;
+			drive-strength = <MTK_DRIVE_16mA>;
 			bias-pull-up;
 		};
 
 		conf-clk {
 			pins = "SPI_CLK";
-			drive-strength = <16>;
+			drive-strength = <MTK_DRIVE_16mA>;
 			bias-pull-down;
 		};
 	};

+ 6 - 5
target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts

@@ -8,6 +8,7 @@
 /dts-v1/;
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/mt65xx.h>
 
 #include "mt7622.dtsi"
 #include "mt6380.dtsi"
@@ -215,13 +216,13 @@
 			       "NDL3", "NDL4", "NDL5",
 			       "NDL6", "NDL7", "NRB";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up;
 		};
 
 		conf-clk {
 			pins = "NCLE";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-down;
 		};
 	};
@@ -258,7 +259,7 @@
 		conf {
 			pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK",
 			       "I2S_WS", "I2S_MCLK";
-			drive-strength = <12>;
+			drive-strength = <MTK_DRIVE_12mA>;
 			bias-pull-down;
 		};
 	};
@@ -338,12 +339,12 @@
 			pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
 			       "I2S2_IN","I2S4_OUT";
 			input-enable;
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up;
 		};
 		conf-clk {
 			pins = "I2S3_OUT";
-			drive-strength = <12>;
+			drive-strength = <MTK_DRIVE_12mA>;
 			bias-pull-down;
 		};
 		conf-cd {

+ 3 - 2
target/linux/mediatek/dts/mt7622-elecom-wrc-x3200gst3.dts

@@ -4,6 +4,7 @@
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/mt65xx.h>
 
 #include "mt7622.dtsi"
 #include "mt6380.dtsi"
@@ -159,13 +160,13 @@
 		conf-cmd-data {
 			pins = "SPI_WP", "SPI_HOLD", "SPI_MOSI",
 			       "SPI_MISO", "SPI_CS";
-			drive-strength = <16>;
+			drive-strength = <MTK_DRIVE_16mA>;
 			bias-pull-up;
 		};
 
 		conf-clk {
 			pins = "SPI_CLK";
-			drive-strength = <16>;
+			drive-strength = <MTK_DRIVE_16mA>;
 			bias-pull-down;
 		};
 	};

+ 3 - 2
target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts

@@ -11,6 +11,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/mt65xx.h>
 
 #include "mt7622.dtsi"
 #include "mt6380.dtsi"
@@ -407,13 +408,13 @@
 			       "NDL3", "NDL4", "NDL5",
 			       "NDL6", "NDL7", "NRB";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up;
 		};
 
 		conf-clk {
 			pins = "NCLE";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-down;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts

@@ -64,13 +64,13 @@
 
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <103>;
 		};
 
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <103>;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-abt-asr3000.dts

@@ -131,13 +131,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi

@@ -108,13 +108,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso

@@ -42,13 +42,13 @@
 
 				conf-pu {
 					pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-					drive-strength = <8>;
+					drive-strength = <MTK_DRIVE_8mA>;
 					bias-disable; /* bias-disable */
 				};
 
 				conf-pd {
 					pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-					drive-strength = <8>;
+					drive-strength = <MTK_DRIVE_8mA>;
 					bias-disable; /* bias-disable */
 				};
 			};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts

@@ -203,13 +203,13 @@
 
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 		};
 
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts

@@ -218,13 +218,13 @@
 
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 		};
 
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts

@@ -226,13 +226,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts

@@ -212,13 +212,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts

@@ -140,13 +140,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 3 - 3
target/linux/mediatek/dts/mt7981b-openembed-som7981.dts

@@ -224,13 +224,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable;
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable;
 		};
 	};
@@ -251,7 +251,7 @@
 
 	wwan_rst_h: wwan-rst-h {
 		pins = "GPIO_WPS";
-		drive-strength = <8>;
+		drive-strength = <MTK_DRIVE_8mA>;
 		bias-disable;
 		output-low;
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts

@@ -216,13 +216,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-tplink-fr365v1.dts

@@ -366,13 +366,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-unielec-u7981-01-nand.dts

@@ -89,13 +89,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-wavlink-wl-3port-128nand-common.dtsi

@@ -39,13 +39,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts

@@ -170,13 +170,13 @@
 
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 		};
 
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts

@@ -223,13 +223,13 @@
 
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 		};
 
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts

@@ -121,13 +121,13 @@
 
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 		};
 
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts

@@ -287,13 +287,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 2 - 2
target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts

@@ -292,13 +292,13 @@
 
 		conf-pu {
 			pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
 		};
 
 		conf-pd {
 			pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
 		};
 	};

+ 4 - 4
target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts

@@ -105,12 +105,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -128,7 +128,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -145,7 +145,7 @@
 				"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 				"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 				"WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 4 - 4
target/linux/mediatek/dts/mt7986a-acer-predator-w6x.dts

@@ -160,12 +160,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -190,7 +190,7 @@
 				   "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 				   "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 				   "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -207,7 +207,7 @@
 				"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 				"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 				"WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 8 - 8
target/linux/mediatek/dts/mt7986a-acer-w6-common.dtsi

@@ -78,13 +78,13 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 
@@ -95,7 +95,7 @@
 
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};
@@ -111,13 +111,13 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 
@@ -128,7 +128,7 @@
 
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};
@@ -153,7 +153,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -170,7 +170,7 @@
 				"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 				"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 				"WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 

+ 4 - 4
target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts

@@ -161,12 +161,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -184,7 +184,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -201,7 +201,7 @@
 				"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 				"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 				"WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 4 - 4
target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts

@@ -168,12 +168,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -191,7 +191,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -208,7 +208,7 @@
 				"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 				"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 				"WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 4 - 4
target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts

@@ -195,12 +195,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -218,7 +218,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -235,7 +235,7 @@
 				"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 				"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 				"WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 18 - 18
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts

@@ -301,14 +301,14 @@
 &pio {
 	en8811_pwr_a: en8811-pwr-a {
 		pins = "GPIO_11";
-		drive-strength = <8>;
+		drive-strength = <MTK_DRIVE_8mA>;
 		bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
 		output-low;
 	};
 
 	en8811_pwr_b: en8811-pwr-b {
 		pins = "GPIO_12";
-		drive-strength = <8>;
+		drive-strength = <MTK_DRIVE_8mA>;
 		bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
 		output-low;
 	};
@@ -337,12 +337,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
 		};
 		conf-ds {
@@ -351,7 +351,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 	};
@@ -366,12 +366,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
 		};
 		conf-ds {
@@ -380,7 +380,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 	};
@@ -406,12 +406,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable;
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable;
 		};
 	};
@@ -433,32 +433,32 @@
 	usb_ngff_pins: usb-ngff-pins {
 		ngff-gnss-off {
 			pins = "GPIO_6";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		ngff-pe-rst {
 			pins = "GPIO_7";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		ngff-wwan-off {
 			pins = "GPIO_8";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		ngff-pwr-off {
 			pins = "GPIO_9";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		ngff-rst {
 			pins = "GPIO_10";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		ngff-coex {
 			pins = "SPI1_CS";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 	};
@@ -476,7 +476,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -493,7 +493,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 3 - 3
target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts

@@ -150,12 +150,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -191,7 +191,7 @@
 				"WF1_HB8",
 				"WF1_TOP_CLK",
 				"WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 

+ 7 - 7
target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts

@@ -200,7 +200,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -214,12 +214,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 		conf-ds {
@@ -228,7 +228,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};
@@ -243,12 +243,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 		conf-ds {
@@ -257,7 +257,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};

+ 7 - 7
target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts

@@ -223,12 +223,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
 		};
 		conf-ds {
@@ -237,7 +237,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 	};
@@ -252,12 +252,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
 		};
 		conf-ds {
@@ -266,7 +266,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 	};
@@ -284,7 +284,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 3 - 3
target/linux/mediatek/dts/mt7986a-netcore-n60-pro.dts

@@ -313,12 +313,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -336,7 +336,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 3 - 3
target/linux/mediatek/dts/mt7986a-netcore-n60.dts

@@ -240,12 +240,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -263,7 +263,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 3 - 3
target/linux/mediatek/dts/mt7986a-ruijie-rg-x60-pro.dts

@@ -118,12 +118,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -141,7 +141,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 7 - 7
target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi

@@ -409,12 +409,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 		conf-ds {
@@ -423,7 +423,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};
@@ -438,12 +438,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 		conf-ds {
@@ -452,7 +452,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};
@@ -503,7 +503,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 

+ 3 - 3
target/linux/mediatek/dts/mt7986a-tplink-archer-ax80-v1.dts

@@ -278,12 +278,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -300,7 +300,7 @@
 			"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			"WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 2 - 2
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi

@@ -243,12 +243,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};

+ 1 - 1
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr4288.dts

@@ -68,7 +68,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 1 - 1
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6086.dts

@@ -53,7 +53,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 1 - 1
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6088.dts

@@ -68,7 +68,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 3 - 3
target/linux/mediatek/dts/mt7986a-tplink-tl-xtr8488.dts

@@ -334,12 +334,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -357,7 +357,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 3 - 3
target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi

@@ -92,12 +92,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -122,7 +122,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 4 - 4
target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi

@@ -329,12 +329,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-disable;	/* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-disable;	/* bias-disable */
 		};
 	};
@@ -373,7 +373,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -390,7 +390,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 

+ 3 - 3
target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts

@@ -313,12 +313,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -332,7 +332,7 @@
 			pins = "WF1_HB1", "WF1_HB2", "WF1_HB3", "WF1_HB4",
 			       "WF1_HB0", "WF1_HB5", "WF1_HB6", "WF1_HB7",
 			       "WF1_HB8", "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 

+ 3 - 3
target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-common.dtsi

@@ -181,12 +181,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -204,7 +204,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 4 - 4
target/linux/mediatek/dts/mt7986b-netgear-wax220.dts

@@ -132,12 +132,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -155,7 +155,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -169,7 +169,7 @@
 			       "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
 			       "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
 			       "WF0_TOP_CLK", "WF0_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 3 - 3
target/linux/mediatek/dts/mt7986b-tplink-re6000xd.dts

@@ -196,12 +196,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable; /* bias-disable */
 		};
 	};
@@ -219,7 +219,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 2 - 2
target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi

@@ -711,12 +711,12 @@
 	sfp_i2c_pins: sfp-i2c-pins {
 		conf-scl {
 			pins = "LED_A";
-			drive-strength =  <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
 		};
 		conf-sda {
 			pins = "LED_E";
-			drive-strength =  <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable;
 		};
 	};

+ 10 - 10
target/linux/mediatek/files-6.12/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi

@@ -151,12 +151,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 		conf-ds {
@@ -165,7 +165,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};
@@ -180,12 +180,12 @@
 			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
 			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
 			input-enable;
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 		conf-clk {
 			pins = "EMMC_CK";
-			drive-strength = <6>;
+			drive-strength = <MTK_DRIVE_6mA>;
 			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;	/* pull-down 50K */
 		};
 		conf-ds {
@@ -194,7 +194,7 @@
 		};
 		conf-rst {
 			pins = "EMMC_RSTB";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;	/* pull-up 10K */
 		};
 	};
@@ -220,12 +220,12 @@
 		};
 		conf-pu {
 			pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable;	/* bias-disable */
 		};
 		conf-pd {
 			pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
-			drive-strength = <8>;
+			drive-strength = <MTK_DRIVE_8mA>;
 			bias-disable;	/* bias-disable */
 		};
 	};
@@ -257,7 +257,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 
@@ -274,7 +274,7 @@
 			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
 			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
 			       "WF1_TOP_CLK", "WF1_TOP_DATA";
-			drive-strength = <4>;
+			drive-strength = <MTK_DRIVE_4mA>;
 		};
 	};
 };

+ 1 - 1
target/linux/mediatek/patches-6.12/117-complete-mt7981b-dtsi.patch

@@ -284,7 +284,7 @@ working:
 +					       "WF_HB7", "WF_HB8", "WF_HB9", "WF_HB10",
 +					       "WF_TOP_CLK", "WF_TOP_DATA", "WF_XO_REQ",
 +					       "WF_CBA_RESETB", "WF_DIG_RESETB";
-+					drive-strength = <4>;
++					drive-strength = <MTK_DRIVE_4mA>;
 +				};
 +			};
 +