提交 6db90c59 编写于 作者: D Douglas Anderson 提交者: Ulf Hansson

Documentation: mmc: sdhci-of-arasan: Add ability to export card clock

Some SD/eMMC PHYs (like the PHY from Arasan that is designed to work
with arasan,sdhci-5.1) need to know the card clock frequency in order to
function properly.  Physically in a SoC this clock is exported from the
SDHCI IP block to the PHY IP block and the PHY needs to know the speed.
Let's export the SDHCI card clock using a standard device tree mechanism
so that the PHY can get access to it and query the card clock frequency.
Signed-off-by: NDouglas Anderson <dianders@chromium.org>
Acked-by: NRob Herring <robh@kernel.org>
Reviewed-by: NHeiko Stuebner <heiko@sntech.de>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 3ea4666e
...@@ -30,6 +30,12 @@ Optional Properties: ...@@ -30,6 +30,12 @@ Optional Properties:
- arasan,soc-ctl-syscon: A phandle to a syscon device (see ../mfd/syscon.txt) - arasan,soc-ctl-syscon: A phandle to a syscon device (see ../mfd/syscon.txt)
used to access core corecfg registers. Offsets of registers in this used to access core corecfg registers. Offsets of registers in this
syscon are determined based on the main compatible string for the device. syscon are determined based on the main compatible string for the device.
- clock-output-names: If specified, this will be the name of the card clock
which will be exposed by this device. Required if #clock-cells is
specified.
- #clock-cells: If specified this should be the value <0>. With this property
in place we will export a clock representing the Card Clock. This clock
is expected to be consumed by our PHY. You must also specify
Example: Example:
sdhci@e0100000 { sdhci@e0100000 {
...@@ -61,7 +67,9 @@ Example: ...@@ -61,7 +67,9 @@ Example:
arasan,soc-ctl-syscon = <&grf>; arasan,soc-ctl-syscon = <&grf>;
assigned-clocks = <&cru SCLK_EMMC>; assigned-clocks = <&cru SCLK_EMMC>;
assigned-clock-rates = <200000000>; assigned-clock-rates = <200000000>;
clock-output-names = "emmc_cardclock";
phys = <&emmc_phy>; phys = <&emmc_phy>;
phy-names = "phy_arasan"; phy-names = "phy_arasan";
#clock-cells = <0>;
status = "disabled"; status = "disabled";
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册