Skip to content
Snippets Groups Projects
Commit 2484aaf6 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Julien Massot
Browse files

arm64: dts: mt8195: Add UFSHCI node and change UFSPHY clocks


Add a node for the Universal Flash Storage controller and keep it
disabled by default.
While at it, also change the UFS PHY node to use the right clocks
for unipro and mp to improve reliability on platforms that don't
enable, or that disable, UFS in the bootloader before booting the
kernel.

Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
parent b9c2177f
No related branches found
No related tags found
No related merge requests found
......@@ -1428,6 +1428,30 @@ mmc2: mmc@11250000 {
status = "disabled";
};
ufshci: ufshci@11270000 {
compatible = "mediatek,mt8195-ufshci", "mediatek,mt8183-ufshci";
reg = <0 0x11270000 0 0x2300>;
interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH 0>;
phys = <&ufsphy>;
clocks = <&infracfg_ao CLK_INFRA_AO_AES_UFSFDE>,
<&infracfg_ao CLK_INFRA_AO_AES>,
<&infracfg_ao CLK_INFRA_AO_UFS_TICK>,
<&infracfg_ao CLK_INFRA_AO_UNIPRO_SYS>,
<&infracfg_ao CLK_INFRA_AO_UNIPRO_TICK>,
<&infracfg_ao CLK_INFRA_AO_UFS_MP_SAP_B>,
<&infracfg_ao CLK_INFRA_AO_UFS_TX_SYMBOL>,
<&infracfg_ao CLK_INFRA_AO_UFS_RX_SYMBOL>,
<&infracfg_ao CLK_INFRA_AO_PERI_UFS_MEM_SUB>;
clock-names = "ufs", "ufs-aes", "ufs-tick",
"unipro-sys", "unipro-tick", "ufs-sap",
"ufs-tx-symbol", "ufs-rx-symbol",
"ufs-mem";
freq-table-hz = <0 0>, <0 0>, <0 0>,
<0 0>, <0 0>, <0 0>,
<0 0>, <0 0>, <0 0>;
status = "disabled";
};
lvts_mcu: thermal-sensor@11278000 {
compatible = "mediatek,mt8195-lvts-mcu";
reg = <0 0x11278000 0 0x1000>;
......@@ -2009,7 +2033,8 @@ pciephy: phy@11e80000 {
ufsphy: ufs-phy@11fa0000 {
compatible = "mediatek,mt8195-ufsphy", "mediatek,mt8183-ufsphy";
reg = <0 0x11fa0000 0 0xc000>;
clocks = <&clk26m>, <&clk26m>;
clocks = <&infracfg_ao CLK_INFRA_AO_UNIPRO_SYS>,
<&infracfg_ao CLK_INFRA_AO_UFS_MP_SAP_B>;
clock-names = "unipro", "mp";
#phy-cells = <0>;
status = "disabled";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment