From patchwork Thu Nov 15 13:14:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1749171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id A3AAB3FC8A for ; Thu, 15 Nov 2012 13:16:52 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TYzHh-0007Uv-0o; Thu, 15 Nov 2012 13:15:09 +0000 Received: from mail-wg0-f49.google.com ([74.125.82.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TYzHT-0007Tm-J6 for linux-arm-kernel@lists.infradead.org; Thu, 15 Nov 2012 13:14:56 +0000 Received: by mail-wg0-f49.google.com with SMTP id gg4so544411wgb.18 for ; Thu, 15 Nov 2012 05:14:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=32MmESMz15MvRg2C+rNd7TAe/wgza1GG8lLaIs8AYuk=; b=eo3jmuEPOuRGl5An+t1YEASdKNFPoW0VtTK+YT0W8/KlnXrLBrLTfIGrEyTM67TzIX Y2owXTxvv5Ks/UBgox1k52GGEozrC56qkCojFncT8LI6LTUH7zIZYynr4N+sPGgx0Xmq gtiCRzVtHWBCw6kE/iEm4fVTPxDLUMMb+oom1WYkUKTeNl1MYejTOsqTwpDOiD8avd/5 +s5ZNNcLrgrzFiDj4ygqPpIiqkBuXmLgui6Dmi9TiQfq4dhmucra4FRrcNc5xlFIbd2t oY+0ylMxz+aQuE9+8j/QAG3eHMJqBxBllyYwyc6/H7Xex3t+pUYp2GLXYKvD+mhwo+cF mZ5g== Received: by 10.216.194.38 with SMTP id l38mr516049wen.80.1352985294267; Thu, 15 Nov 2012 05:14:54 -0800 (PST) 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 hv4sm27611347wib.0.2012.11.15.05.14.52 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Nov 2012 05:14:53 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: ux500: Move board specific GPIO info out to subordinate DTS files Date: Thu, 15 Nov 2012 13:14:48 +0000 Message-Id: <1352985288-29518-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352985288-29518-1-git-send-email-lee.jones@linaro.org> References: <1352985288-29518-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlCWxY8zNKnKP/5y74f0W7cCKfUOQNMOIGBTrRL3IjrBTnr8nrL2NSxKxFg1d3q+DsZmDQv X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121115_081455_896492_5DE99F8D X-CRM114-Status: GOOD ( 12.39 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org GPIO numbers for the newly created gpio-regulator will differ from board to board. Therefore it's not sensible to leave this information in the top level DTSI file. Let's move them out to the DTS files where they can correctly vary. Signed-off-by: Lee Jones Acked-by: Linus Walleij --- arch/arm/boot/dts/dbx5x0.dtsi | 2 -- arch/arm/boot/dts/hrefprev60.dts | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi index d8ba489..9f55363 100644 --- a/arch/arm/boot/dts/dbx5x0.dtsi +++ b/arch/arm/boot/dts/dbx5x0.dtsi @@ -638,8 +638,6 @@ regulator-name = "mmci-reg"; regulator-type = "voltage"; - gpios = <&tc3589x_gpio 18 0x4>; - gpio-enable = <&tc3589x_gpio 17 0x4>; states = <1800000 0x1 2900000 0x0>; diff --git a/arch/arm/boot/dts/hrefprev60.dts b/arch/arm/boot/dts/hrefprev60.dts index b398946..eec29c4 100644 --- a/arch/arm/boot/dts/hrefprev60.dts +++ b/arch/arm/boot/dts/hrefprev60.dts @@ -37,5 +37,12 @@ reset-gpio = <&tc3589x_gpio 13 0x4>; }; }; + + vmmci: regulator-gpio { + gpios = <&tc3589x_gpio 18 0x4>; + gpio-enable = <&tc3589x_gpio 17 0x4>; + + status = "okay"; + }; }; };