All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerome Brunet <jbrunet@baylibre.com>
To: Kevin Hilman <khilman@baylibre.com>, Carlo Caione <carlo@caione.org>
Cc: Jerome Brunet <jbrunet@baylibre.com>,
	linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 4/9] ARM64: dts: meson-gxbb: nanopi-k2: add card regulator settle times
Date: Thu, 31 Aug 2017 15:52:21 +0200	[thread overview]
Message-ID: <20170831135226.19784-5-jbrunet@baylibre.com> (raw)
In-Reply-To: <20170831135226.19784-1-jbrunet@baylibre.com>

Changing the card voltage on the nanopi-k2 is not instantaneous,
especially when switching from 3.3v to 1.8v.

It take at least 3ms for the regulator to go from 3.3v to 1.8v. Add
margin to that to make sure we don't upset the sdcard during the voltage
switch

Fixes: 9bc7ffb08daf ("arm64: dts: amlogic: Add NanoPi K2")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
index 60d5f2da6916..acb6797756e5 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
@@ -107,6 +107,9 @@
 
 		states = <3300000 0>,
 		         <1800000 1>;
+
+		regulator-settling-time-up-us = <100>;
+		regulator-settling-time-down-us = <5000>;
 	};
 
 	wifi_32k: wifi-32k {
-- 
2.9.5

WARNING: multiple messages have this Message-ID (diff)
From: jbrunet@baylibre.com (Jerome Brunet)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/9] ARM64: dts: meson-gxbb: nanopi-k2: add card regulator settle times
Date: Thu, 31 Aug 2017 15:52:21 +0200	[thread overview]
Message-ID: <20170831135226.19784-5-jbrunet@baylibre.com> (raw)
In-Reply-To: <20170831135226.19784-1-jbrunet@baylibre.com>

Changing the card voltage on the nanopi-k2 is not instantaneous,
especially when switching from 3.3v to 1.8v.

It take at least 3ms for the regulator to go from 3.3v to 1.8v. Add
margin to that to make sure we don't upset the sdcard during the voltage
switch

Fixes: 9bc7ffb08daf ("arm64: dts: amlogic: Add NanoPi K2")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
index 60d5f2da6916..acb6797756e5 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
@@ -107,6 +107,9 @@
 
 		states = <3300000 0>,
 		         <1800000 1>;
+
+		regulator-settling-time-up-us = <100>;
+		regulator-settling-time-down-us = <5000>;
 	};
 
 	wifi_32k: wifi-32k {
-- 
2.9.5

WARNING: multiple messages have this Message-ID (diff)
From: jbrunet@baylibre.com (Jerome Brunet)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v3 4/9] ARM64: dts: meson-gxbb: nanopi-k2: add card regulator settle times
Date: Thu, 31 Aug 2017 15:52:21 +0200	[thread overview]
Message-ID: <20170831135226.19784-5-jbrunet@baylibre.com> (raw)
In-Reply-To: <20170831135226.19784-1-jbrunet@baylibre.com>

Changing the card voltage on the nanopi-k2 is not instantaneous,
especially when switching from 3.3v to 1.8v.

It take at least 3ms for the regulator to go from 3.3v to 1.8v. Add
margin to that to make sure we don't upset the sdcard during the voltage
switch

Fixes: 9bc7ffb08daf ("arm64: dts: amlogic: Add NanoPi K2")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
index 60d5f2da6916..acb6797756e5 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
@@ -107,6 +107,9 @@
 
 		states = <3300000 0>,
 		         <1800000 1>;
+
+		regulator-settling-time-up-us = <100>;
+		regulator-settling-time-down-us = <5000>;
 	};
 
 	wifi_32k: wifi-32k {
-- 
2.9.5

  parent reply	other threads:[~2017-08-31 13:52 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-31 13:52 [PATCH v3 0/9] ARM64: dts: meson: update around mmc Jerome Brunet
2017-08-31 13:52 ` Jerome Brunet
2017-08-31 13:52 ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 1/9] ARM64: dts: meson-gx: Use correct mmc clock source 0 Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 2/9] ARM64: dts: meson: remove cap-sd-highspeed from emmc nodes Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 3/9] ARM64: dts: meson: add mmc clk gate pins Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` Jerome Brunet [this message]
2017-08-31 13:52   ` [PATCH v3 4/9] ARM64: dts: meson-gxbb: nanopi-k2: add card regulator settle times Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 5/9] ARM64: dts: meson-gxl: libretech-cc: " Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 6/9] ARM64: dts: meson-gxl: libretech-cc: enable high speed modes Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 7/9] ARM64: dts: meson-gxbb: p20x: enable sdcard UHS modes Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 8/9] ARM64: dts: meson-gxbb: nanopi-k2: " Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52 ` [PATCH v3 9/9] ARM64: dts: meson-gxbb: nanopi-k2: enable sdr104 mode Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-08-31 13:52   ` Jerome Brunet
2017-09-05 19:18 ` [PATCH v3 0/9] ARM64: dts: meson: update around mmc Kevin Hilman
2017-09-05 19:18   ` Kevin Hilman
2017-09-05 19:18   ` Kevin Hilman
2017-09-05 19:18   ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170831135226.19784-5-jbrunet@baylibre.com \
    --to=jbrunet@baylibre.com \
    --cc=carlo@caione.org \
    --cc=devicetree@vger.kernel.org \
    --cc=khilman@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.