Re: Regarding export of GPIOs

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

 



Hi Kent,
Thank you for your response.

I am observing a strange thing here.

The kernel logs for the hogged GPIO reports as:
[    0.251788] GPIO line <num> (name) hogged as output/high

The corresponding dts changes are:
>
> pNum {
> gpio-hog;
> gpios = <num GPIO_ACTIVE_LOW>;
> output-low;
> line-name = "name";
> };


Based on the kernel log, I could say that it is hogging the GPIO as expected.

But using the gpioinfo and lsgpio tools always show the direction as
"input" for the hogged GPIO.
gpioinfo <chipname>:
line  X:      "pX" "name"   input   active-low [used]

lsgpio -n <chipname>:
line X: "pX" "name" [kernel active-low]

I tried following the kernel by adding some logs, it seems to set the
correct direction.
I have really ran out of options here, any leads would be helpful.

Thanks



[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