[openwrt/openwrt] mediatek: dts: use dt-bindings enumerated drive strength values
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 24 04:58:34 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f3ce0c29ea0ec56b702a38f3aca84fb6648008ba
commit f3ce0c29ea0ec56b702a38f3aca84fb6648008ba
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Sat Aug 9 10:45:39 2025 +0800
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 <yangshiji66 at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts | 4 ++-
.../mediatek/dts/mt7622-buffalo-wsr-3200ax4s.dts | 6 ++--
.../mediatek/dts/mt7622-elecom-wrc-2533gent.dts | 11 ++++---
.../mediatek/dts/mt7622-elecom-wrc-x3200gst3.dts | 5 +--
.../mediatek/dts/mt7622-smartrg-SDG-841-t6.dts | 5 +--
.../mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts | 4 +--
target/linux/mediatek/dts/mt7981b-abt-asr3000.dts | 4 +--
target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi | 4 +--
.../mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso | 4 +--
.../linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts | 4 +--
.../linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts | 4 +--
.../mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts | 4 +--
target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts | 4 +--
.../linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts | 4 +--
.../mediatek/dts/mt7981b-openembed-som7981.dts | 6 ++--
target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts | 4 +--
.../linux/mediatek/dts/mt7981b-tplink-fr365v1.dts | 4 +--
.../mediatek/dts/mt7981b-unielec-u7981-01-nand.dts | 4 +--
.../mt7981b-wavlink-wl-3port-128nand-common.dtsi | 4 +--
.../mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts | 4 +--
.../mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts | 4 +--
.../linux/mediatek/dts/mt7981b-yuncore-ax835.dts | 4 +--
.../dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts | 4 +--
.../mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts | 4 +--
.../mediatek/dts/mt7986a-acelink-ew-7886cax.dts | 8 ++---
.../mediatek/dts/mt7986a-acer-predator-w6x.dts | 8 ++---
.../linux/mediatek/dts/mt7986a-acer-w6-common.dtsi | 16 +++++-----
.../linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts | 8 ++---
.../linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts | 8 ++---
.../linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts | 8 ++---
.../mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts | 36 +++++++++++-----------
.../dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts | 6 ++--
.../mediatek/dts/mt7986a-glinet-gl-mt6000.dts | 14 ++++-----
.../mediatek/dts/mt7986a-jdcloud-re-cp-03.dts | 14 ++++-----
.../linux/mediatek/dts/mt7986a-netcore-n60-pro.dts | 6 ++--
target/linux/mediatek/dts/mt7986a-netcore-n60.dts | 6 ++--
.../mediatek/dts/mt7986a-ruijie-rg-x60-pro.dts | 6 ++--
.../mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi | 14 ++++-----
.../mediatek/dts/mt7986a-tplink-archer-ax80-v1.dts | 6 ++--
.../mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi | 4 +--
.../mediatek/dts/mt7986a-tplink-tl-xdr4288.dts | 2 +-
.../mediatek/dts/mt7986a-tplink-tl-xdr6086.dts | 2 +-
.../mediatek/dts/mt7986a-tplink-tl-xdr6088.dts | 2 +-
.../mediatek/dts/mt7986a-tplink-tl-xtr8488.dts | 6 ++--
.../dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi | 6 ++--
.../dts/mt7986a-zyxel-ex5601-t0-common.dtsi | 8 ++---
.../mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts | 6 ++--
.../dts/mt7986b-mercusys-mr90x-v1-common.dtsi | 6 ++--
.../linux/mediatek/dts/mt7986b-netgear-wax220.dts | 8 ++---
.../linux/mediatek/dts/mt7986b-tplink-re6000xd.dts | 6 ++--
.../mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi | 4 +--
.../arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi | 20 ++++++------
.../patches-6.12/117-complete-mt7981b-dtsi.patch | 2 +-
53 files changed, 181 insertions(+), 174 deletions(-)
diff --git a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
index 8f24690a3c..d016e4d328 100644
--- a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
+++ b/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;
};
};
diff --git a/target/linux/mediatek/dts/mt7622-buffalo-wsr-3200ax4s.dts b/target/linux/mediatek/dts/mt7622-buffalo-wsr-3200ax4s.dts
index dee8c77341..d07d3ec3ee 100644
--- a/target/linux/mediatek/dts/mt7622-buffalo-wsr-3200ax4s.dts
+++ b/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;
};
};
diff --git a/target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts b/target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts
index 5f8bb3ded8..fa98310a0a 100644
--- a/target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts
+++ b/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 {
diff --git a/target/linux/mediatek/dts/mt7622-elecom-wrc-x3200gst3.dts b/target/linux/mediatek/dts/mt7622-elecom-wrc-x3200gst3.dts
index b437fe1b3a..c78a6f4a07 100644
--- a/target/linux/mediatek/dts/mt7622-elecom-wrc-x3200gst3.dts
+++ b/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;
};
};
diff --git a/target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts b/target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts
index 8cf18f5e07..1a0d8ca63e 100644
--- a/target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts
+++ b/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;
};
};
diff --git a/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts b/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
index 1d73b0f7f3..fa0679402c 100644
--- a/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-abt-asr3000.dts b/target/linux/mediatek/dts/mt7981b-abt-asr3000.dts
index bdc6dece8d..8190cfcf03 100644
--- a/target/linux/mediatek/dts/mt7981b-abt-asr3000.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi b/target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi
index ac08786a24..17ce899a6d 100644
--- a/target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso b/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso
index 4b441283a3..156dd16266 100644
--- a/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts
index 7b05f4b94c..3b7dc1b65a 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
index 055dec01e5..b0ae8279c8 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts b/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
index 0b235d6afd..b9ad67af40 100644
--- a/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts b/target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
index 9b1ef96c15..b2af74cd6a 100644
--- a/target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts b/target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts
index 9918a32670..1e6c7a037d 100644
--- a/target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts b/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts
index 7b0abd472a..361a1304f8 100644
--- a/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts
+++ b/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;
};
diff --git a/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts b/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
index e614ebac94..b77eb456c0 100644
--- a/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-tplink-fr365v1.dts b/target/linux/mediatek/dts/mt7981b-tplink-fr365v1.dts
index 78c5927a85..8f73aee736 100644
--- a/target/linux/mediatek/dts/mt7981b-tplink-fr365v1.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-unielec-u7981-01-nand.dts b/target/linux/mediatek/dts/mt7981b-unielec-u7981-01-nand.dts
index 3254ca3145..6a9f8e0c00 100644
--- a/target/linux/mediatek/dts/mt7981b-unielec-u7981-01-nand.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-wavlink-wl-3port-128nand-common.dtsi b/target/linux/mediatek/dts/mt7981b-wavlink-wl-3port-128nand-common.dtsi
index 7317ac5af8..51b227f1c4 100644
--- a/target/linux/mediatek/dts/mt7981b-wavlink-wl-3port-128nand-common.dtsi
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts
index 233743ce79..50e61c7306 100644
--- a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts
index 4062d4aaa8..1c424b2a50 100644
--- a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts b/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts
index 70a9d10781..09fa20c3ab 100644
--- a/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
index ad27b0fd03..0d886e7a98 100644
--- a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts
index 2951f9bac7..fa2e46ba3a 100644
--- a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts b/target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts
index 81190e0ccc..682bb660ed 100644
--- a/target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-acer-predator-w6x.dts b/target/linux/mediatek/dts/mt7986a-acer-predator-w6x.dts
index 3152901f0c..6869f132ac 100644
--- a/target/linux/mediatek/dts/mt7986a-acer-predator-w6x.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-acer-w6-common.dtsi b/target/linux/mediatek/dts/mt7986a-acer-w6-common.dtsi
index fceed35093..73e0d03ed3 100644
--- a/target/linux/mediatek/dts/mt7986a-acer-w6-common.dtsi
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts b/target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
index 9061480cb1..026cd7a157 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
index 37f9e974ac..9d4548e60d 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
index c5d753325d..294aa4c8d2 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts
index d4b67f5cfc..2291d2d7c4 100644
--- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts b/target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts
index d0a280b57a..9d2d0de04a 100644
--- a/target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts b/target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts
index 2bed134a95..529443a1d0 100644
--- a/target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts b/target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts
index 9daf03c611..4a9679b437 100644
--- a/target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-netcore-n60-pro.dts b/target/linux/mediatek/dts/mt7986a-netcore-n60-pro.dts
index 6a8aa0e0d3..1fd6eee705 100644
--- a/target/linux/mediatek/dts/mt7986a-netcore-n60-pro.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-netcore-n60.dts b/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
index 0f0b2b3f2f..93849f8321 100644
--- a/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-ruijie-rg-x60-pro.dts b/target/linux/mediatek/dts/mt7986a-ruijie-rg-x60-pro.dts
index d29d9f855a..648fe10f35 100644
--- a/target/linux/mediatek/dts/mt7986a-ruijie-rg-x60-pro.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi b/target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi
index 688b8adbd5..f71ef207f7 100644
--- a/target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-tplink-archer-ax80-v1.dts b/target/linux/mediatek/dts/mt7986a-tplink-archer-ax80-v1.dts
index 6e023de11f..b95685de1b 100644
--- a/target/linux/mediatek/dts/mt7986a-tplink-archer-ax80-v1.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi b/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
index ad625dca73..b6cf8ddc1b 100644
--- a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
+++ b/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 */
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr4288.dts b/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr4288.dts
index 591d16195e..e7057e6397 100644
--- a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr4288.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6086.dts b/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6086.dts
index 68a159a8e7..edf583e1cb 100644
--- a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6086.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6088.dts b/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6088.dts
index 751909a6aa..18350a2a5a 100644
--- a/target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6088.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-tplink-tl-xtr8488.dts b/target/linux/mediatek/dts/mt7986a-tplink-tl-xtr8488.dts
index 342a0f98a3..9e7585e871 100644
--- a/target/linux/mediatek/dts/mt7986a-tplink-tl-xtr8488.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
index d17f29cceb..9f8949ba6e 100644
--- a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
index 5c9abff56d..bdc9166233 100644
--- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts b/target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts
index 4fcd4110dc..0252ab7aba 100644
--- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts
+++ b/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>;
};
};
diff --git a/target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-common.dtsi b/target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-common.dtsi
index 60b82a1ed9..abba04ab08 100644
--- a/target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-common.dtsi
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts b/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
index 7447186ab5..1d8dcda8da 100644
--- a/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7986b-tplink-re6000xd.dts b/target/linux/mediatek/dts/mt7986b-tplink-re6000xd.dts
index afc5640fe1..d3b73a873f 100644
--- a/target/linux/mediatek/dts/mt7986b-tplink-re6000xd.dts
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi
index 002908c74b..2de677f9b0 100644
--- a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi
+++ b/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;
};
};
diff --git a/target/linux/mediatek/files-6.12/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi b/target/linux/mediatek/files-6.12/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi
index 5e90ac1fa6..4eb512f90b 100644
--- a/target/linux/mediatek/files-6.12/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi
+++ b/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>;
};
};
};
diff --git a/target/linux/mediatek/patches-6.12/117-complete-mt7981b-dtsi.patch b/target/linux/mediatek/patches-6.12/117-complete-mt7981b-dtsi.patch
index 45b9691bc5..828fbc109b 100644
--- a/target/linux/mediatek/patches-6.12/117-complete-mt7981b-dtsi.patch
+++ b/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>;
+ };
+ };
+
More information about the lede-commits
mailing list