From 7cc089950ddc2dd1af1df4a464d46fb4d3bf1060 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 08:20:06 +0800 Subject: [PATCH] mediatek: mt7623: fix mmc dtc warnings Add missing #address-cells and #size-cells to fix the following dtc warnings: mt7623n-bananapi-bpi-r2.dts:346.3-13: Warning (reg_format): /mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) mt7623n-bananapi-bpi-r2.dts:373.3-13: Warning (reg_format): /mmc@11240000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7623a-unielec-u7623-02.dts:23.3-13: Warning (reg_format): /mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Signed-off-by: Shiji Yang --- target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi | 2 ++ .../164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi b/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi index eaa2e74112e..02c07c70cd2 100644 --- a/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi +++ b/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi @@ -103,6 +103,8 @@ }; &mmc0 { + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc0_pins_default>; pinctrl-1 = <&mmc0_pins_uhs>; diff --git a/target/linux/mediatek/patches-6.6/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch b/target/linux/mediatek/patches-6.6/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch index fac14b4d82c..603cafc85ec 100644 --- a/target/linux/mediatek/patches-6.6/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch +++ b/target/linux/mediatek/patches-6.6/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch @@ -11,10 +11,12 @@ }; connector { -@@ -338,6 +340,20 @@ +@@ -338,6 +340,22 @@ vmmc-supply = <®_3p3v>; vqmmc-supply = <®_1p8v>; non-removable; ++ #address-cells = <1>; ++ #size-cells = <0>; + + card@0 { + compatible = "mmc-card"; @@ -32,10 +34,12 @@ }; &mmc1 { -@@ -351,6 +367,20 @@ +@@ -351,6 +369,22 @@ cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>; vmmc-supply = <®_3p3v>; vqmmc-supply = <®_3p3v>; ++ #address-cells = <1>; ++ #size-cells = <0>; + + card@0 { + compatible = "mmc-card";