From patchwork Fri May 4 18:23:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8404 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 9FA2323EAB for ; Fri, 4 May 2012 18:23:57 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 6F6D3A1886D for ; Fri, 4 May 2012 18:23:57 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so3849459yhp.11 for ; Fri, 04 May 2012 11:23:57 -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=6nafTZ+zlj9vbIpoXOUw3/9+KljdbpPJ/STn9cgkBp4=; b=mB4LGCFoyrXvrEJJbJGcqE59CtZBkWNXBsfl2JX05RwIOP4qN0bxtEdJRX8iJ41+4e Np04YH3jfYIQkakMnY7k4sTsq+joYBLIMFsvezJUFiJLqMrBYITUUyrYgqKbAChO1wSY 5M8AS5TPe+VRxTrgGFvpYS9FAYOJ84DxaUj9Rc1RWSTpZxt7p3WzqwDC4EUJ3IQFWT3L BSySBH8ntm2T8+MmGi+AAREmb4XkvirXTkU2j7zwYkGXjT1LoZ0fgd/4JUjOMy92ku9h +cgxHKx2izJ4Lb5s16+FAqo4M5DVckUyUpadtcUXBWDZ7X1MohDwS8m2Sg81Xh6HN+gG Sblg== Received: by 10.50.10.225 with SMTP id l1mr3772152igb.1.1336155837096; Fri, 04 May 2012 11:23:57 -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.231.137.198 with SMTP id x6csp106262ibt; Fri, 4 May 2012 11:23:56 -0700 (PDT) Received: by 10.181.12.82 with SMTP id eo18mr15425254wid.2.1336155835961; Fri, 04 May 2012 11:23:55 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id ct5si7077935wib.30.2012.05.04.11.23.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 May 2012 11:23:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.178 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-f178.google.com with SMTP id hr7so1358670wib.13 for ; Fri, 04 May 2012 11:23:55 -0700 (PDT) Received: by 10.180.101.136 with SMTP id fg8mr15309508wib.4.1336155835525; Fri, 04 May 2012 11:23:55 -0700 (PDT) Received: from localhost.localdomain ([89.192.128.60]) by mx.google.com with ESMTPS id fn2sm17590123wib.0.2012.05.04.11.23.53 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 May 2012 11:23:54 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, ben-linux@fluff.org, linux-i2c@vger.kernel.org, broonie@opensource.wolfsonmicro.com, sameo@linux.intel.com, Lee Jones Subject: [PATCH 05/15] ARM: ux500: Enable the user LED on Snowball via Device Tree Date: Fri, 4 May 2012 19:23:15 +0100 Message-Id: <1336155805-18554-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1336155805-18554-1-git-send-email-lee.jones@linaro.org> References: <1336155805-18554-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnFqKvE05arl+irID/E8JWg8YNpdvK2We0pBBj01nmD8+VX8HSB4K7b59i0jXt0hYGZow8V This patch enables and illuminates the user_led on the Snowball low-cost development board using DT. It also removes initialisation carried out from platform code. Signed-off-by: Lee Jones --- arch/arm/boot/dts/snowball.dts | 1 + arch/arm/mach-ux500/board-mop500.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/snowball.dts b/arch/arm/boot/dts/snowball.dts index 56f8a76..579c304 100644 --- a/arch/arm/boot/dts/snowball.dts +++ b/arch/arm/boot/dts/snowball.dts @@ -67,6 +67,7 @@ used-led { label = "user_led"; gpios = <&gpio4 14 0x4>; + default-state = "on"; }; }; diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 4b847cb..7810334 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -579,7 +579,6 @@ static struct platform_device *snowball_platform_devs[] __initdata = { }; static struct platform_device *snowball_of_platform_devs[] __initdata = { - &snowball_led_dev, &snowball_key_dev, &ab8500_device, }; @@ -783,7 +782,7 @@ static void __init u8500_init_machine(void) /* * Devices to be DT:ed: - * snowball_led_dev = todo + * snowball_led_dev = done * snowball_key_dev = todo * snowball_sbnet_dev = done * ab8500_device = todo