]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: fix mxl phy node dtc warnings
authorShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 00:15:21 +0000 (08:15 +0800)
committerShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 12:01:00 +0000 (20:01 +0800)
Add missing #address-cells and #size-cells to fix the
following dtc warnings:

mt7981-rfb-mxl-2p5g-phy-eth1.dtso:26.5-15: Warning (reg_format): /fragment@1/__overlay__/ethernet-phy@5:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
mt7981-rfb-mxl-2p5g-phy-swp5.dtso:27.5-15: Warning (reg_format): /fragment@1/__overlay__/ethernet-phy@5:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-mxl-2p5g-phy-eth1.dtso
target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-mxl-2p5g-phy-swp5.dtso

index 4d0e5c04067b3959cb6558c5a9ba2576218b30a2..51d5dc661ad687038e88a2f805741b87260f78d9 100644 (file)
@@ -18,6 +18,8 @@
        fragment@1 {
                target = <&mdio_bus>;
                __overlay__ {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
                        reset-delay-us = <600>;
                        reset-post-delay-us = <20000>;
index 710e6c0bcfbee255eae1a6b887153546f2d6be8b..4cc3cf1df6cf2c8e0f9ba98effd5cf2d01341988 100644 (file)
@@ -19,6 +19,8 @@
        fragment@1 {
                target = <&mdio_bus>;
                __overlay__ {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
                        reset-delay-us = <600>;
                        reset-post-delay-us = <20000>;