mediatek: filogic: fix mmc dtc warnings
Add missing #address-cells and #size-cells to fix the following dtc warnings: ../dts/mt7986a-smartrg-bonanza-peak.dtsi:310.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) mt7986a-bananapi-bpi-r3-emmc.dtso:29.5-15: Warning (reg_format): /fragment@0/__overlay__/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) mt7986a-bananapi-bpi-r3-sd.dtso:23.5-15: Warning (reg_format): /fragment@0/__overlay__/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7986a-bananapi-bpi-r3-mini.dts:274.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-cmcc-rax3000m-emmc.dtso:48.5-15: Warning (reg_format): /fragment@3/__overlay__/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-glinet-gl-mt2500.dts:158.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7986a-glinet-gl-mt6000.dts:319.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981a-glinet-gl-x3000-xe3000-common.dtsi:142.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-huasifei-wh3000.dts:118.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7986a-jdcloud-re-cp-03.dts:171.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-nradio-c8-668gl.dts:110.3-13: Warning (reg_format): /soc/mmc@11230000/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-unielec-u7981-01-emmc.dts:26.3-13: Warning (reg_format): /soc/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>
This commit is contained in:
parent
13a02c9832
commit
1adb0a8928
11 changed files with 26 additions and 2 deletions
|
@ -127,6 +127,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
pinctrl-names = "default", "state_uhs";
|
pinctrl-names = "default", "state_uhs";
|
||||||
pinctrl-0 = <&mmc0_pins_default>;
|
pinctrl-0 = <&mmc0_pins_default>;
|
||||||
pinctrl-1 = <&mmc0_pins_uhs>;
|
pinctrl-1 = <&mmc0_pins_uhs>;
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
fragment@3 {
|
fragment@3 {
|
||||||
target = <&mmc0>;
|
target = <&mmc0>;
|
||||||
__overlay__ {
|
__overlay__ {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
bus-width = <8>;
|
bus-width = <8>;
|
||||||
max-frequency = <26000000>;
|
max-frequency = <26000000>;
|
||||||
no-sd;
|
no-sd;
|
||||||
|
|
|
@ -144,6 +144,8 @@
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
pinctrl-names = "default", "state_uhs";
|
pinctrl-names = "default", "state_uhs";
|
||||||
pinctrl-0 = <&mmc0_pins_default>;
|
pinctrl-0 = <&mmc0_pins_default>;
|
||||||
pinctrl-1 = <&mmc0_pins_uhs>;
|
pinctrl-1 = <&mmc0_pins_uhs>;
|
||||||
|
|
|
@ -101,6 +101,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
bus-width = <8>;
|
bus-width = <8>;
|
||||||
cap-mmc-highspeed;
|
cap-mmc-highspeed;
|
||||||
max-frequency = <52000000>;
|
max-frequency = <52000000>;
|
||||||
|
|
|
@ -95,6 +95,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
pinctrl-names = "default", "state_uhs";
|
pinctrl-names = "default", "state_uhs";
|
||||||
pinctrl-0 = <&mmc0_pins_default>;
|
pinctrl-0 = <&mmc0_pins_default>;
|
||||||
pinctrl-1 = <&mmc0_pins_uhs>;
|
pinctrl-1 = <&mmc0_pins_uhs>;
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
pinctrl-names = "default", "state_uhs";
|
pinctrl-names = "default", "state_uhs";
|
||||||
pinctrl-0 = <&mmc0_pins_default>;
|
pinctrl-0 = <&mmc0_pins_default>;
|
||||||
pinctrl-1 = <&mmc0_pins_uhs>;
|
pinctrl-1 = <&mmc0_pins_uhs>;
|
||||||
|
|
|
@ -253,6 +253,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
pinctrl-names = "default", "state_uhs";
|
pinctrl-names = "default", "state_uhs";
|
||||||
pinctrl-0 = <&mmc0_pins_default>;
|
pinctrl-0 = <&mmc0_pins_default>;
|
||||||
pinctrl-1 = <&mmc0_pins_uhs>;
|
pinctrl-1 = <&mmc0_pins_uhs>;
|
||||||
|
|
|
@ -298,6 +298,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
pinctrl-names = "default", "state_uhs";
|
pinctrl-names = "default", "state_uhs";
|
||||||
pinctrl-0 = <&mmc0_pins_default>;
|
pinctrl-0 = <&mmc0_pins_default>;
|
||||||
pinctrl-1 = <&mmc0_pins_uhs>;
|
pinctrl-1 = <&mmc0_pins_uhs>;
|
||||||
|
|
|
@ -150,6 +150,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
bus-width = <8>;
|
bus-width = <8>;
|
||||||
cap-mmc-highspeed;
|
cap-mmc-highspeed;
|
||||||
hs400-ds-delay = <0x14014>;
|
hs400-ds-delay = <0x14014>;
|
||||||
|
|
|
@ -289,6 +289,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
pinctrl-names = "default", "state_uhs";
|
pinctrl-names = "default", "state_uhs";
|
||||||
pinctrl-0 = <&mmc0_pins_default>;
|
pinctrl-0 = <&mmc0_pins_default>;
|
||||||
pinctrl-1 = <&mmc0_pins_uhs>;
|
pinctrl-1 = <&mmc0_pins_uhs>;
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-emmc.dtso
|
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-emmc.dtso
|
||||||
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-emmc.dtso
|
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-emmc.dtso
|
||||||
@@ -23,7 +23,27 @@
|
@@ -23,7 +23,29 @@
|
||||||
no-sd;
|
no-sd;
|
||||||
no-sdio;
|
no-sdio;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
+ #address-cells = <1>;
|
||||||
|
+ #size-cells = <0>;
|
||||||
+
|
+
|
||||||
+ card@0 {
|
+ card@0 {
|
||||||
+ compatible = "mmc-card";
|
+ compatible = "mmc-card";
|
||||||
|
@ -101,10 +103,12 @@
|
||||||
};
|
};
|
||||||
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-sd.dtso
|
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-sd.dtso
|
||||||
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-sd.dtso
|
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-sd.dtso
|
||||||
@@ -17,6 +17,27 @@
|
@@ -17,6 +17,29 @@
|
||||||
max-frequency = <52000000>;
|
max-frequency = <52000000>;
|
||||||
cap-sd-highspeed;
|
cap-sd-highspeed;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
+ #address-cells = <1>;
|
||||||
|
+ #size-cells = <0>;
|
||||||
+
|
+
|
||||||
+ card@0 {
|
+ card@0 {
|
||||||
+ compatible = "mmc-card";
|
+ compatible = "mmc-card";
|
||||||
|
|
Loading…
Reference in a new issue