nordic,nrf-twis

Vendor: Nordic Semiconductor

Note

An implementation of a driver matching this compatible is available in drivers/i2c/i2c_nrfx_twis.c.

Description

These nodes are “i2c” bus nodes.

Nordic nRF family TWIS

The TWIS peripheral is an I2C controller which supports the I2C
peripheral role, and EasyDMA. TWIS shares resources with TWIM and TWI,
only one of them can be enabled for each peripheral instance.
Overwrite the compatible of the i2c node to select between TWIM/TWI
and TWIS, along with the pinctrl instances to select between TWIM/TWI
and TWIS pin functions.

Example:

  &pinctrl {
          i2c2_default: i2c2_default {
                  group1 {
                          psels = <NRF_PSEL(TWIS_SDA, 0, 26)>,
                                  <NRF_PSEL(TWIS_SCL, 0, 25)>;
                          bias-pull-up;
                  };
          };

          i2c2_sleep: i2c2_sleep {
                  group1 {
                          psels = <NRF_PSEL(TWIS_SDA, 0, 26)>,
                                  <NRF_PSEL(TWIS_SCL, 0, 25)>;
                          low-power-enable;
                  };
          };
  };

  &i2c2 {
          compatible = "nordic,nrf-twis";
          pinctrl-0 = <&i2c2_default>;
          pinctrl-1 = <&i2c2_sleep>;
          pinctrl-names = "default", "sleep";
          status = "okay";
  };

Properties

Properties not inherited from the base binding file.

Name

Type

Details

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

This property is required.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

This property is required.

easydma-maxcnt-bits

int

Maximum number of bits available in the EasyDMA MAXCNT register. This
property must be set at SoC level DTS files.

This property is required.

clock-frequency

int

Initial clock frequency in Hz

sq-size

int

Size of the submission queue for blocking requests

Default value: 4

cq-size

int

Size of the completion queue for blocking requests

Default value: 4

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

nordic,clockpin-enable

array

List of signals that require CLOCKPIN setting enablement.

memory-regions

phandle-array

List of memory region phandles

memory-region-names

string-array

A list of names, one for each corresponding phandle in memory-region