DTS for GPIO driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DTS for GPIO driver

339 Views
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 Kudos
1 Reply

331 Views
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 Kudos