cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,015 Views
Registered: ‎02-08-2017

error from gpiod_get function

Jump to solution

I am trying to use gpiod function to control my gpio controller.

 

I have defined my gpio device tree like that

 

gpioInDT.PNG

 

and defined a driver with probe function like that

 

gpioDriverProb.PNG

 

However I am not able to get positive response from gpiod_get function.

 

gpiodFailedResponse.PNG

 

Can anyone please advise what is wrong or why it is not able to recognize my gpios.

 

Thanks in Advance

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
1,172 Views
Registered: ‎02-08-2017

I got it, the GPIO pin has to be dealt as a special node. So it should be mentioned in dts file like that

 

special_node.PNG

View solution in original post

0 Kudos
2 Replies
Highlighted
Explorer
Explorer
969 Views
Registered: ‎02-08-2017

Any Help Please

0 Kudos
Highlighted
Explorer
Explorer
1,173 Views
Registered: ‎02-08-2017

I got it, the GPIO pin has to be dealt as a special node. So it should be mentioned in dts file like that

 

special_node.PNG

View solution in original post

0 Kudos