migration from 1.9.1 to 2.1.2

Hi,

I'm migrating a vscode project from 1.9.1 to 2.1.2.

I'm testing on  nrf52840dk_nrf52840.

I'm using I2S.

In the 1.9.1 environment I have an overlay.

&i2s0: &i2s0 {
status = "okay";
sck-pin = <25>;
lrck-pin = <26>;
sdout-pin = <27>;
};

and i2s works fine, but I can't make it work in the 2.1.2 environment.

If I compile in 2.1.2 without an overlay the compile works, but  the zephyr.dts has the following for i2s0.

i2s0: i2s_rxtx: i2s@40025000 {
compatible = "nordic,nrf-i2s";
#address-cells = < 0x1 >;
#size-cells = < 0x0 >;
reg = < 0x40025000 0x1000 >;
interrupts = < 0x25 0x1 >;
status = "disabled";;
};

If I add an overlay the changes status from disabled to ok the compile fails because there is no pinctrl entry for i2s0.

My prj.conf has the following line

'

CONFIG_I2S=y

What do I have to do to enable I2s in 2.1.2?

Parents Reply
  • Hello Martin,

    Pinctrl can be a bit confusing at first, and the DevAcademy might explain it better than I do.

    KentOverton said:

    For a given peripheral:

         what pins go in groups 1 and 2

          what are their names

    They do not necessarily go into any groups. Though if you want a property on a specific pin you would have to group it, in order to enable the property. Properties are enabled on the pins in its group.

    So certain pins do not belong to a certain group, and the groups doesn't even need to be called group1,2 etc. 

    NRF_DRIVE_H0H1 enables high drive though, which is something you might want. I believe standard drive would otherwise be enabled by default, though I'm not sure about that.

    Merry Christmas & Regards,

    Elfving

Children
No Data
Related