[openwrt/openwrt] mediatek: mt7623: fix mmc dtc warnings

LEDE Commits lede-commits at lists.infradead.org
Mon May 19 07:11:52 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7cc089950ddc2dd1af1df4a464d46fb4d3bf1060

commit 7cc089950ddc2dd1af1df4a464d46fb4d3bf1060
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Mon May 19 08:20:06 2025 +0800

    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 at 11230000/card at 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 at 11240000/card at 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 at 11230000/card at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
---
 target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi           | 2 ++
 .../patches-6.6/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 eaa2e74112..02c07c70cd 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 fac14b4d82..603cafc85e 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 = <&reg_3p3v>;
  	vqmmc-supply = <&reg_1p8v>;
  	non-removable;
++	#address-cells = <1>;
++	#size-cells = <0>;
 +
 +	card at 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 = <&reg_3p3v>;
  	vqmmc-supply = <&reg_3p3v>;
++	#address-cells = <1>;
++	#size-cells = <0>;
 +
 +	card at 0 {
 +		compatible = "mmc-card";




More information about the lede-commits mailing list