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: 12869 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 ACAF723DFE for ; Thu, 15 Nov 2012 13:14:56 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 645A0A186EA for ; Thu, 15 Nov 2012 13:14:56 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so2045531iej.11 for ; Thu, 15 Nov 2012 05:14:55 -0800 (PST) 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=32MmESMz15MvRg2C+rNd7TAe/wgza1GG8lLaIs8AYuk=; b=k61CzrHjGM3ZKbxOilJbUZ6fBRIHFw70B4FE6R7EB/GMDifO4IHuUTa8h5ldmQyqWH 6VgAw5HmnMjHB7s62G/G7BYgWgZSYs9gjOwlz9xOADITOr5aJNHWu7yry0cI/4SP/Uh2 ElsENSUR9GvEa1JtoZRt84GFNhKdTllkCvlWAAuOb82JMXtmBfIWcdNaxYbK515CrXwZ dYqoS0jvemgfspZY+bp+n4O4p4C4f9jQ8ajQ5q6ldG92K1L2lOvvldm6vJ6P3IxnE5nZ +i01eDK6BPRLfBdzZE8X0J/CC7H4tf4JTKZ3PZ4N+eIYzxD0a7pmzJGu+Klx80jng+uW CJag== Received: by 10.50.173.34 with SMTP id bh2mr759510igc.70.1352985295843; Thu, 15 Nov 2012 05:14:55 -0800 (PST) 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 n20csp822749igt; Thu, 15 Nov 2012 05:14:55 -0800 (PST) Received: by 10.180.92.71 with SMTP id ck7mr2173230wib.20.1352985294850; Thu, 15 Nov 2012 05:14:54 -0800 (PST) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx.google.com with ESMTPS id f38si8270592wep.17.2012.11.15.05.14.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Nov 2012 05:14:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.174 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.174; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.174 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-f174.google.com with SMTP id hq12so1126847wib.3 for ; Thu, 15 Nov 2012 05:14:54 -0800 (PST) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones 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: ALoCoQmL9J1IN59tGpor7hOi19vcUV1Yg1fWIuGMA5q0YDbY08tXkhLpomFf8HQu2YAa552jG+z3 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 --- 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"; + }; }; };