Home > other >  410 c GPIO configuration
410 c GPIO configuration

Time:10-01

As the topic, how to configure GPIO in kernel?

CodePudding user response:

This range is a little big, I would simply say the normal gpio configuration, you can check it on the Internet, as long as it is basically the same of the same platform,
First said the gpio configuration is mainly in the device tree, 410 c is used mainly apq8016 - SBC. Dtsi, msm8916. Dtsi, msm8916 - pinctrl. Dtsi these files, for example:
M {
Compatible="ha";
Interrupt - parent=& lt; & Msm_gpio & gt;;
Interrupts=& lt; 0 0 13 & gt;;
Pins1=& lt; & Msm_gpio 13 0 & gt;;
Pins2=& lt; & Msm_gpio 115 & gt;;
};

This is to use the gpio13 gpio115 and gpio13 used as interrupt legs, then drive and there will be a corresponding function to parse device tree, it is also need to pay attention to, is whether you want to use the gpio is reuse, appear likely to drive the situation of the application is not successful, it will check,

CodePudding user response:

According to the specific electrical information to configure it up and down, this combination have different level in the configuration document corresponding to different functions,
  • Related