[openwrt/openwrt] mediatek: cleanup device tree for cudy devices
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 24 13:45:03 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/a296d09dc48942ac3047819c4f16d0fb08a5c28c
commit a296d09dc48942ac3047819c4f16d0fb08a5c28c
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Thu Dec 5 23:26:18 2024 +0800
mediatek: cleanup device tree for cudy devices
Fixes typo for led properties.
Delete the unused rfb compatible.
Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
(cherry picked from commit 64d1b1089c25d778f5f22bfc0c1590a2e83b664e)
---
.../linux/mediatek/dts/mt7981b-cudy-ap3000outdoor-v1.dts | 8 ++++----
target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts | 2 +-
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts | 4 +---
target/linux/mediatek/dts/mt7981b-cudy-wr3000s-v1.dts | 14 ++++++--------
4 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-ap3000outdoor-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-ap3000outdoor-v1.dts
index 2e84d2b538..735cecfe42 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-ap3000outdoor-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-ap3000outdoor-v1.dts
@@ -8,7 +8,7 @@
/ {
model = "Cudy AP3000 Outdoor v1";
- compatible = "cudy,ap3000outdoor-v1", "mediatek,mt7981-spim-snand-rfb";
+ compatible = "cudy,ap3000outdoor-v1", "mediatek,mt7981";
aliases {
label-mac-device = &wifi;
@@ -42,18 +42,19 @@
leds {
compatible = "gpio-leds";
- led_status_green: led at 0 {
+ led_status_green: led-0 {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 10 GPIO_ACTIVE_HIGH>;
};
- led_status_red: led_1 {
+ led_status_red: led-1 {
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pio 11 GPIO_ACTIVE_HIGH>;
};
};
+
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
@@ -89,7 +90,6 @@
ð {
pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>;
-
status = "okay";
gmac1: mac at 1 {
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
index abe40403af..cfe9d45630 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
@@ -6,7 +6,7 @@
/ {
model = "Cudy M3000 v1";
- compatible = "cudy,m3000-v1", "mediatek,mt7981-spim-snand-rfb";
+ compatible = "cudy,m3000-v1", "mediatek,mt7981";
aliases {
label-mac-device = &gmac0;
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
index ff3c83a12d..86d8e857f1 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
@@ -8,7 +8,7 @@
/ {
model = "Cudy TR3000 v1";
- compatible = "cudy,tr3000-v1", "mediatek,mt7981-spim-snand-rfb";
+ compatible = "cudy,tr3000-v1", "mediatek,mt7981";
aliases {
label-mac-device = &gmac1;
@@ -59,11 +59,9 @@
usb_vbus: regulator-usb {
compatible = "regulator-fixed";
-
regulator-name = "usb-vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
-
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
regulator-boot-on;
};
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-wr3000s-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-wr3000s-v1.dts
index ccefc1926c..bdc6188a4a 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-wr3000s-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-wr3000s-v1.dts
@@ -8,7 +8,7 @@
/ {
model = "Cudy WR3000S v1";
- compatible = "cudy,wr3000s-v1", "mediatek,mt7981-spim-snand-rfb";
+ compatible = "cudy,wr3000s-v1", "mediatek,mt7981";
aliases {
label-mac-device = &gmac0;
@@ -42,33 +42,32 @@
leds {
compatible = "gpio-leds";
- led_status: led at 0 {
+ led_status: led-status {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
};
-
- led_internet {
+ led-internet {
function = LED_FUNCTION_WAN_ONLINE;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 11 GPIO_ACTIVE_LOW>;
};
- led_wps {
+ led-wps {
function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
};
- led_wlan2g {
+ led-wlan2g {
function = LED_FUNCTION_WLAN_2GHZ;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 6 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
- led_wlan5g {
+ led-wlan5g {
function = LED_FUNCTION_WLAN_5GHZ;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
@@ -88,7 +87,6 @@
ð {
pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>;
-
status = "okay";
gmac0: mac at 0 {
More information about the lede-commits
mailing list