页次: 1
@metro
感谢提醒,在suniv-f1c100s-licheepi-nano.dts里面添加下面的设备节点就可是使用gpio_requist()了
pinctrl: pinctrl@1c20800 {
compatible = "allwinner,sun4i-a10-pinctrl";
reg = <0x01c20800 0x2c4>;
#address-cells = <1>;
#size-cells = <1>;
pa: pa {
gpio-controller;
#gpio-cells = <2>;
};
pb: pb {
gpio-controller;
#gpio-cells = <2>;
};
pc: pc {
gpio-controller;
#gpio-cells = <2>;
};
pd: pd {
gpio-controller;
#gpio-cells = <2>;
};
pe: pe {
gpio-controller;
#gpio-cells = <2>;
};
pf: pf {
gpio-controller;
#gpio-cells = <2>;
};
};
引用:https://www.freesion.com/article/368464004/
页次: 1