controlling pinctrl GPIOs from userspace on x86

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux