Jump to content

gpio para for kernel 4.x


Recommended Posts

Hello,

 

I'm building a device driver which controls gpio pins.

 

When I developed one in the kernel 3.x, I could get the proper gpio pin number from script.fex(converted from script.bin in /boot/bin/ folder) For example, if the pin I'm using is PB03, I was able to use 3 to control that pin in device driver program.

 

gpio_pin_1 = port:PH10<1><default><default><0>
gpio_pin_2 = port:PH20<1><default><default><0>
gpio_pin_3 = port:PB03<0><default><default><default>

 

However, from kernel 4.x, script.bin file is not used anymore. Instead of this, there is a dtb file, but I have no idea where I can get the relevant number of a certain pin....

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines