Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1406000

Re: [PATCH v2 1/2] pinctrl: Add Oxford Semiconductor OXNAS pinctrl and gpio driver

From Neil Armstrong <narmstrong@baylibre.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] pinctrl: Add Oxford Semiconductor OXNAS pinctrl and gpio driver
Date 2016-05-24 11:40 +0200
Message-ID <rCgYF-1um-9@gated-at.bofh.it> (permalink)
References <rxwUq-3wW-7@gated-at.bofh.it> <rxwUq-3wW-15@gated-at.bofh.it> <rCgYF-1um-11@gated-at.bofh.it>
Organization Baylibre

Show all headers | View raw


On 05/24/2016 11:35 AM, Linus Walleij wrote:
> On Wed, May 11, 2016 at 9:34 AM, Neil Armstrong <narmstrong@baylibre.com> 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 <narmstrong@baylibre.com>
> 
> 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
> 

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v2 1/2] pinctrl: Add Oxford Semiconductor OXNAS pinctrl  and gpio driver Neil Armstrong <narmstrong@baylibre.com> - 2016-05-24 11:40 +0200

csiph-web