From: Ashok Reddy Soma <[email protected]>

Mini u-boot eMMC dt parameters are not in sync with full u-boot dt.

Frequency for eMMC is fixed to 25Mhz. Due to this, mmc multi-block write
commands are failing. Increase frequency to 200Mhz to fix this issue.

Add bus-width = <8>, non-removable and disable-wp properties to the node
as this is eMMC.

Signed-off-by: Ashok Reddy Soma <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
---

 arch/arm/dts/versal-mini-emmc0.dts | 9 ++++++---
 arch/arm/dts/versal-mini-emmc1.dts | 9 ++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/arch/arm/dts/versal-mini-emmc0.dts 
b/arch/arm/dts/versal-mini-emmc0.dts
index 7826a282134b..6a6e7467a233 100644
--- a/arch/arm/dts/versal-mini-emmc0.dts
+++ b/arch/arm/dts/versal-mini-emmc0.dts
@@ -16,10 +16,10 @@
        #size-cells = <2>;
        model = "Xilinx Versal MINI eMMC0";
 
-       clk25: clk25 {
+       clk200: clk200 {
                compatible = "fixed-clock";
                #clock-cells = <0x0>;
-               clock-frequency = <25000000>;
+               clock-frequency = <200000000>;
        };
 
        dcc: dcc {
@@ -38,9 +38,12 @@
                sdhci0: sdhci@f1040000 {
                        compatible = "xlnx,versal-8.9a", "arasan,sdhci-8.9a";
                        status = "okay";
+                       non-removable;
+                       disable-wp;
+                       bus-width = <8>;
                        reg = <0x0 0xf1040000 0x0 0x10000>;
                        clock-names = "clk_xin", "clk_ahb";
-                       clocks = <&clk25 &clk25>;
+                       clocks = <&clk200 &clk200>;
                        xlnx,device_id = <0>;
                        no-1-8-v;
                        xlnx,mio-bank = <0>;
diff --git a/arch/arm/dts/versal-mini-emmc1.dts 
b/arch/arm/dts/versal-mini-emmc1.dts
index 2f28f856a6a3..c342e6bdf7ad 100644
--- a/arch/arm/dts/versal-mini-emmc1.dts
+++ b/arch/arm/dts/versal-mini-emmc1.dts
@@ -16,10 +16,10 @@
        #size-cells = <2>;
        model = "Xilinx Versal MINI eMMC1";
 
-       clk25: clk25 {
+       clk200: clk200 {
                compatible = "fixed-clock";
                #clock-cells = <0x0>;
-               clock-frequency = <25000000>;
+               clock-frequency = <200000000>;
        };
 
        dcc: dcc {
@@ -38,9 +38,12 @@
                sdhci1: sdhci@f1050000 {
                        compatible = "xlnx,versal-8.9a", "arasan,sdhci-8.9a";
                        status = "okay";
+                       non-removable;
+                       disable-wp;
+                       bus-width = <8>;
                        reg = <0x0 0xf1050000 0x0 0x10000>;
                        clock-names = "clk_xin", "clk_ahb";
-                       clocks = <&clk25 &clk25>;
+                       clocks = <&clk200 &clk200>;
                        xlnx,device_id = <1>;
                        no-1-8-v;
                        xlnx,mio-bank = <0>;
-- 
2.28.0

Reply via email to