1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/* I2C bus pins are exposed on the ST morpho header.
7 *
8 *  Bus        SDA               SCL
9 *          Pin   Hdr         Pin   Hdr
10 *  i2c1    PB9   CN7:4      PB8   CN7:2
11 *  i2c2    PB11  CN10:34    PB10  CN10:32
12 *
13 * Short Pin PB9 to PB11, and PB8 to PB10, for the test to pass.
14 */
15
16&i2c2 {
17	pinctrl-0 = <&i2c2_scl_pf1 &i2c2_sda_pf0>;
18	pinctrl-names = "default";
19	status = "okay";
20	eeprom0: eeprom@54 {
21		compatible = "zephyr,i2c-target-eeprom";
22		reg = <0x54>;
23		address-width = <16>;
24		size = <1024>;
25	};
26};
27
28&i2c1 {
29	pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
30	pinctrl-names = "default";
31	status = "okay";
32	eeprom1: eeprom@56 {
33		compatible = "zephyr,i2c-target-eeprom";
34		reg = <0x56>;
35		address-width = <16>;
36		size = <1024>;
37	};
38};
39