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: 14181 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 21D7623E57 for ; Mon, 21 Jan 2013 13:35:38 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 77128A192AF for ; Mon, 21 Jan 2013 13:35:37 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id d16so3326983vcd.26 for ; Mon, 21 Jan 2013 05:35:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=uag1CcUfItLnpU3TlzavctCT7ZKQv0mtOKsrmW4Xxk8=; b=RIAp1OPbWh9nq451zKxMqxPGXmtAFlaN/Co4SZQagwBnjUHok7nKimA0+mdrbtha04 NdfDeRq93+q6nuCiO1TPlrNmycnkanE/Anj76ZFRNOzFc/FGQHTvtOS6AGpSXJpqbNRO dqcuNBvfrYLnTx84bk3+iz9FFQSDDEY7H1DwnYTXpKX1TSaK/XevhY5D6Bzk1YUniCY5 tINydCWRNvN/JNjpWrLALqb2p+ViMwiyk997AqpeZbkxusgW/+GxLk84Q0gT/H2FBu6X fUeqSLaUFM0/CZloOZTFmtKuTg69P3Ey/paF6UiR0DOBRdPuRWeEUOVsYjG3oWMPfn8S 8+ow== X-Received: by 10.52.34.108 with SMTP id y12mr12912573vdi.8.1358775336923; Mon, 21 Jan 2013 05:35:36 -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.58.145.101 with SMTP id st5csp201421veb; Mon, 21 Jan 2013 05:35:33 -0800 (PST) X-Received: by 10.180.79.194 with SMTP id l2mr15575572wix.22.1358775332586; Mon, 21 Jan 2013 05:35:32 -0800 (PST) Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]) by mx.google.com with ESMTPS id a8si4883579wjy.90.2013.01.21.05.35.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jan 2013 05:35:32 -0800 (PST) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::22c is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c03::22c; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c03::22c 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-we0-f172.google.com with SMTP id r3so1666239wey.17 for ; Mon, 21 Jan 2013 05:35:32 -0800 (PST) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones 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: ALoCoQmaRPdlFTewxmVaE+T8xwJETVsOnw+x0fQvwBGeXLExFMfX47qdgTF1zOTxOfFwARixK1qp 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 --- 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"; + }; }; };