Browse Source

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19855
Signed-off-by: Robert Marko <[email protected]>
Shiji Yang 4 months ago
parent
commit
43ae8e17e1
1 changed files with 5 additions and 2 deletions
  1. 5 2
      target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts

+ 5 - 2
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>;
 		};
 	};