Kimberly Posted October 26, 2016 Share Posted October 26, 2016 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 More sharing options...
Igor Posted October 27, 2016 Share Posted October 27, 2016 Check this: http://linux-sunxi.org/GPIO Link to comment Share on other sites More sharing options...
Recommended Posts