How to enable i2c1 in device tree for vybrid vf50 (interrupts)

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

How to enable i2c1 in device tree for vybrid vf50 (interrupts)

Jump to solution
1,263 Views
sandrostiller
Contributor I

Hello,

I'm trying to enable the 2nd i2c in the device tree for my linux kernel.

I took the entries for the i2c0 and modified them with this result:

i2c1: i2c@40067000 {

  #address-cells = <1>;

  #size-cells = <0>;

  compatible = "fsl,vf610-i2c";

  reg = <0x40067000 0x1000>;

  clocks = <&clks VF610_CLK_I2C1>;

  clock-names = "ipg";

  dmas = <&edma0 0 52>,

  <&edma0 0 53>;

  dma-names = "rx","tx";

  status = "disabled";                                                   

};

...

...

&i2c1 {

  clock-frequency = <400000>;

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_i2c1>;

  status = "okay";

};

While starting the kernel prints this message:

[

0.171667] imx-i2c 40067000.i2c: can't get irq number

I think that I must add an "interrupts" entry, but where can I find the correct number?

In my i2c-0 the number 71 was given, in an other device tree i2c-0 got the 103 and the i2c-1 the number 104

Thanks,

Sandro

Labels (2)
Tags (3)
0 Kudos
1 Solution
670 Views
timesys_support
Contributor I

Hello Sandro,

You can try using the value "72" for the "interrupts" entry. This can be found in the Vybrid reference manual at table 3-1, Interrupt Assignment, as the NVIC Interrupt ID for i2c1. The other device tree that you link to specifies the GIC interrupt ID values.

Thanks,

Timesys Support

View solution in original post

3 Replies
671 Views
timesys_support
Contributor I

Hello Sandro,

You can try using the value "72" for the "interrupts" entry. This can be found in the Vybrid reference manual at table 3-1, Interrupt Assignment, as the NVIC Interrupt ID for i2c1. The other device tree that you link to specifies the GIC interrupt ID values.

Thanks,

Timesys Support

670 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Thank timesyssupport

0 Kudos
670 Views
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport​ can you help here?

0 Kudos