]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: cleanup device tree for mt7988 devices
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 9 Jun 2025 15:10:30 +0000 (23:10 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 13 Jun 2025 09:15:08 +0000 (11:15 +0200)
Fix wrong pwm-fan node for bpi-r4.
Remove useless status for pwm-fan.
Remove blank lines added by b992aa11.

Fixes: b992aa11 ("mediatek: dts: bring mt7988a.dtsi closer to upstream")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
target/linux/mediatek/dts/mt7988a-arcadyan-mozart.dts
target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi
target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts
target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi

index f6ee498ae062414e90571f470986ef354c2af220..420bd53b69f8343ec4652dc240c953ac53174a2b 100644 (file)
@@ -67,8 +67,6 @@
                /* cooling level (0, 1, 2) : (0% duty, 50% duty, 100% duty) */
                cooling-levels = <0 128 255>;
                pwms = <&pwm 1 40000 0>;
-
-               status = "okay";
        };
 };
 
@@ -81,8 +79,6 @@
 };
 
 &mdio_bus {
-       #address-cells = <1>;
-       #size-cells = <0>;
        reset-gpios = <&pio 72 GPIO_ACTIVE_LOW>;
        reset-assert-us = <100000>;
        reset-deassert-us = <100000>;
        };
 };
 
-&serial1 {
+&pwm {
        status = "okay";
 };
 
-&pwm {
+&serial1 {
        status = "okay";
 };
 
index 302e8a810116d24aa7e6238dc00a074943eaea8a..58d11476ddb73a79c8a12b9080832778591c26be 100644 (file)
                interrupt-parent = <&pio>;
                interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
                pulses-per-revolution = <2>;
-
-               status = "okay";
        };
 };
 
                        groups = "uart2";
                };
        };
-
-
 };
 
 &pwm {
                compatible = "spi-nand";
                reg = <0>;
                spi-max-frequency = <52000000>;
-               spi-tx-buswidth = <4>;
-               spi-rx-buswidth = <4>;
+               spi-tx-bus-width = <4>;
+               spi-rx-bus-width = <4>;
        };
-
 };
 
 &ssusb0 {
index 7cf84d99bd723d9c9dc4bf20dfcfded87492f0aa..16d01774abae879efae57de2b8b312f8c922684a 100644 (file)
@@ -21,8 +21,8 @@
                compatible = "spi-nand";
                reg = <0>;
                spi-max-frequency = <52000000>;
-               spi-tx-buswidth = <4>;
-               spi-rx-buswidth = <4>;
+               spi-tx-bus-width = <4>;
+               spi-rx-bus-width = <4>;
 
                partitions {
                        compatible = "fixed-partitions";
index a1ff582961acd4cc3063666de5099f7b435218be..fdf8ab8ff42c12b507c09171ce474ad946edc648 100644 (file)
                };
        };
 
+       fan: pwm-fan {
+               compatible = "pwm-fan";
+               /* cooling level (0, 1, 2, 3) : (0% duty, 30% duty, 50% duty, 100% duty) */
+               cooling-levels = <0 80 128 255>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pwm0_pins>;
+               pwms = <&pwm 0 50000>;
+               #cooling-cells = <2>;
+               #thermal-sensor-cells = <1>;
+       };
+
        reg_1p8v: regulator-1p8v {
                compatible = "regulator-fixed";
                regulator-name = "fixed-1.8V";
                        groups = "spi0", "spi0_wp_hold";
                };
        };
-
-       fan: pwm-fan {
-               compatible = "pwm-fan";
-               pinctrl-names = "default";
-               pinctrl-0 = <&pwm0_pins>;
-               pwms = <&pwm 0 50000>;
-               /* cooling level (0, 1, 2, 3) : (0% duty, 30% duty, 50% duty, 100% duty) */
-               cooling-levels = <0 80 128 255>;
-               #cooling-cells = <2>;
-               #thermal-sensor-cells = <1>;
-
-               status = "okay";
-       };
 };
 
 &pwm {