From patchwork Thu Oct 25 09:57:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12499 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4F75123F9B for ; Thu, 25 Oct 2012 09:57:31 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id F22B6A187BA for ; Thu, 25 Oct 2012 09:57:30 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so1107785iag.11 for ; Thu, 25 Oct 2012 02:57:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=WYHONmRyOKVUmh35pSp/XxFwl1eRgIgb5PxKxBtCtt8=; b=X5NZVST24NtX3lRp56rBvAsF5nV0Ddwtccbc0t2Mo0DJ9EHz82KIwOgG2hMpzQx3/U ouPzRz+AMqD87vl9d/bOX5zfn/h9H8BMI/Jgfh9GF8yp8fPJtslhHLFrWRP+5FVXlfGs kUiShtgVE/RRuqoHp5uC/7gKet37n9j4r0e4uQLTvBPQEVgKthuyllE9nHdujzjDakzQ tRjwnsk+hVvjGvN73DY7YOpQWuqa9sm0V1p8tRxr8Cd7qtH2QMzuT63EsRd6ABxkb54C eLrdQr/zf7Rf95MCIZ88Ic7zN7Yhz5q65yCka+VeWQms43Wsz0PifhqSW5weDtXyzvTw lXeg== Received: by 10.50.140.97 with SMTP id rf1mr3757772igb.70.1351159050713; Thu, 25 Oct 2012 02:57:30 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp14762igt; Thu, 25 Oct 2012 02:57:30 -0700 (PDT) Received: by 10.180.103.38 with SMTP id ft6mr12577980wib.9.1351159049611; Thu, 25 Oct 2012 02:57:29 -0700 (PDT) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx.google.com with ESMTPS id d8si3052961wix.14.2012.10.25.02.57.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 02:57:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.170 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.170; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.170 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f170.google.com with SMTP id hm2so5128387wib.1 for ; Thu, 25 Oct 2012 02:57:29 -0700 (PDT) Received: by 10.216.133.91 with SMTP id p69mr10476331wei.111.1351159049090; Thu, 25 Oct 2012 02:57:29 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id az2sm9125291wib.10.2012.10.25.02.57.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 02:57:28 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones Subject: [PATCH 5/8] ARM: ux500: Add node for the MMC GPIO regulator Date: Thu, 25 Oct 2012 10:57:08 +0100 Message-Id: <1351159031-25391-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351159031-25391-1-git-send-email-lee.jones@linaro.org> References: <1351159031-25391-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlwNTewZOHyd0/cOK2Q54ZlddasjzfP9KptkDtQOXGNfcoAGeqNA+WtNIuuRJYnaTwSvf2P 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 --- 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>; + }; }; };