DTS for GPIO driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DTS for GPIO driver

961 次查看
justNow
Contributor I

Hello everyone.

I have a imx8mm and am try to enable the GPIO driver.

I found a pinCtrl infomation at the imx8mmrm.pdf.

I don't find a proper DT systax,  as follows is current but makes error as

"Label or path gpio_spimux not found"

&gpio_spimux {
compatible = "gpio-spimux";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_spimux>;
status = "okay";

gpiomux {
label = "gpio_spimux";
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;};
};‍‍‍‍‍‍‍‍

Can I have a proper DT syntax for GPIO9 as only output '0' and '1'

Thanks

0 项奖励
回复
1 回复

953 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Kim

 

one can look at explanations and gpio-hog demo provided on

https://community.nxp.com/t5/i-MX-Processors/how-does-it-control-the-GPIO-as-input-output-in-DTS/td-...

 

Best regards
igor

0 项奖励
回复