Operation of TWIM in smbus mode

Is it possible to configure TWIM in smbus clock-frequency range (less than 100KHz)? I have created overlay file as follows for nRF52832 based HW, but it has no effect.

&i2c1 {
    captouch: captouch@28{
        compatible = "i2c-device";
        reg = < 0x28 >;
        label = "CAP1296";
        clock-frequency=<100000>;
    };
};
  • Hello

    I believe you should use a predefined macro rather than defining a number, and perhaps it makes more sense to define clock speed for the i2c bus rather than for the sub node?

    So maybe something like this:

    &i2c1 {
        clock-frequency=<I2C_BITRATE_STANDARD>;
        captouch: captouch@28{
            compatible = "i2c-device";
            reg = < 0x28 >;
            label = "CAP1296";
        };
    };

    Best regards,

    Einar

Related