I2C setup for P1.11 and P1.12 nRF54L15-DK example?

Hi,

on my Debian 13 with nrfconnect 3.1.0 and nRF54L15-DK:

I am not able to get I2C/TWI running (the same sensor runs fine on nRF52840-DK).

1. Question: Is there any nRF54L15-DK based sample I could use to get a demo running?

I have tried P2.01 and P2.02 which didn't work, and some googling showed that this is probably not possible.

So I have changed to P1.11 and P1.12, I can measure 3.1V on SDA and SCL.

But no data flow is possible.

My .overlay is
```

&i2c21 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>; /* 100 kHz */

pinctrl-0 = <&i2c20_default>;
pinctrl-1 = <&i2c20_sleep>;
pinctrl-names = "default", "sleep";

tmpsns_top: lm75@49 {
compatible = "lm75";
reg = <0x49>;
};

tmpsns_bottom: lm75@48 {
compatible = "lm75";
reg = <0x48>;
};
};

```

and my pinctrl is

```

&pinctrl {
/* with internal pull-ups to avoid external resistors on DK */
i2c20_default: i2c20_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 11)>, /* P2.01 -> P1.11 */
<NRF_PSEL(TWIM_SCL, 1, 12)>;
bias-pull-up; /* enable internal pull-ups */
};
};

i2c20_sleep: i2c20_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 11)>,
<NRF_PSEL(TWIM_SCL, 1, 12)>;
low-power-enable;
};
};
};


```

Thanks for some hints, or a working example.

(I have tried the i2c shell CONFIG_I2C_SHELL=y but could not get it running on /dev/ttyACM0 nor /dev/ttyACM1 - probably because DK blocks it - but I don't know)

Parents Reply Children
No Data
Related