From patchwork Sun Nov 17 11:04:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 21576 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A19BE20299 for ; Sun, 17 Nov 2013 11:05:14 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z12sf3843681yhz.7 for ; Sun, 17 Nov 2013 03:05:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=r2etBRuN7Zc3maznFu3AXMxa6ePXbjjiNJKJ6pPs/UE=; b=eCbukNedWxIOhEQl/+mg3ke/2p/QE9KWf38EYnazdR+PvO8YMbJC1tFpAuNAOjbyz9 z3sw/qyyGzDHyTzP9bFLFCOWvYYCRrgmHpUSS8vCgXS7RivAW3elS8KITzxlQL5VQMLY l3IhWJ/ptaPpQ8GxPfgYb+UJV9+wzQnBd2UNWH2P2oYpDVIW6fmd8fLXCIU6u9Or2Kog gDUgj0aC2riZuiPm+7skvyDWv02AIlzljYFjQjuieynMseBFqnMwYm023O0AjQFvNOWD woU9f28RwyhYoQUrrM4QyRw8Gg8FzwA80bY9BTzdFKzXNQBfuXoLpKaHFBMvTItOvVdv d0IA== X-Gm-Message-State: ALoCoQn8vKJWJ1pXL91ynfiHh3RMLsGYrt9Cvu67d//dabJ0qzkp5F+mNOgnfoQzEnsu10W/n3Nf X-Received: by 10.236.183.43 with SMTP id p31mr43075yhm.49.1384686314456; Sun, 17 Nov 2013 03:05:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.9 with SMTP id v9ls2242632qex.99.gmail; Sun, 17 Nov 2013 03:05:14 -0800 (PST) X-Received: by 10.58.46.18 with SMTP id r18mr10008275vem.4.1384686314342; Sun, 17 Nov 2013 03:05:14 -0800 (PST) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id gw7si5569292veb.76.2013.11.17.03.05.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Nov 2013 03:05:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.42; Received: by mail-vb0-f42.google.com with SMTP id p14so3958022vbm.29 for ; Sun, 17 Nov 2013 03:05:14 -0800 (PST) X-Received: by 10.52.157.232 with SMTP id wp8mr8281970vdb.4.1384686314277; Sun, 17 Nov 2013 03:05:14 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp140398vcz; Sun, 17 Nov 2013 03:05:13 -0800 (PST) X-Received: by 10.180.212.51 with SMTP id nh19mr12976839wic.52.1384686313517; Sun, 17 Nov 2013 03:05:13 -0800 (PST) Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by mx.google.com with ESMTPS id cf1si4647877wjc.30.2013.11.17.03.05.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Nov 2013 03:05:13 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.176 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=74.125.82.176; Received: by mail-we0-f176.google.com with SMTP id w62so5083077wes.21 for ; Sun, 17 Nov 2013 03:05:13 -0800 (PST) X-Received: by 10.194.240.197 with SMTP id wc5mr13118235wjc.23.1384686313098; Sun, 17 Nov 2013 03:05:13 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id fu1sm13156973wib.8.2013.11.17.03.05.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Nov 2013 03:05:12 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Lee Jones Cc: devicetree@vger.kernel.org, Linus Walleij Subject: [PATCH 20/21] ARM: ux500: move snowball LED pin control to device tree Date: Sun, 17 Nov 2013 12:04:09 +0100 Message-Id: <1384686250-10542-21-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1384686250-10542-1-git-send-email-linus.walleij@linaro.org> References: <1384686250-10542-1-git-send-email-linus.walleij@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This moves the Snowball LED pin config to the device tree. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-snowball.dts | 11 +++++++++++ arch/arm/mach-ux500/board-mop500-pins.c | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts index 744ab956059a..605188ba30cd 100644 --- a/arch/arm/boot/dts/ste-snowball.dts +++ b/arch/arm/boot/dts/ste-snowball.dts @@ -76,6 +76,8 @@ leds { compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&gpioled_snowball_mode>; used-led { label = "user_led"; gpios = <&gpio4 14 0x4>; @@ -414,6 +416,15 @@ }; }; + gpio_led { + gpioled_snowball_mode: gpioled_default { + snowball_cfg1 { + ste,pins = "GPIO142_C11"; + ste,config = <&gpio_out_hi>; + }; + + }; + }; }; mcde@a0350000 { diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c index 0e5d2684bc9a..aae9cfcfd56a 100644 --- a/arch/arm/mach-ux500/board-mop500-pins.c +++ b/arch/arm/mach-ux500/board-mop500-pins.c @@ -297,8 +297,6 @@ static struct pinctrl_map __initdata ab8505_pinmap[] = { }; static struct pinctrl_map __initdata snowball_pinmap[] = { - /* User LED */ - DB8500_PIN_HOG("GPIO142_C11", gpio_out_hi), /* Accelerometer/Magnetometer */ DB8500_PIN_HOG("GPIO163_C20", gpio_in_pu), /* ACCEL_IRQ1 */ DB8500_PIN_HOG("GPIO164_B21", gpio_in_pu), /* ACCEL_IRQ2 */