From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3172CE005B9; Wed, 20 May 2015 06:05:48 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [85.31.212.143 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from fx803.security-mail.net (smtpout140.security-mail.net [85.31.212.143]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B2DADE0027F for ; Wed, 20 May 2015 06:05:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by fx803.security-mail.net (MTA) with SMTP id C42ED3B083A6 for ; Wed, 20 May 2015 15:05:39 +0200 (CEST) Received: from fx803 (localhost [127.0.0.1]) by fx803.security-mail.net (MTA) with ESMTP id B83D33B083A0; Wed, 20 May 2015 15:05:39 +0200 (CEST) X-Virus-Scanned: E-securemail x-secugrey: score=-10 x-secugrey: filter=out_default,id=20150520150532-33992-00009,score=-20 x-secugrey: score=-10 x-secugrey: filter=out_default,id=20150520150532-33992-00010,score=-20 Received: from cg92.security-mail.net (cg92.security-mail.net [172.16.248.92]) by fx803.security-mail.net (MTA) with ESMTPS id C9C343B0CA35; Wed, 20 May 2015 15:05:32 +0200 (CEST) Received: by cg92.security-mail.net (MTA, from userid 0) id BF639A74B; Wed, 20 May 2015 15:05:32 +0200 (CEST) Received: from [89.91.77.218] (account yannick.calmettes@analogway.com HELO [192.168.0.39]) by mails.optimails.com (CommuniGate Pro SMTP 6.0.11) with ESMTPSA id 1837974382; Wed, 20 May 2015 15:05:32 +0200 Message-ID: <555C853B.6070805@analogway.com> Date: Wed, 20 May 2015 14:59:39 +0200 From: Yannick Calmettes User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Fabio Estevam References: <555C80AE.2010806@analogway.com> In-Reply-To: X-Virus-Scanned: by Security-Mail Cc: "meta-freescale@yoctoproject.org" Subject: Re: Incorrect GPIO value with Kernel 3.14.28 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 13:05:48 -0000 Content-Type: multipart/alternative; boundary="------------060200080604090902000504" --------------060200080604090902000504 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Dear Fabio, I read the value through sysfs. In DTS file i have configured the GPIO with value 0x80000000 (no configuration normally) Yannick ** Le 20/05/2015 14:50, Fabio Estevam a écrit : > On Wed, May 20, 2015 at 9:40 AM, Yannick Calmettes > wrote: >> Dear all, >> >> I'm currently use Kernel 3.14.28 with release BSP_3.14.28-1.0.1_patch (on a >> IMx6 DualLite). When I read the value of a GPIO it give me the bus value >> instead of the pin value. >> For example when I read GPIO41 it returns me "0" or "512" (the pin is >> toggled every seconds), 512 corresponds to the bit 9 (41 - 32) of the bus. >> The GPIO value was correct with kernel 3.10.53. > Are you setting the SION bit in the pad configuration? > > Regards, > > Fabio Estevam > > > > --------------060200080604090902000504 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Dear Fabio,

I read the value through sysfs. In DTS file i have configured the GPIO with value 0x80000000 (no configuration normally)

Yannick

Le 20/05/2015 14:50, Fabio Estevam a écrit :
On Wed, May 20, 2015 at 9:40 AM, Yannick Calmettes
<yannick.calmettes@analogway.com> wrote:
Dear all,

I'm currently use Kernel 3.14.28 with release BSP_3.14.28-1.0.1_patch (on a
IMx6 DualLite). When I read the value of a GPIO it give me the bus value
instead of the pin value.
For example when I read GPIO41 it returns me "0" or "512" (the pin is
toggled every seconds), 512 corresponds to the bit 9 (41 - 32) of the bus.
The GPIO value was correct with kernel 3.10.53.
Are you setting the SION bit in the pad configuration?

Regards,

Fabio Estevam






 

--------------060200080604090902000504--