From patchwork Thu May 17 13:45:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8742 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 D4EA523E23 for ; Thu, 17 May 2012 13:46:29 +0000 (UTC) Received: from mail-qc0-f180.google.com (mail-qc0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id A7A75A186AA for ; Thu, 17 May 2012 13:46:29 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id v28so1485217qcm.11 for ; Thu, 17 May 2012 06:46:29 -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=5KQcwt3XeJXWAs4s3TXdCay5VgSIZcLrAtlHUGWE2QE=; b=RZqImN4d+tVatlFdYZHOfyXq6E5s4gs76oQh6av17KRal1h9z8fOBu8LfThSPvwvqA SrlxHLsgLMpi7tp/B5rkf/BVCHCMlNWyX3orppPNA7WBi81u1t/5z2bFT/xrgz/3qt1b 109sTnPxVV5/j43EhXqWgaWqsCvG5iUAgncx/lIguA7eGdCnXWUUEdCLeZp71YTkJxfe FunLiCnI0W7SaFP2NVlnHA6O3qMfYacTMk2/4TKzN+oM+BSd0biooGNotE0AQpvEO2Eh yr/0O+VfAn8s4TVdSdCTaIdpyjiChrnqi/3mDHkzlLqQxhAimG033Xan1CDH+pt5ZTqe BAow== Received: by 10.50.222.202 with SMTP id qo10mr13609039igc.0.1337262389110; Thu, 17 May 2012 06:46:29 -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.35.72 with SMTP id o8csp29020ibd; Thu, 17 May 2012 06:46:28 -0700 (PDT) Received: by 10.180.79.72 with SMTP id h8mr51361768wix.1.1337262387446; Thu, 17 May 2012 06:46:27 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id j10si7422177wed.69.2012.05.17.06.46.26 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 06:46:27 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 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-wg0-f50.google.com with SMTP id ds11so1887207wgb.31 for ; Thu, 17 May 2012 06:46:26 -0700 (PDT) Received: by 10.180.85.129 with SMTP id h1mr18575919wiz.2.1337262386868; Thu, 17 May 2012 06:46:26 -0700 (PDT) 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 h8sm21166277wix.4.2012.05.17.06.46.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 06:46:26 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, broonie@opensource.wolfsonmicro.com, sameo@linux.intel.com Cc: Lee Jones Subject: [PATCH 05/18] ARM: ux500: Enable the user LED on Snowball via Device Tree Date: Thu, 17 May 2012 14:45:10 +0100 Message-Id: <1337262323-27692-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1337262323-27692-1-git-send-email-lee.jones@linaro.org> References: <1337262323-27692-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQk4hZ10Eu5zBjf0YH7ZUceZ0dwF/b+PAOvornmpPdmC5XAdWtkg0Hw1+iFscjw3AVHcSCSB 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. Acked-by: Linus Walleij 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 b8331fe..433045d 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -600,7 +600,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, }; @@ -814,7 +813,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