Device tree i.mx8

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

Device tree i.mx8

404 Views
efio
Contributor I

Hi,

 

I'm using i.MX8 evk - imx8mn and I want to define a gpio as input interrupt for gpio3 controller.

the original node of gpio3 is:

gpio3: gpio@30220000 { 

compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio";

reg = <0x30220000 0x10000>;

interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,

<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;

clocks = <&clk IMX8MN_CLK_GPIO3_ROOT>;

gpio-controller; #gpio-cells = <2>;

interrupt-controller;

#interrupt-cells = <2>;

gpio-ranges = <&iomuxc 0 61 26>;

};

The pin I would like to use is gpio24: MX8MN_IOMUXC_SAI5_RXD3_GPIO3_IO24, and I don't know how to add it.

Can you please help?

Thank you,

0 Kudos
2 Replies

360 Views
efio
Contributor I

Hi, 

Thank you, but I doesn't help - or maybe I'm missing something?

I'm looking for the the DT text I need to add:

e.g.

&gpio3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ac13_tx_trig>;
};
pinctrl_ac13_tx_trig: gpiogrp {
     fsl,pins = <
           MX8MN_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x116
>;
};
0 Kudos

382 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to iMX8MN Reference Manual in section Chapter 8 Chip IO and Pinmux > General Purpose Input/Output (GPIO) > Interrupt Control Unit.

0 Kudos