linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/8] ARM: ux500: Add node for the MMC GPIO regulator
Date: Thu, 25 Oct 2012 10:57:08 +0100	[thread overview]
Message-ID: <1351159031-25391-6-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1351159031-25391-1-git-send-email-lee.jones@linaro.org>

There is a very simple mechanism to change and SDI's voltage which
consists of toggling some GPIOs. This scenario can be better handled
if we convert it to a GPIO regulator. This patch provides one which
can be read from Device Tree.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 arch/arm/boot/dts/dbx5x0.dtsi |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi
index 07a085b..536df5d 100644
--- a/arch/arm/boot/dts/dbx5x0.dtsi
+++ b/arch/arm/boot/dts/dbx5x0.dtsi
@@ -614,5 +614,19 @@
 			ranges = <0 0x50000000 0x4000000>;
 			status = "disabled";
 		};
+
+		vmmci: regulator-gpio {
+			compatible = "regulator-gpio";
+
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <2600000>;
+			regulator-name = "mmci-reg";
+			regulator-type = "voltage";
+
+			gpios = <&tc3589x_gpio 18 0x4>;
+			gpio-enable = <&tc3589x_gpio 17 0x4>;
+			states = <1800000 0x1
+				  2900000 0x0>;
+		};
 	};
 };
-- 
1.7.9.5

  parent reply	other threads:[~2012-10-25  9:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-25  9:57 [PATCH 1/8] Ux5x0 patches loosely surrounding u9540 enablement Lee Jones
2012-10-25  9:57 ` [PATCH 1/8] ARM: ux500: Enable all MMC devices on the u9540 when booting with DT Lee Jones
2012-10-25  9:57 ` [PATCH 2/8] ARM: ux500: Rename references to the ccu9540 dev board accordingly Lee Jones
2012-10-25  9:57 ` [PATCH 3/8] ARM: ux500: Remove duplicate DT_MACHINE_START - make u8500 for generic Lee Jones
2012-10-25  9:57 ` [PATCH 4/8] ARM: ux500: List DT compatibility using platform names rather than by board Lee Jones
2012-10-25  9:57 ` Lee Jones [this message]
2012-10-25  9:57 ` [PATCH 6/8] ARM: ux500: Change the type of interrupt to something compatible Lee Jones
2012-10-25  9:57 ` [PATCH 7/8] ARM: ux500: CONFIG: Enable GPIO Regulators Lee Jones
2012-10-25  9:57 ` [PATCH 8/8] ARM: ux500: Convert DT_MACHINE_START to use SMP operations Lee Jones

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=1351159031-25391-6-git-send-email-lee.jones@linaro.org \
    --to=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).