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

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


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5bead4a0b26b65187caae896c8da7a5d8c62d0a7

commit 5bead4a0b26b65187caae896c8da7a5d8c62d0a7
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Mon May 19 08:20:52 2025 +0800

    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 at 11230000/card at 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 at 11240000/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>
---
 .../patches-6.6/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 at 0 {
 +		compatible = "mmc-card";
@@ -37,10 +39,12 @@
  };
  
  &mmc1 {
-@@ -249,6 +272,26 @@
+@@ -249,6 +274,28 @@
  	vqmmc-supply = <&reg_3p3v>;
  	assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
  	assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
++	#address-cells = <1>;
++	#size-cells = <0>;
 +
 +	card at 0 {
 +		compatible = "mmc-card";
@@ -64,7 +68,7 @@
  };
  
  &nandc {
-@@ -282,15 +325,30 @@
+@@ -282,15 +329,30 @@
  				read-only;
  			};
  




More information about the lede-commits mailing list