]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: dts: use dt-bindings documented bias type for UniFi 6 Plus main master 19854/head 19855/head
authorShiji Yang <yangshiji66@outlook.com>
Mon, 25 Aug 2025 13:17:39 +0000 (21:17 +0800)
committerRobert Marko <robimarko@gmail.com>
Mon, 25 Aug 2025 17:52:43 +0000 (19:52 +0200)
Use macro defined bias types instead of some magic numbers. This can
help reviewers better understand bias types.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19855
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts

index fa0679402c881ecceaaa602556bc19c8cd70871d..51b8c420218aa3f7bd5bf00bef0d02ae21c891f6 100644 (file)
@@ -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"
 
 / {
                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>;
                };
        };