mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 19:25:05 +07:00
6e9e318b30
Add function to support getting voltage from device-tree. If voltage-range is specified in device-tree node, this function will parse it and return the available voltage mask. Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com> Acked-by: Anton Vorontsov <anton@enomsg.org> Signed-off-by: Chris Ball <cjb@laptop.org>
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
* Freescale Enhanced Secure Digital Host Controller (eSDHC)
|
|
|
|
The Enhanced Secure Digital Host Controller provides an interface
|
|
for MMC, SD, and SDIO types of memory cards.
|
|
|
|
This file documents differences between the core properties described
|
|
by mmc.txt and the properties used by the sdhci-esdhc driver.
|
|
|
|
Required properties:
|
|
- interrupt-parent : interrupt source phandle.
|
|
- clock-frequency : specifies eSDHC base clock frequency.
|
|
|
|
Optional properties:
|
|
- sdhci,wp-inverted : specifies that eSDHC controller reports
|
|
inverted write-protect state; New devices should use the generic
|
|
"wp-inverted" property.
|
|
- sdhci,1-bit-only : specifies that a controller can only handle
|
|
1-bit data transfers. New devices should use the generic
|
|
"bus-width = <1>" property.
|
|
- sdhci,auto-cmd12: specifies that a controller can only handle auto
|
|
CMD12.
|
|
- voltage-ranges : two cells are required, first cell specifies minimum
|
|
slot voltage (mV), second cell specifies maximum slot voltage (mV).
|
|
Several ranges could be specified.
|
|
|
|
Example:
|
|
|
|
sdhci@2e000 {
|
|
compatible = "fsl,mpc8378-esdhc", "fsl,esdhc";
|
|
reg = <0x2e000 0x1000>;
|
|
interrupts = <42 0x8>;
|
|
interrupt-parent = <&ipic>;
|
|
/* Filled in by U-Boot */
|
|
clock-frequency = <0>;
|
|
voltage-ranges = <3300 3300>;
|
|
};
|