Sorry the kernel log was: [ 0.251788] GPIO line <num> (name) hogged as output/low Regards. On Tue, Aug 31, 2021 at 8:35 PM Riz <mdrizwan827@xxxxxxxxx> wrote: > > 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