[openwrt/openwrt] mediatek: dts: use dt-bindings documented bias type for UniFi 6 Plus
LEDE Commits
lede-commits at lists.infradead.org
Mon Aug 25 10:52:48 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/43ae8e17e1bcc9730cbc0c9fd06568348a308ae8
commit 43ae8e17e1bcc9730cbc0c9fd06568348a308ae8
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Mon Aug 25 21:17:39 2025 +0800
mediatek: dts: use dt-bindings documented bias type for UniFi 6 Plus
Use macro defined bias types instead of some magic numbers. This can
help reviewers better understand bias types.
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19855
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
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 fa0679402c..51b8c42021 100644
--- a/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
+++ b/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
@@ -1,6 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
+
+#include <dt-bindings/pinctrl/mt65xx.h>
+
#include "mt7981b.dtsi"
/ {
@@ -65,13 +68,13 @@
conf-pu {
pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
drive-strength = <MTK_DRIVE_8mA>;
- bias-pull-up = <103>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
};
conf-pd {
pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
drive-strength = <MTK_DRIVE_8mA>;
- bias-pull-down = <103>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
};
};
More information about the lede-commits
mailing list