All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: tegra: beaver: allow SD card voltage to be changed
@ 2016-02-29 21:01 ` Lucas Stach
  0 siblings, 0 replies; 30+ messages in thread
From: Lucas Stach @ 2016-02-29 21:01 UTC (permalink / raw)
  To: Stephen Warren, Thierry Reding, Alexandre Courbot
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

This allows to switch the card signal voltage level to 1.8V,
which is needed for any ultra high speed modes to work.

Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
---
This needs the SDMMC memcomp pad calibration patches I just
sent out to be applied, otherwise the card voltage change will
fail with a message in the kernel log and a fall back to
high speed operation.
---
 arch/arm/boot/dts/tegra30-beaver.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/tegra30-beaver.dts b/arch/arm/boot/dts/tegra30-beaver.dts
index 1daed40..6b237f2 100644
--- a/arch/arm/boot/dts/tegra30-beaver.dts
+++ b/arch/arm/boot/dts/tegra30-beaver.dts
@@ -1848,7 +1848,7 @@
 
 				ldo5_reg: ldo5 {
 					regulator-name = "vddio_sdmmc,avdd_vdac";
-					regulator-min-microvolt = <3300000>;
+					regulator-min-microvolt = <1800000>;
 					regulator-max-microvolt = <3300000>;
 					regulator-always-on;
 				};
@@ -1919,6 +1919,7 @@
 
 	sdhci@78000000 {
 		status = "okay";
+		vqmmc-supply = <&ldo5_reg>;
 		cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
 		wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
 		power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread
* [PATCH] ARM: tegra: beaver: Allow SD card voltage to be changed
@ 2016-06-30 15:32 Thierry Reding
       [not found] ` <20160630153208.22761-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 30+ messages in thread
From: Thierry Reding @ 2016-06-30 15:32 UTC (permalink / raw)
  To: arm-DgEjT+Ai2ygdnm+yROfE0A
  Cc: Lucas Stach, Jon Hunter, linux-tegra-u79uwXL29TY76Z2rM5mHXA

From: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>

This allows to switch the card signal voltage level to 1.8 V, which is
needed for any ultra high speed modes to work.

Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
Acked-by: Jon Hunter <jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
Hi ARM-SoC maintainers,

Can you please apply this for v4.7? It fixes a regression with UHS modes
that I had hoped could be fixed in the MMC core, but it turns out that a
fairly invasive change will be required and it's not going to make v4.7.

I should note that this is not a workaround. It is the proper fix to
enable UHS modes, but it exposes a weakness in the SDHCI driver which
will happily switch to UHS modes whether or not the power supply can be
configured to output the required voltage. Ideally the SDHCI driver will
be taught to reject UHS modes if the available supply voltages aren't
suitable. There is work underway to do that, but it won't make v4.7.

Thanks,
Thierry

 arch/arm/boot/dts/tegra30-beaver.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/tegra30-beaver.dts b/arch/arm/boot/dts/tegra30-beaver.dts
index 1eca3b28ac64..b6da15d823a6 100644
--- a/arch/arm/boot/dts/tegra30-beaver.dts
+++ b/arch/arm/boot/dts/tegra30-beaver.dts
@@ -1843,7 +1843,7 @@
 
 				ldo5_reg: ldo5 {
 					regulator-name = "vddio_sdmmc,avdd_vdac";
-					regulator-min-microvolt = <3300000>;
+					regulator-min-microvolt = <1800000>;
 					regulator-max-microvolt = <3300000>;
 					regulator-always-on;
 				};
@@ -1914,6 +1914,7 @@
 
 	sdhci@78000000 {
 		status = "okay";
+		vqmmc-supply = <&ldo5_reg>;
 		cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
 		wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
 		power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
-- 
2.8.3

^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2016-07-07  5:22 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-29 21:01 [PATCH] ARM: tegra: beaver: allow SD card voltage to be changed Lucas Stach
2016-02-29 21:01 ` Lucas Stach
     [not found] ` <1456779678-20173-1-git-send-email-dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
2016-05-13  7:25   ` Lucas Stach
2016-05-13  7:25     ` Lucas Stach
     [not found]     ` <1463124331.2459.0.camel-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
2016-05-13 17:27       ` Thierry Reding
2016-05-13 17:27         ` Thierry Reding
     [not found]         ` <20160513172704.GA498-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-05-13 19:08           ` Lucas Stach
2016-05-13 19:08             ` Lucas Stach
2016-05-19 14:29           ` Jon Hunter
2016-05-19 14:29             ` Jon Hunter
     [not found]             ` <573DCDB3.80202-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-06-13 10:22               ` Jon Hunter
2016-06-13 10:22                 ` Jon Hunter
     [not found]                 ` <575E897A.5080508-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-06-14  6:20                   ` Adrian Hunter
2016-06-14  6:20                     ` Adrian Hunter
     [not found]                     ` <575FA21E.80309-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-06-14  8:23                       ` Jon Hunter
2016-06-14  8:23                         ` Jon Hunter
     [not found]                         ` <575FBEE5.50905-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-06-14 10:05                           ` Adrian Hunter
2016-06-14 10:05                             ` Adrian Hunter
     [not found]                             ` <575FD6E0.7070201-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-06-14 14:19                               ` Jon Hunter
2016-06-14 14:19                                 ` Jon Hunter
     [not found]                                 ` <5760125A.8030102-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-06-24  9:14                                   ` Jon Hunter
2016-06-24  9:14                                     ` Jon Hunter
     [not found]                                     ` <576CF9F3.7090406-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-06-28 13:27                                       ` Adrian Hunter
2016-06-28 13:27                                         ` Adrian Hunter
2016-05-19 14:31   ` Jon Hunter
2016-05-19 14:31     ` Jon Hunter
     [not found]     ` <573DCE43.70906-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-05-19 16:12       ` Stephen Warren
2016-05-19 16:12         ` Stephen Warren
2016-06-30 15:32 [PATCH] ARM: tegra: beaver: Allow " Thierry Reding
     [not found] ` <20160630153208.22761-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-07  5:22   ` Olof Johansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.