From patchwork Mon Jan 21 13:35:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 2012461 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 C8A473FDD2 for ; Mon, 21 Jan 2013 13:41:09 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TxHXF-0007Hh-RR; Mon, 21 Jan 2013 13:35:37 +0000 Received: from mail-wg0-f48.google.com ([74.125.82.48]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TxHXC-0007Gm-Dw for linux-arm-kernel@lists.infradead.org; Mon, 21 Jan 2013 13:35:34 +0000 Received: by mail-wg0-f48.google.com with SMTP id 16so408408wgi.15 for ; Mon, 21 Jan 2013 05:35:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=uag1CcUfItLnpU3TlzavctCT7ZKQv0mtOKsrmW4Xxk8=; b=LWcl7hOWuqhbzJP8fJLmLqSdQMLcxuEyz9Z2T/Nusqy5Ub8XndcUrbNQ3sNQzP+iCA tY+sslOY8TmMqw+Ad4BoEO8EFsoAuG+EnenjzEM3JAK6Dr0Tui/cMUwtDKKgzklzLYJT 25b26FP3WTEXuL1V5FO4RjHLHV781ygbg5TOdapnzkEONnDlQSz7C22VNS1kxIi65+nv AvkZCTnf9cnN4617AJq/8lQ22Gvanpq8eu3ucqRm/HFR4Htr1MbQa+HaOqYAc9XsV+92 CgMnTd881qW0xl/JNxrLqexpJAW1nBF4as34z5+HKTbuEFVv8UNj/dLLaF7XW0QHNmaa Pahw== X-Received: by 10.194.71.244 with SMTP id y20mr26376374wju.19.1358775328922; Mon, 21 Jan 2013 05:35:28 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id p3sm16894039wic.8.2013.01.21.05.35.26 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jan 2013 05:35:27 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] ARM: ux500: Enable Snowball's GPIO controlled Ethernet regulator in DT Date: Mon, 21 Jan 2013 13:35:23 +0000 Message-Id: <1358775323-8155-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmxuSE5KQPz/BeM9mN3aAh79k2M94fOpcpFSy7It8zwDwi8MQ+haQKf7JrRly8/rrioter6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130121_083534_556015_8C7547E9 X-CRM114-Status: GOOD ( 10.50 ) 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.48 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 The Snowball Board's Ethernet chip is configured in a slightly non-standard way. Its SoC has an address space usually reserved for a NOR-flash device. However, on the Snowball, that external bus is populated by the SMSC9115 Ethernet chip. So, to power on the Ethernet chip, we have to enable the GPIO controlled regulator which usually controls the NOR-flash. In this patch we inform the Snowball's Device Tree which GPIO is used to operate it. Signed-off-by: Lee Jones Acked-by: Linus Walleij --- arch/arm/boot/dts/snowball.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/snowball.dts b/arch/arm/boot/dts/snowball.dts index 27f31a5..4733a96 100644 --- a/arch/arm/boot/dts/snowball.dts +++ b/arch/arm/boot/dts/snowball.dts @@ -134,6 +134,7 @@ reg = <0 0x10000>; interrupts = <12 0x1>; interrupt-parent = <&gpio4>; + vdd33a-supply = <&en_3v3_reg>; vddvario-supply = <&db8500_vape_reg>; @@ -153,6 +154,7 @@ bus-width = <4>; mmc-cap-mmc-highspeed; vmmc-supply = <&ab8500_ldo_aux3_reg>; + vqmmc-supply = <&vmmci>; cd-gpios = <&gpio6 26 0x4>; // 218 cd-inverted; @@ -346,5 +348,12 @@ }; }; }; + + vmmci: regulator-gpio { + gpios = <&gpio7 4 0x4>; // 228 + enable-gpio = <&gpio6 25 0x4>; // 217 + + status = "okay"; + }; }; };