mediatek: dts: use dt-bindings enumerated drive strength values
authorShiji Yang <[email protected]>
Sat, 9 Aug 2025 02:45:39 +0000 (10:45 +0800)
committerHauke Mehrtens <[email protected]>
Sun, 24 Aug 2025 11:22:09 +0000 (13:22 +0200)
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]>
53 files changed:
target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
target/linux/mediatek/dts/mt7622-buffalo-wsr-3200ax4s.dts
target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts
target/linux/mediatek/dts/mt7622-elecom-wrc-x3200gst3.dts
target/linux/mediatek/dts/mt7622-smartrg-SDG-841-t6.dts
target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
target/linux/mediatek/dts/mt7981b-abt-asr3000.dts
target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi
target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso
target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts
target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts
target/linux/mediatek/dts/mt7981b-openembed-som7981.dts
target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
target/linux/mediatek/dts/mt7981b-tplink-fr365v1.dts
target/linux/mediatek/dts/mt7981b-unielec-u7981-01-nand.dts
target/linux/mediatek/dts/mt7981b-wavlink-wl-3port-128nand-common.dtsi
target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts
target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts
target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts
target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts
target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts
target/linux/mediatek/dts/mt7986a-acer-predator-w6x.dts
target/linux/mediatek/dts/mt7986a-acer-w6-common.dtsi
target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts
target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts
target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts
target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts
target/linux/mediatek/dts/mt7986a-netcore-n60-pro.dts
target/linux/mediatek/dts/mt7986a-netcore-n60.dts
target/linux/mediatek/dts/mt7986a-ruijie-rg-x60-pro.dts
target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi
target/linux/mediatek/dts/mt7986a-tplink-archer-ax80-v1.dts
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr4288.dts
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6086.dts
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6088.dts
target/linux/mediatek/dts/mt7986a-tplink-tl-xtr8488.dts
target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts
target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-common.dtsi
target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
target/linux/mediatek/dts/mt7986b-tplink-re6000xd.dts
target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi
target/linux/mediatek/files-6.12/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi
target/linux/mediatek/patches-6.12/117-complete-mt7981b-dtsi.patch

index 8f24690a3c83e6740fe38c22cb71b32cc32cf8ef..d016e4d328d7bebd43033e8f058f22ddda67776c 100644 (file)
@@ -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;
                };
        };
index dee8c77341ede9be9589b081875990eb012c4fb0..d07d3ec3eee0a96658a628c4e59a4932c5006df9 100644 (file)
@@ -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"
 
 / {
                        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;
                };
        };
index 5f8bb3ded8d5e9dde191d5b388548aa7cbe59bd2..fa98310a0aca58c916a157627be77e05f475eac1 100644 (file)
@@ -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"
                               "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;
                };
        };
                conf {
                        pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK",
                               "I2S_WS", "I2S_MCLK";
-                       drive-strength = <12>;
+                       drive-strength = <MTK_DRIVE_12mA>;
                        bias-pull-down;
                };
        };
                        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 {
index b437fe1b3a1c51bc312357532255e93df43a4122..c78a6f4a0785a55cc52b9274fc7910f1e458fe3a 100644 (file)
@@ -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"
                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;
                };
        };
index 8cf18f5e07407d0a959d508e5677638825d65734..1a0d8ca63e2f3880bebf32b36aabd75fbdfa0015 100644 (file)
@@ -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"
                               "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;
                };
        };
index 1d73b0f7f36ec7352ea8ddbed7e913faadfb36b0..fa0679402c881ecceaaa602556bc19c8cd70871d 100644 (file)
 
                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>;
                };
        };
index bdc6dece8d0be89a930a7668adad5a6d5918e272..8190cfcf03dc310848b3c6240bfdfa6b98d22184 100644 (file)
 
                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 */
                };
        };
index ac08786a24583dc34abcb39ebd04649922eba75e..17ce899a6db613828de083406cbbb8d91c0d57ce 100644 (file)
 
                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 */
                };
        };
index 4b441283a3110cf137ab74db3f5ca94f8c764a1a..156dd1626696cb333f93dd66896f2aa1bcf37f1f 100644 (file)
 
                                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 */
                                };
                        };
index 7b05f4b94ce80a5a8f7cb5e0502d6f8653730dd8..3b7dc1b65a73423b7943e2029a3b8ec6593f5219 100644 (file)
 
                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>;
                };
        };
index 055dec01e5231123e3b4e345c14d25ceb85c3601..b0ae8279c898541cd768ebb7da402ecd001cc3de 100644 (file)
 
                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>;
                };
        };
index 0b235d6afdb549327f8b70a81ed114054eb0a132..b9ad67af40f07dd3996a156e14b2e21b7639d185 100644 (file)
 
                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 */
                };
        };
index 9b1ef96c152e93513820a49bc72d6e6342d5efb4..b2af74cd6a207cda044cfae420709a07c448815e 100644 (file)
 
                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 */
                };
        };
index 9918a326704bbd9e0fdec29e4343ddba5fddacfb..1e6c7a037d1d0036019ab65288285a211d5c4eed 100644 (file)
 
                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 */
                };
        };
index 7b0abd472a69361be1511ab511f2e8dbd2ace037..361a1304f83815911ec5b80fc9188558dc130dbf 100644 (file)
 
                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;
                };
        };
 
        wwan_rst_h: wwan-rst-h {
                pins = "GPIO_WPS";
-               drive-strength = <8>;
+               drive-strength = <MTK_DRIVE_8mA>;
                bias-disable;
                output-low;
        };
index e614ebac945e1806d7b7a581c80fe63822918d0a..b77eb456c02312beeeda59066c69a491aa1c2b10 100644 (file)
 
                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 */
                };
        };
index 78c5927a85bed4a5a2bcdb5aee9b4554aec020c5..8f73aee7365a46da85d7369ede7fd9d8e3afad39 100644 (file)
 
                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 */
                };
        };
index 3254ca3145929136488f189016f0b726629a0e93..6a9f8e0c00848f82acd67459b339ad0cc6e3bdc0 100644 (file)
 
                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 */
                };
        };
index 7317ac5af89c62b674f12a7592ff2b1cb0cf5f30..51b227f1c44d1d208f942cdf6c1398a55febe38e 100644 (file)
 
                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>;
                };
        };
index 233743ce799548c639cd3ba661a0b1ffb636655a..50e61c73062eb41d13415ba79741c96524fcc978 100644 (file)
 
                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>;
                };
        };
index 4062d4aaa8969680e501dae160467dc229788ab0..1c424b2a5030c9a9a05b09c16308e36a3f20d36d 100644 (file)
 
                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>;
                };
        };
index 70a9d10781f3f2de38aff34205b154eb753b8ec8..09fa20c3abec591893b46bce521291099a61c6ce 100644 (file)
 
                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>;
                };
        };
index ad27b0fd03fdc1d55b2dbc19788b1d3375436aa6..0d886e7a989f4355cd5540a929664ed80e4b7e0a 100644 (file)
 
                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 */
                };
        };
index 2951f9bac72d98074b2afb5e9d1e841fb5c7e379..fa2e46ba3af287d208ad8e3b834f20a47dff5f93 100644 (file)
 
                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>;
                };
        };
index 81190e0cccd66999dd8afd15e2256d0f79a666d4..682bb660ed5a512c1e701e5c4a3e3f908cc05836 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 
                                "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>;
                };
        };
 };
index 3152901f0c97d7b2c6ab2102e9036ca274094dfc..6869f132ac618f41bcb7d3abdebe797212723711 100644 (file)
                };
                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 */
                };
        };
                                   "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>;
                };
        };
 
                                "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>;
                };
        };
 };
index fceed350938d86d6e1d73778d39ce6daf5bfaab9..73e0d03ed375bc5b59ffa2d3dcfb4522603e4749 100644 (file)
                               "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 */
                };
        };
                               "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-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;  /* pull-up 10K */
                };
        };
                               "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>;
                };
        };
 
                                "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>;
                };
        };
 
index 9061480cb103b41aeca73691f1d307023c26bbf2..026cd7a157a6ea0e93ce586bbcc660980357b251 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 
                                "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>;
                };
        };
 };
index 37f9e974ac4d361909debb021de5d32186da9308..9d4548e60dc9bee1ec9f383d322cf587fb66b686 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 
                                "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>;
                };
        };
 };
index c5d753325deb1c2b887c57ccf3cf293f965813f3..294aa4c8d2bf4267d9cf0cdbc17828239fb6390c 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 
                                "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>;
                };
        };
 };
index d4b67f5cfc6b602f734936adb1db6282d052527f..2291d2d7c49d4096e59c21c86bc4e419740f82e6 100644 (file)
 &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;
        };
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
                };
        };
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
                };
        };
                };
                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;
                };
        };
        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>;
                };
        };
                               "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>;
                };
        };
 
                               "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>;
                };
        };
 };
index d0a280b57a9e5f837041c68b0b7e240836ea04a6..9d2d0de04a7ff0c7c6a8d63f93cd0e6e1310cbf3 100644 (file)
                };
                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 */
                };
        };
                                "WF1_HB8",
                                "WF1_TOP_CLK",
                                "WF1_TOP_DATA";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                };
        };
 
index 2bed134a95cb034de49e1b4f3fc5382348a1d846..529443a1d03edc2861c24abbf8ca09f9e3099d10 100644 (file)
                               "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>;
                };
        };
 
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;  /* pull-up 10K */
                };
        };
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;  /* pull-up 10K */
                };
        };
index 9daf03c611087f6bdb0d65431bbfafdbe5049181..4a9679b43792aa8fc6fd24ab4339e3f3724d78d9 100644 (file)
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
                };
        };
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
                };
        };
                               "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>;
                };
        };
 };
index 6a8aa0e0d3e08efbe8af17d1fb5fbae84f348c4c..1fd6eee7057bb361d815f8ec5af436392063b6e2 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 };
index 0f0b2b3f2fafdec5d0aabceb8c5bb54caa4e33c2..93849f8321aba38f3a8458036dccee602904736d 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 };
index d29d9f855a4d07699e989d13ccfd221a8ef2e9d1..648fe10f351ee05d512c060ac6ebf7a53734019f 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 };
index 688b8adbd54c0b40635e6b2d4a3081d5fdddf330..f71ef207f7aad96e26aaed0eee5d0e824014cbf8 100644 (file)
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;  /* pull-up 10K */
                };
        };
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;  /* pull-up 10K */
                };
        };
                               "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>;
                };
        };
 
index 6e023de11f3e5d9ea725f8033d7279051e480a62..b95685de1b3ac5749e95f5f77e638604f92bc1c5 100644 (file)
                };
                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 */
                };
        };
                        "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>;
                };
        };
 };
index ad625dca73469fb130996170c9339fc4246b4af6..b6cf8ddc1b29297bcfdb19589af27a5b5e96fe7f 100644 (file)
                };
                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 */
                };
        };
index 591d16195e233a724ed81c21c14b6f96b42bad32..e7057e639785f28860c46ceba5995041f66e6a3d 100644 (file)
@@ -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>;
                };
        };
 };
index 68a159a8e7c173079dfbe61a21c682c87803b64e..edf583e1cbecd2bb6a29bb407b4ae8da1c00fa4b 100644 (file)
@@ -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>;
                };
        };
 };
index 751909a6aa2f2297bca2d8150d99c6dbc534e0a9..18350a2a5ae789587263c793f1d888b12bbcbc76 100644 (file)
@@ -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>;
                };
        };
 };
index 342a0f98a34da0e281ef38dec3d7085a704dce1f..9e7585e871b4bcb2bcd1ec6d44e7230940a140e5 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 };
index d17f29cceb7e038201aaea2a2a90f92bae7fe9d2..9f8949ba6ebc76b8b8cb7f0186a89231b24a0308 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 };
index 5c9abff56da7a9d2d51ef6ef0f43e6d98317ce4a..bdc916623391d73254482c433ab308fb58c8bc32 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 
                               "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>;
                };
        };
 
index 4fcd4110dcc904b01f6e91857b662dd4b1511192..0252ab7aba96f9df1387ea55c312f73b7ca0c99c 100644 (file)
                };
                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 */
                };
        };
                        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>;
                };
        };
 
index 60b82a1ed96c2e4633fc0b3429627246cb0cc3f1..abba04ab082448852f5962bc05971b3face3de27 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 };
index 7447186ab596495a92302517f8deef889f8446bb..1d8dcda8da3cbd51361cb989b564c05b57bd61a1 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 
                               "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>;
                };
        };
 };
index afc5640fe1700febb69bf4d3eaf7a096ec07f350..d3b73a873f20cc4cabeae07082723689c9a410ce 100644 (file)
                };
                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 */
                };
        };
                               "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>;
                };
        };
 };
index 002908c74bfd634302c17fd19a4ac1837979113c..2de677f9b021fc5d74c30957ef39d36cf18adafe 100644 (file)
        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;
                };
        };
index 5e90ac1fa6411071295a9f74f2ed6f0cfdbaafb5..4eb512f90be727998309fdeb5b589a6ed744b4d7 100644 (file)
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;  /* pull-up 10K */
                };
        };
                               "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 {
                };
                conf-rst {
                        pins = "EMMC_RSTB";
-                       drive-strength = <4>;
+                       drive-strength = <MTK_DRIVE_4mA>;
                        bias-pull-up = <MTK_PUPD_SET_R1R0_01>;  /* pull-up 10K */
                };
        };
                };
                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 */
                };
        };
                               "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>;
                };
        };
 
                               "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>;
                };
        };
 };
index 45b9691bc5539e92e79b40e3558788e945a3f8e4..828fbc109b89dfde50f61c9af2e7d1862f97d1de 100644 (file)
@@ -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>;
 +                              };
 +                      };
 +