From patchwork Thu Jul 24 13:38:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Prchal X-Patchwork-Id: 4618241 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E3F779F295 for ; Thu, 24 Jul 2014 13:40:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BCC6201D5 for ; Thu, 24 Jul 2014 13:40:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 41CCE20155 for ; Thu, 24 Jul 2014 13:40:58 +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 1XAJEX-0001a2-Kc; Thu, 24 Jul 2014 13:38:57 +0000 Received: from router.aksignal.cz ([188.175.113.102]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XAJER-0001Uo-Hf for linux-arm-kernel@lists.infradead.org; Thu, 24 Jul 2014 13:38:54 +0000 Received: from localhost (localhost [127.0.0.1]) by router.aksignal.cz (Postfix) with ESMTP id 69D9854C002; Thu, 24 Jul 2014 15:38:26 +0200 (CEST) X-Virus-Scanned: by amavisd-new at aksignal.cz Received: from router.aksignal.cz ([127.0.0.1]) by localhost (router.aksignal.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2tFJcKVHD6ik; Thu, 24 Jul 2014 15:38:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by router.aksignal.cz (Postfix) with ESMTP id AEC5654C003; Thu, 24 Jul 2014 15:38:24 +0200 (CEST) Received: from [10.0.1.101] (unknown [10.0.1.101]) by router.aksignal.cz (Postfix) with ESMTP id 8292A54C002; Thu, 24 Jul 2014 15:38:24 +0200 (CEST) Message-ID: <53D10C50.50305@aksignal.cz> Date: Thu, 24 Jul 2014 15:38:24 +0200 From: =?UTF-8?B?SmnFmcOtIFByY2hhbA==?= Organization: AK signal Brno User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Bo Shen , nicolas.ferre@atmel.com, boris.brezillon@free-electrons.com Subject: [PATCH] ARM: at91: at91sam9x5: sets NPCS0 (PA14) back to GPIO References: <1405074175-22444-1-git-send-email-voice.shen@atmel.com> In-Reply-To: <1405074175-22444-1-git-send-email-voice.shen@atmel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140724_063851_782934_E1B5C645 X-CRM114-Status: UNSURE ( 4.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: jiri.prchal@aksignal.cz Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 After ROMBOOT tries boot from flash on SPI0 NPCS0, this NPCS0 (PA14) remains set to PERIPH_A. Because of that, this pin is unusable to something else. This patch sets it back to GPIO. Signed-off-by: Jiri Prchal --- a/linux-3.16-rc6/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/linux-3.16-rc6/arch/arm/boot/dts/at91sam9x5.dtsi @@ -624,7 +624,8 @@ atmel,pins = ; /* PA13 periph A SPI0_SPCK pin */ + AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA13 periph A SPI0_SPCK pin */ + AT91_PIOA 14 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* set from ROMBOOT to periph A */ }; };