]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: fix bpi-r4 eeprom dtc warnings
authorShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 00:10:52 +0000 (08:10 +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:

mt7988a-bananapi-bpi-r4-wifi-mt7996a.dtso:31.5-18: Warning (reg_format): /fragment@1/__overlay__/wifi_eeprom@51:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
mt7988a-bananapi-bpi-r4-wifi-mt7996a.dtso:50.5-18: Warning (reg_format): /fragment@1/__overlay__/wifi_eeprom@52: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/mt7988a-bananapi-bpi-r4-wifi-mt7996a.dtso

index 49ae14b72d6f3ea1c011dfbe270498d842499688..d2338adefb474c40c2ba21fca03e57aefbcbd068 100644 (file)
@@ -25,6 +25,9 @@
        fragment@1 {
                target = <&i2c_wifi>;
                __overlay__ {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        // 5G WIFI MAC Address EEPROM
                        wifi_eeprom@51 {
                                compatible = "atmel,24c02";