aboutsummaryrefslogtreecommitdiff
path: root/Bindings/mmc/sdhci-sprd.txt
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2019-01-11 05:27:30 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2019-01-11 05:27:30 +0000
commita31d1ff13cd8d70944a6446c0e2478d7f25b53e7 (patch)
tree95e0f475d5a1ebb20845d0809fdc2d15875b2ea9 /Bindings/mmc/sdhci-sprd.txt
parent0bf7de3125ed8dcfbeaa112994b25101fa9b96c6 (diff)
downloadsrc-a31d1ff13cd8d70944a6446c0e2478d7f25b53e7.tar.gz
src-a31d1ff13cd8d70944a6446c0e2478d7f25b53e7.zip
Import DTS files from Linux 4.20vendor/device-tree/4.20
Notes
Notes: svn path=/vendor/device-tree/dist/; revision=342930 svn path=/vendor/device-tree/4.20/; revision=342931; tag=vendor/device-tree/4.20
Diffstat (limited to 'Bindings/mmc/sdhci-sprd.txt')
-rw-r--r--Bindings/mmc/sdhci-sprd.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/Bindings/mmc/sdhci-sprd.txt b/Bindings/mmc/sdhci-sprd.txt
new file mode 100644
index 000000000000..45c9978aad7b
--- /dev/null
+++ b/Bindings/mmc/sdhci-sprd.txt
@@ -0,0 +1,41 @@
+* Spreadtrum SDHCI controller (sdhci-sprd)
+
+The Secure Digital (SD) Host controller on Spreadtrum SoCs provides an interface
+for MMC, SD and SDIO types of cards.
+
+This file documents differences between the core properties in mmc.txt
+and the properties used by the sdhci-sprd driver.
+
+Required properties:
+- compatible: Should contain "sprd,sdhci-r11".
+- reg: physical base address of the controller and length.
+- interrupts: Interrupts used by the SDHCI controller.
+- clocks: Should contain phandle for the clock feeding the SDHCI controller
+- clock-names: Should contain the following:
+ "sdio" - SDIO source clock (required)
+ "enable" - gate clock which used for enabling/disabling the device (required)
+
+Optional properties:
+- assigned-clocks: the same with "sdio" clock
+- assigned-clock-parents: the default parent of "sdio" clock
+
+Examples:
+
+sdio0: sdio@20600000 {
+ compatible = "sprd,sdhci-r11";
+ reg = <0 0x20600000 0 0x1000>;
+ interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
+
+ clock-names = "sdio", "enable";
+ clocks = <&ap_clk CLK_EMMC_2X>,
+ <&apahb_gate CLK_EMMC_EB>;
+ assigned-clocks = <&ap_clk CLK_EMMC_2X>;
+ assigned-clock-parents = <&rpll CLK_RPLL_390M>;
+
+ bus-width = <8>;
+ non-removable;
+ no-sdio;
+ no-sd;
+ cap-mmc-hw-reset;
+ status = "okay";
+};