linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* controlling pinctrl GPIOs from userspace on x86
@ 2016-12-06 22:34 Gerd v. Egidy
  2017-01-24 13:08 ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Gerd v. Egidy @ 2016-12-06 22:34 UTC (permalink / raw)
  To: linux-gpio

Hi,

I have a x86 mainboard with a Intel Sunrise Point chipset. One function I want 
to control is tied to a specific GPIO on the chipset (GPP_E1 / SATAXPCIE_1). 
There seems to be a driver for this in the kernel: 
pinctrl/intel/pinctrl-sunrisepoint.c

The easiest solution for me would be if I could control this GPIO from 
userspace. 

I have seen examples where a pin from pinctrl is made available to the "gpio" 
driver with a devicetree setting on arm devices. But I have a x86 system with 
a classic BIOS, so no devicetree here to help me.

I have seen that there is pinconf which should give some info and control over 
pinctrl through debugfs, correct?. So I enabled CONFIG_PINCONF, but after 
loading the pinctrl-sunrisepoint module I could not see anything relating to 
this show up in /sys/kernel/debug.

Do I need to manually register the driver with the device somehow? I have 
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT345D:00 which seems to be 
what the driver is looking for.

Am I missing something?

Or is pinconf not going to help me? What to use instead?

Thanks.

Kind regards,

Gerd


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-25  9:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-06 22:34 controlling pinctrl GPIOs from userspace on x86 Gerd v. Egidy
2017-01-24 13:08 ` Linus Walleij
2017-01-24 23:25   ` Gerd v. Egidy
2017-01-25  9:25     ` Mika Westerberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).