diff options
| author | Shiji Yang | 2025-05-19 00:20:06 +0000 |
|---|---|---|
| committer | Shiji Yang | 2025-05-19 12:01:00 +0000 |
| commit | 7cc089950ddc2dd1af1df4a464d46fb4d3bf1060 (patch) | |
| tree | 20456c3d2cf72a4b49d2bbde63c4da8c9fa046bd | |
| parent | d1482e5e2d70e29c3752df97a1e2e98323b0f63f (diff) | |
| download | openwrt-7cc089950ddc2dd1af1df4a464d46fb4d3bf1060.tar.gz | |
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 <yangshiji66@outlook.com>
| -rw-r--r-- | target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi | 2 | ||||
| -rw-r--r-- | target/linux/mediatek/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 = <®_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"; |