lkml.org 
[lkml]   [2019]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] qcom: spmi-gpio: add support for hierarchical IRQ chip
On Sat, Jan 05, 2019 at 07:08:44AM -0500, Brian Masney wrote:
> > I also seem to recall that GPIO numbering starts from 1 instead of
> > 0, so please keep that in mind.
>
> I'm using the pinctrl numbering, which is zero based.
>
> / # head /sys/kernel/debug/pinctrl/fc4cf000.spmi\:pm8941@0\:gpios@c000/pins
> registered pins: 36
> pin 0 (gpio1)
> pin 1 (gpio2)
> pin 2 (gpio3)
> pin 3 (gpio4)
> pin 4 (gpio5)
> pin 5 (gpio6)
> pin 6 (gpio7)
> pin 7 (gpio8)
> pin 8 (gpio9)

After more thought: the pin numbering from pinctrl is an implementation
detail that device tree should not be aware of. This needs to be the
GPIO pin number. I'll correct this in v2.

Brian

\
 
 \ /
  Last update: 2019-01-05 13:52    [W:0.037 / U:2.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site