From patchwork Wed Jan 20 15:33:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Shimizu X-Patchwork-Id: 8072581 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 05EE59F1CC for ; Wed, 20 Jan 2016 15:36:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02763204D1 for ; Wed, 20 Jan 2016 15:36:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 28BA0204AE for ; Wed, 20 Jan 2016 15:36:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLun8-0001LH-HB; Wed, 20 Jan 2016 15:35:26 +0000 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLumf-0008KG-8s for linux-arm-kernel@lists.infradead.org; Wed, 20 Jan 2016 15:35:00 +0000 Received: by mail-pa0-x242.google.com with SMTP id yy13so516889pab.1 for ; Wed, 20 Jan 2016 07:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nLYrjdK5Xh1Ql5g0ViMF1hnV8mNhsmIY3u2QsWy+9Pg=; b=WMjcdQQx74dw8G7/FY5MvbGeNlZqPTMTEH14Z+M16Xa83yYlUEGwP5tdJdSo9tMnEv ux3+ZAt1ymc9Eu2T2rv6iok58QwGfpidIUgRQ9KIvi+dJyt5MwY5UorlACjPWWzHyfAD DD2hFEVo3yl+NhsbCJFgPU19VEkee22uWxqtFoYw2wtVcQcI+vCjVPQRwzs8Hv6ZGisQ kNVyJrM5x2AdHcuHDVrDWlk160YBv6F+Mx0j9mg+knOmll2D0UqFbCcqty1feS2qSZwe fK2GsH6AO7tQ7Jlao21recmAAz7YHprxW6LzcbCnqnyp53wS+AFRI8D6hP4z3Wzem8Jx rxaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nLYrjdK5Xh1Ql5g0ViMF1hnV8mNhsmIY3u2QsWy+9Pg=; b=OEqaKJnP7GAVozk0ehjIATVrQodgVCPYdZ2a0ONoNy3M/rR7HE5Yi57EctafOBuiV9 u4S/UIUDhYJnWkgKleq4VAnyBGy2NxBlzXFw9OKG+3lg5fVAc9jpp5z+LGhEcJD7wyKz BTqiBc1CxMp7nXgfyegiuY+JSZ0Yq5vwstFX0X3FkVImX9/dXxWzNnbdp3DxO/9zBJGO PLNhPzLLrg1kjGhjJk3KR9NqggJISWjy9ZIFkoFiIzdnh0urCloWOhcrKSJFUTDbi9h5 dlwZ0iGgeIV7UYX6ELJ6vUlEpDb0z7lzeVZIUwojPnTSPxT+4gKPjAt9XkVovLhD5LAg Dd/w== X-Gm-Message-State: ALoCoQl+d9s1trsvNs3yBHc2Dc/aQaYN6KCCZL5ELMZtLFixswMvSAG2LZU/GdOZSSOUYHzLtTgXfG3FofVj4YEHLhw1y919XA== X-Received: by 10.66.142.73 with SMTP id ru9mr53173757pab.121.1453304076471; Wed, 20 Jan 2016 07:34:36 -0800 (PST) Received: from FlatStation.localet.com. (ai126185093166.16.access-internet.ne.jp. [126.185.93.166]) by smtp.gmail.com with ESMTPSA id yl1sm49936474pac.35.2016.01.20.07.34.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 07:34:36 -0800 (PST) From: Roger Shimizu To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH v2 2/7] ARM: dts: kirkwood: gpio pin fixes for linkstation ls-wvl/vl Date: Thu, 21 Jan 2016 00:33:53 +0900 Message-Id: <1453304038-28345-3-git-send-email-rogershimizu@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1453304038-28345-1-git-send-email-rogershimizu@gmail.com> References: <1453211342-25214-1-git-send-email-rogershimizu@gmail.com> <1453304038-28345-1-git-send-email-rogershimizu@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160120_073457_433248_8B44175E X-CRM114-Status: GOOD ( 12.03 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Roger Shimizu , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For kirkwood, gpio pins starts from 32 are in the 2nd bank, so it should be converted to "gpio1 " in dts file. e.g. gpio 40 should be "gpio1 8" The pin/bank issue was found when discussing Debian Bug #810894 [https://bugs.debian.org/810894#47] Fixes: c43379e150aa ("ARM: dts: add buffalo linkstation ls-wvl/vl") Reported-by: Arnaud Patard (Rtp) Signed-off-by: Roger Shimizu --- arch/arm/boot/dts/kirkwood-lswvl.dts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood-lswvl.dts b/arch/arm/boot/dts/kirkwood-lswvl.dts index 09eed3cea0af..28fd9abd7a57 100644 --- a/arch/arm/boot/dts/kirkwood-lswvl.dts +++ b/arch/arm/boot/dts/kirkwood-lswvl.dts @@ -1,7 +1,8 @@ /* * Device Tree file for Buffalo Linkstation LS-WVL/VL * - * Copyright (C) 2015, rogershimizu@gmail.com + * Copyright (C) 2015, 2016 + * Roger Shimizu * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -156,21 +157,21 @@ button@1 { label = "Function Button"; linux,code = ; - gpios = <&gpio0 45 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; }; button@2 { label = "Power-on Switch"; linux,code = ; linux,input-type = <5>; - gpios = <&gpio0 46 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; button@3 { label = "Power-auto Switch"; linux,code = ; linux,input-type = <5>; - gpios = <&gpio0 47 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; @@ -185,38 +186,38 @@ led@1 { label = "lswvl:red:alarm"; - gpios = <&gpio0 36 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; led@2 { label = "lswvl:red:func"; - gpios = <&gpio0 37 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; led@3 { label = "lswvl:amber:info"; - gpios = <&gpio0 38 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; }; led@4 { label = "lswvl:blue:func"; - gpios = <&gpio0 39 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; }; led@5 { label = "lswvl:blue:power"; - gpios = <&gpio0 40 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; default-state = "keep"; }; led@6 { label = "lswvl:red:hdderr0"; - gpios = <&gpio0 34 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; led@7 { label = "lswvl:red:hdderr1"; - gpios = <&gpio0 35 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; }; @@ -233,7 +234,7 @@ 3250 1 5000 0>; - alarm-gpios = <&gpio0 43 GPIO_ACTIVE_HIGH>; + alarm-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; }; restart_poweroff {