From 5bead4a0b26b65187caae896c8da7a5d8c62d0a7 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 08:20:52 +0800 Subject: [PATCH] mediatek: mt7622: fix mmc dtc warnings Add missing #address-cells and #size-cells to fix the following dtc warnings: mt7622-bananapi-bpi-r64.dts:243.3-13: Warning (reg_format): /mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) mt7622-bananapi-bpi-r64.dts:278.3-13: Warning (reg_format): /mmc@11240000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Signed-off-by: Shiji Yang --- .../911-dts-mt7622-bpi-r64-add-rootdisk.patch | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/target/linux/mediatek/patches-6.6/911-dts-mt7622-bpi-r64-add-rootdisk.patch b/target/linux/mediatek/patches-6.6/911-dts-mt7622-bpi-r64-add-rootdisk.patch index c378a302d4..4f57240fce 100644 --- a/target/linux/mediatek/patches-6.6/911-dts-mt7622-bpi-r64-add-rootdisk.patch +++ b/target/linux/mediatek/patches-6.6/911-dts-mt7622-bpi-r64-add-rootdisk.patch @@ -10,10 +10,12 @@ }; cpus { -@@ -234,6 +237,26 @@ +@@ -234,6 +237,28 @@ assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>; assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>; non-removable; ++ #address-cells = <1>; ++ #size-cells = <0>; + + card@0 { + compatible = "mmc-card"; @@ -37,10 +39,12 @@ }; &mmc1 { -@@ -249,6 +272,26 @@ +@@ -249,6 +274,28 @@ vqmmc-supply = <®_3p3v>; assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>; assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>; ++ #address-cells = <1>; ++ #size-cells = <0>; + + card@0 { + compatible = "mmc-card"; @@ -64,7 +68,7 @@ }; &nandc { -@@ -282,15 +325,30 @@ +@@ -282,15 +329,30 @@ read-only; }; -- 2.30.2