Skip to content

Commit

Permalink
arm: dts: Add cap-mmc-hw-reset and no-sd, no-sdio property to eMMC
Browse files Browse the repository at this point in the history
Add "cap-mmc-hw-reset" property to the eMMC DT node to perform the
eMMC device hardware reset.
Also, add "no-sd", "no-sdio" properties to eMMC DT node to skip
unwanted sd, sdio related commands during initialization for eMMC
device as this may lead to unnecessary register dump.

Signed-off-by: Paul Alvin <[email protected]>
Message-ID: <[email protected]>
  • Loading branch information
AlvinPaul26 authored and michalsimek committed Sep 13, 2024
1 parent 6a96522 commit b497f82
Show file tree
Hide file tree
Showing 30 changed files with 90 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-mini-emmc0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
reg = <0x0 0xf1040000 0x0 0x10000>;
clock-names = "clk_xin", "clk_ahb";
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-mini-emmc1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
reg = <0x0 0xf1050000 0x0 0x10000>;
clock-names = "clk_xin", "clk_ahb";
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-net-mini-emmc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
reg = <0 0xf1050000 0 0x10000>;
clock-names = "clk_xin", "clk_ahb";
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-net-vn-x-b2197-01-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@
iommus = <&smmu 0x243>;
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
no-1-8-v;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-v80-rev1.0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-vc-p-a2197-00-revA-x-prc-02-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-vc-p-a2197-00-revA-x-prc-03-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>; /* FIXME */
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-vc-p-a2197-00-revA-x-prc-05-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>; /* FIXME */
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal-x-ebm-02-revA.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
3 changes: 3 additions & 0 deletions arch/arm/dts/versal2-mini-emmc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
no-1-8-v;
cap-mmc-hw-reset;
bus-width = <8>;
reg = <0 0xf1050000 0 0x10000>;
clock-names = "clk_xin", "clk_ahb";
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal2-spp-mmd-rev0.5-el2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@
bus-width = <8>;
disable-wp;
non-removable;
no-sd;
no-sdio;
cap-mmc-hw-reset;
xlnx,mio-bank = <0>;
no-mmc-hs400;
assigned-clock-rates = <CLOCK_FREQ>, <CLOCK_FREQ>, <CLOCK_FREQ>;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal2-spp-rev0.3-el2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@
bus-width = <8>;
disable-wp;
non-removable;
no-sd;
no-sdio;
cap-mmc-hw-reset;
xlnx,mio-bank = <0>;
no-mmc-hs400;
assigned-clock-rates = <CLOCK_FREQ>, <CLOCK_FREQ>, <CLOCK_FREQ>;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/versal2-spp-rev0.4-el2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@
bus-width = <8>;
disable-wp;
non-removable;
no-sd;
no-sdio;
cap-mmc-hw-reset;
xlnx,mio-bank = <0>;
no-mmc-hs400;
assigned-clock-rates = <CLOCK_FREQ>, <CLOCK_FREQ>, <CLOCK_FREQ>;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/x-prc-07-revA.dtso
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
xlnx,mio-bank = <0>;
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
};

Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/x-prc-08-revA.dtso
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
xlnx,mio-bank = <1>;
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
};

Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynq-dlc20-rev1.0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
bootph-all;
status = "okay"; /* EMMC MTFC4GACAJCN - MIO40-MIO45 */
non-removable;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <4>;
};

Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynq-minized.dts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
&sdhci1 {
status = "okay";
non-removable;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <4>;
max-frequency = <12000000>;

Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-dlc21-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-g-a2197-00-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-m-a2197-01-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>; /* FIXME tap delay */
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-m-a2197-02-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>; /* FIXME tap delay */
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-m-a2197-03-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>; /* FIXME tap delay */
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-mini-emmc0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
compatible = "xlnx,zynqmp-8.9a", "arasan,sdhci-8.9a";
status = "disabled";
non-removable;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
reg = <0x0 0xff160000 0x0 0x1000>;
clock-names = "clk_xin", "clk_ahb";
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-mini-emmc1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
compatible = "xlnx,zynqmp-8.9a", "arasan,sdhci-8.9a";
status = "disabled";
non-removable;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
reg = <0x0 0xff170000 0x0 0x1000>;
clock-names = "clk_xin", "clk_ahb";
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-p-a2197-00-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-sc-revB.dts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-sm-k26-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@
pinctrl-0 = <&pinctrl_sdhci0_default>;
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
assigned-clock-rates = <187498123>;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-topic-miamimp-xilinx-xdp-v1r1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
status = "okay";
non-removable;
disable-wp; /* We don't have a write-protect detection */
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-vpk120-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
status = "okay";
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
bus-width = <8>;
xlnx,mio-bank = <0>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/dts/zynqmp-zcu100-revC.dts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@
xlnx,mio-bank = <0>;
non-removable;
disable-wp;
no-sd;
no-sdio;
cap-mmc-hw-reset;
cap-power-off-card;
mmc-pwrseq = <&sdio_pwrseq>;
vqmmc-supply = <&wmmcsdio_fixed>;
Expand Down

0 comments on commit b497f82

Please sign in to comment.