mediatek: fixes for OpenWrt One openwrt-one
authorDaniel Golle <daniel@makrotopia.org>
Tue, 7 May 2024 19:48:42 +0000 (20:48 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 8 May 2024 01:14:22 +0000 (02:14 +0100)
 - unify filenames
 - fix whitespace in DT
 - remove no longer needed 'airoha,led-hw-disable' property
   (netdev trigger offloading now works fine with fix)
 - remove unnecessary PHY ID from DT
   (PHY ID reads fine via MDIO even before firmware has been loaded)

target/linux/mediatek/dts/mt7981b-openwrt-one.dts
target/linux/mediatek/image/filogic.mk

index 323d68c3c8edaa5d0224597c36207214b52fd7b2..7af106ef64b947380a63beab4493f1a70a1aa2a0 100644 (file)
@@ -76,7 +76,6 @@
                        function = LED_FUNCTION_STATUS;
                        pwms = <&pwm 1 10000>;
                };
-
        };
 
        gpio-leds {
 
 &mdio_bus {
        phy15: phy@f {
-               compatible = "ethernet-phy-id03a2.a411";
                reg = <0xf>;
 
                airoha,pnswap-rx;
-               airoha,led-hw-disable;
 
                interrupt-parent = <&pio>;
                interrupts = <38 IRQ_TYPE_EDGE_FALLING>;
 };
 
 &pcie {
-        pinctrl-names = "default";
-        pinctrl-0 = <&pcie_pins>;
-        status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pcie_pins>;
+       status = "okay";
 };
 
 &sgmiisys0 {
-       /delete-node/ mediatek,pnswap; 
+       /delete-node/ mediatek,pnswap;
 };
index 5fd5a0ed1119e345fca7f422b6ae537f6677eec8..0586e86f0286b8670df6320e9b722179de4f78b4 100644 (file)
@@ -931,12 +931,12 @@ define Device/openwrt_one
   IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-with-rootfs | pad-rootfs | append-metadata
   ARTIFACTS := \
        nor-preloader.bin nor-bl31-uboot.fip \
-       spim-nand-preloader.bin spim-nand-bl31-uboot.fip \
+       snand-preloader.bin snand-bl31-uboot.fip \
        factory.ubi snand-factory.bin nor-factory.bin
   ARTIFACT/nor-preloader.bin           := mt7981-bl2 nor-ddr4
   ARTIFACT/nor-bl31-uboot.fip          := mt7981-bl31-uboot openwrt_one-nor
-  ARTIFACT/spim-nand-preloader.bin     := mt7981-bl2 spim-nand-ubi-ddr4
-  ARTIFACT/spim-nand-bl31-uboot.fip    := mt7981-bl31-uboot openwrt_one-snand
+  ARTIFACT/snand-preloader.bin         := mt7981-bl2 spim-nand-ubi-ddr4
+  ARTIFACT/snand-bl31-uboot.fip                := mt7981-bl31-uboot openwrt_one-snand
   ARTIFACT/factory.ubi                 := ubinize-image fit squashfs-sysupgrade.itb
   ARTIFACT/snand-factory.bin           := mt7981-bl2 spim-nand-ubi-ddr4 | pad-to 256k | \
                                           mt7981-bl2 spim-nand-ubi-ddr4 | pad-to 512k | \