1/* 2 * Copyright (c) 2024 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * SDA = P0.26 and P1.2 9 * SCL = P0.25 and P1.3 10 */ 11 12/ { 13 aliases { 14 i2c-controller = &i2c1; 15 i2c-controller-target = &i2c2; 16 }; 17}; 18 19&pinctrl { 20 i2c2_default: i2c2_default { 21 group1 { 22 psels = <NRF_PSEL(TWIS_SDA, 0, 26)>, 23 <NRF_PSEL(TWIS_SCL, 0, 25)>; 24 bias-pull-up; 25 }; 26 }; 27 28 i2c2_sleep: i2c2_sleep { 29 group1 { 30 psels = <NRF_PSEL(TWIS_SDA, 0, 26)>, 31 <NRF_PSEL(TWIS_SCL, 0, 25)>; 32 low-power-enable; 33 }; 34 }; 35}; 36 37&i2c2 { 38 compatible = "nordic,nrf-twis"; 39 pinctrl-0 = <&i2c2_default>; 40 pinctrl-1 = <&i2c2_sleep>; 41 pinctrl-names = "default", "sleep"; 42 status = "okay"; 43}; 44