]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: mt7623: fix mmc dtc warnings
authorShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 00:20:06 +0000 (08:20 +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:

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 <yangshiji66@outlook.com>
target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi
target/linux/mediatek/patches-6.6/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch

index eaa2e74112e3cfe7cb7268d83673fce5a0d20ef9..02c07c70cd26102c07f48cef45399137fe6eb10f 100644 (file)
 };
 
 &mmc0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        pinctrl-names = "default", "state_uhs";
        pinctrl-0 = <&mmc0_pins_default>;
        pinctrl-1 = <&mmc0_pins_uhs>;
index fac14b4d82c7279dc83e999891df0a2a523fc4eb..603cafc85ec527104f45082e51c1ac855617386b 100644 (file)
        };
  
        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@0 {
 +              compatible = "mmc-card";
  };
  
  &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@0 {
 +              compatible = "mmc-card";