From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932538AbcEXJhd (ORCPT ); Tue, 24 May 2016 05:37:33 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:35640 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932269AbcEXJh2 (ORCPT ); Tue, 24 May 2016 05:37:28 -0400 Subject: Re: [PATCH v2 1/2] pinctrl: Add Oxford Semiconductor OXNAS pinctrl and gpio driver To: Linus Walleij References: <1462952062-5316-1-git-send-email-narmstrong@baylibre.com> <1462952062-5316-2-git-send-email-narmstrong@baylibre.com> Cc: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" From: Neil Armstrong Organization: Baylibre Message-ID: <574420CB.30908@baylibre.com> Date: Tue, 24 May 2016 11:37:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/24/2016 11:35 AM, Linus Walleij wrote: > On Wed, May 11, 2016 at 9:34 AM, Neil Armstrong wrote: > >> Add pinctrl and gpio control support to Oxford Semiconductor OXNAS SoC Family. >> This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins. >> >> Signed-off-by: Neil Armstrong > > I tried implementing a .get_direction() callback for the Oxnas GPIO > (this is good to have, for debugfs and for the new userspace ABI). > > However: > >> +/* GPIO Registers */ >> +#define INPUT_VALUE 0x00 >> +#define IRQ_PENDING 0x0c >> +#define OUTPUT_SET 0x14 >> +#define OUTPUT_CLEAR 0x18 >> +#define OUTPUT_EN_SET 0x1c >> +#define OUTPUT_EN_CLEAR 0x20 >> +#define RE_IRQ_ENABLE 0x28 >> +#define FE_IRQ_ENABLE 0x2c > > No pure OUTPUT_EN register to read the direction from? > Or is it one of the undocumented ones? I'm not sure it was documented, I can have a look further. > > Could you take a stab at implementing .get_direction() and > send a patch? I can have a look ASAP. Neil > > Yours, > Linus Walleij >