mediatek: cleanup device tree for cudy devices
authorChukun Pan <amadeus@jmu.edu.cn>
Thu, 5 Dec 2024 15:26:18 +0000 (23:26 +0800)
committerChukun Pan <amadeus@jmu.edu.cn>
Thu, 23 Jan 2025 02:32:19 +0000 (10:32 +0800)
Fixes typo for led properties.
Delete the unused rfb compatible.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
target/linux/mediatek/dts/mt7981b-cudy-ap3000outdoor-v1.dts
target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts
target/linux/mediatek/dts/mt7981b-cudy-wr3000s-v1.dts

index 2e84d2b538ff750c15eaa63fc52c1bed3460c46e..735cecfe4296aa72e61c920532e298ab55d3e306 100644 (file)
@@ -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;
        leds {
                compatible = "gpio-leds";
 
-               led_status_green: led@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 @@
 &eth {
        pinctrl-names = "default";
        pinctrl-0 = <&mdio_pins>;
-
        status = "okay";
 
        gmac1: mac@1 {
index abe40403afafd0ba7569ed68e6da01a2afe75267..cfe9d45630d6b8b37411ee82cfc359c25c74d47f 100644 (file)
@@ -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;
index ff3c83a12d766224b3300cdd39e140d5daa4dac9..86d8e857f1973376271c5ce8b509acb5e9ca353a 100644 (file)
@@ -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;
 
        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;
        };
index 1bf166e0bf88bffffd04f539bb0505b68a241184..13c99db98892dda1af884b24fecbcd2414af68f8 100644 (file)
@@ -8,7 +8,7 @@
 
 / {
        model = "Cudy WR3000H v1";
-       compatible = "cudy,wr3000h-v1", "mediatek,mt7981-spim-snand-rfb";
+       compatible = "cudy,wr3000h-v1", "mediatek,mt7981";
 
        aliases {
                label-mac-device = &gmac0;
        leds {
                compatible = "gpio-leds";
 
-               led_status: led@0 {
+               led_status: led-status {
                        function = LED_FUNCTION_STATUS;
                        color = <LED_COLOR_ID_WHITE>;
                        gpios = <&pio 5 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>;
                        linux,default-trigger = "phy1tpt";
                };
 
-               led_lan1 {
+               led-lan1 {
                        function = LED_FUNCTION_LAN;
                        function-enumerator = <1>;
                        color = <LED_COLOR_ID_WHITE>;
                        gpios = <&pio 8 GPIO_ACTIVE_LOW>;
                };
 
-               led_lan2 {
+               led-lan2 {
                        function = LED_FUNCTION_LAN;
                        function-enumerator = <2>;
                        color = <LED_COLOR_ID_WHITE>;
                        gpios = <&pio 10 GPIO_ACTIVE_LOW>;
                };
 
-               led_lan3 {
+               led-lan3 {
                        function = LED_FUNCTION_LAN;
                        function-enumerator = <3>;
                        color = <LED_COLOR_ID_WHITE>;
                        gpios = <&pio 12 GPIO_ACTIVE_LOW>;
                };
 
-               led_lan4 {
+               led-lan4 {
                        function = LED_FUNCTION_LAN;
                        function-enumerator = <4>;
                        color = <LED_COLOR_ID_WHITE>;
                        gpios = <&pio 13 GPIO_ACTIVE_LOW>;
                };
 
-               led_wan {
+               led-wan {
                        function = LED_FUNCTION_WAN;
                        color = <LED_COLOR_ID_WHITE>;
                        gpios = <&pio 35 GPIO_ACTIVE_LOW>;
index ccefc1926c518e40d140619c6f879e584cf03b99..bdc6188a4aedb94c52d9cd6f4955dcf800199865 100644 (file)
@@ -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;
        leds {
                compatible = "gpio-leds";
 
-               led_status: led@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 @@
 &eth {
        pinctrl-names = "default";
        pinctrl-0 = <&mdio_pins>;
-
        status = "okay";
 
        gmac0: mac@0 {