1/* 2 * Copyright 2024 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6&pinctrl { 7 pinmux_flexcomm3_lpi2c: pinmux_flexcomm3_lpi2c { 8 group0 { 9 pinmux = <FC3_P0_PIO1_0>, 10 <FC3_P1_PIO1_1>; 11 slew-rate = "fast"; 12 drive-strength = "low"; 13 input-enable; 14 bias-pull-up; 15 drive-open-drain; 16 }; 17 }; 18}; 19 20&flexcomm3 { 21 status = "okay"; 22}; 23 24/* We cannot enable SPI and I2C on the same flexcomm */ 25&flexcomm3_lpspi3 { 26 status = "disabled"; 27}; 28 29/* To test this sample, connect 30 * LPI2C3 SCL(J2-12, P1_1/FC1_P1) --> LPI2C5 SCL(J2-20, P1_17/FC2_P1) 31 * LPI2C3 SDA(J2-8, P1_0/FC1_P0) --> LPI2C5 SDA(J2-18, P1_16/FC2_P0) 32 */ 33&flexcomm3_lpi2c3 { 34 pinctrl-0 = <&pinmux_flexcomm3_lpi2c>; 35 pinctrl-names = "default"; 36 clock-frequency = <I2C_BITRATE_STANDARD>; 37 status = "okay"; 38 eeprom0: eeprom@54 { 39 compatible = "zephyr,i2c-target-eeprom"; 40 reg = <0x54>; 41 size = <1024>; 42 address-width = <16>; 43 }; 44}; 45 46&flexcomm5_lpi2c5 { 47 eeprom1: eeprom@56 { 48 compatible = "zephyr,i2c-target-eeprom"; 49 reg = <0x56>; 50 size = <1024>; 51 address-width = <16>; 52 }; 53}; 54