DTS for GPIO driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DTS for GPIO driver

1,027件の閲覧回数
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 返信

1,019件の閲覧回数
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 件の賞賛
返信