lkml.org 
[lkml]   [2020]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] pinctrl: add helper to expose pinctrl state in debugfs
On Tue, Dec 15, 2020 at 09:39:18PM +0200, Andy Shevchenko wrote:
> On Tue, Dec 15, 2020 at 9:36 PM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> > On Mon, Dec 14, 2020 at 11:44 PM Drew Fustini <drew@beagleboard.org> wrote:
> > > On Mon, Dec 14, 2020 at 07:55:12PM +0200, Andy Shevchenko wrote:
>
> ...
>
> > > With regards to parent directory, I did discover there is
> > > debugfs_lookup(), so I can get the dentry for "pinctrl" and create new
> > > subdirectory inside of it. This is the structure now:
> > >
> > > /sys/kernel/debug/pinctrl/pinctrl_state/ocp:P2_35_pinmux/state
> > > /sys/kernel/debug/pinctrl/pinctrl_state/ocp:P2_34_pinmux/state
> > > /sys/kernel/debug/pinctrl/pinctrl_state/ocp:P2_33_pinmux/state
> > > /sys/kernel/debug/pinctrl/pinctrl_state/ocp:P2_32_pinmux/state
> > > etc..
>
> Missed part to comment.
>
> I was talking about
>
> /sys/kernel/debug/pinctrl/<$PINCTRL>/mux/<$PIN> (maybe folder, maybe node)

Thanks for the example.

What would the value be "<$PINCTRL>"? The name of the driver?

The "ocp:Px_yy_pinmux" directory name comes from dev_name(dev). Is that
the name you were referencing in "<$PIN>"?


thanks,
drew

\
 
 \ /
  Last update: 2020-12-15 23:44    [W:0.058 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site