1# Copyright (c) 2024 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4description: |
5  Nordic nRF family TWIS
6
7  The TWIS peripheral is an I2C controller which supports the I2C
8  peripheral role, and EasyDMA. TWIS shares resources with TWIM and TWI,
9  only one of them can be enabled for each peripheral instance.
10  Overwrite the compatible of the i2c node to select between TWIM/TWI
11  and TWIS, along with the pinctrl instances to select between TWIM/TWI
12  and TWIS pin functions.
13
14  Example:
15
16    &pinctrl {
17            i2c2_default: i2c2_default {
18                    group1 {
19                            psels = <NRF_PSEL(TWIS_SDA, 0, 26)>,
20                                    <NRF_PSEL(TWIS_SCL, 0, 25)>;
21                            bias-pull-up;
22                    };
23            };
24
25            i2c2_sleep: i2c2_sleep {
26                    group1 {
27                            psels = <NRF_PSEL(TWIS_SDA, 0, 26)>,
28                                    <NRF_PSEL(TWIS_SCL, 0, 25)>;
29                            low-power-enable;
30                    };
31            };
32    };
33
34    &i2c2 {
35            compatible = "nordic,nrf-twis";
36            pinctrl-0 = <&i2c2_default>;
37            pinctrl-1 = <&i2c2_sleep>;
38            pinctrl-names = "default", "sleep";
39            status = "okay";
40    };
41
42compatible: "nordic,nrf-twis"
43
44include:
45  - "nordic,nrf-twi-common.yaml"
46  - "memory-region.yaml"
47