Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932617AbaGYI7k (ORCPT ); Fri, 25 Jul 2014 04:59:40 -0400 Received: from [188.175.113.102] ([188.175.113.102]:56033 "EHLO router.aksignal.cz" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1760010AbaGYI7h (ORCPT ); Fri, 25 Jul 2014 04:59:37 -0400 Message-ID: <53D21C57.3010805@aksignal.cz> Date: Fri, 25 Jul 2014 10:59:03 +0200 From: =?UTF-8?B?SmnFmcOtIFByY2hhbA==?= Reply-To: jiri.prchal@aksignal.cz 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: Alexandre Belloni CC: Boris BREZILLON , devicetree@vger.kernel.org, nicolas.ferre@atmel.com, linux-arm-kernel@lists.infradead.org, Bo Shen , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: at91: at91sam9x5: sets NPCS0 (PA14) back to GPIO References: <1405074175-22444-1-git-send-email-voice.shen@atmel.com> <53D10C50.50305@aksignal.cz> <20140724162645.4e19c26c@bbrezillon> <53D12103.3020103@aksignal.cz> <20140724175848.44f5da10@bbrezillon> <53D1F5D0.1080006@aksignal.cz> <20140725083053.GD9532@piout.net> <53D2174B.4020403@aksignal.cz> <20140725085436.GF9532@piout.net> In-Reply-To: <20140725085436.GF9532@piout.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne 25.7.2014 v 10:54 Alexandre Belloni napsal(a): > On 25/07/2014 at 10:37:31 +0200, Jiří Prchal wrote : >> >> >> Dne 25.7.2014 v 10:30 Alexandre Belloni napsal(a): >>> Hi, >>> >>> On 25/07/2014 at 08:14:40 +0200, Jiří Prchal wrote : >>>> I'm using custom board. My spi node: >>>> spi0: spi@f0000000 { >>> >>> You should override the pinctrl here as you are using gpios for the cs. >>> pinctrl-0 = <&pinctrl_spi0_custom>; >>> >>>> status = "okay"; >>>> cs-gpios = <&pioA 23 0 >>>> &pioA 22 0 >>>> &pioC 29 0 >>>> &pioA 14 0>; >>>> >>> >>> pinctrl@fffff400 { >>> spi0 { >>> pinctrl_spi0_custom: spi0-custom { >>> atmel,pins = >>> , >>> , >>> , >>> ; >>> }; >>> }; >>> }; >>> >> Of course, it's the way, but in all other drivers, for example LEDS, >> it's not needed. And in other way, if I will not use PA14 at all, >> the pin will goes down every spi transfer. > > You must not assumed that the pins are muxed to their default state > which is gpio and you should set the pinctrl accordingly for each > device. > > If you don't use PA14 at all, then you don't really care about its > state... Yes and no, what about on board is populated some chip on PA14, but for some reason at this time I don't need it and not defined in DT? > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/