File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
boards/arm/gd32e103v_eval
samples/drivers/eeprom/boards Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1717 pinmux = <TIMER0_CH0_PA8_OUT_NORMP>;
1818 };
1919 };
20+
21+ i2c0_default: i2c0_default {
22+ group1 {
23+ pinmux = <I2C0_SCL_PB6_NORMP>, <I2C0_SDA_PB7_NORMP>;
24+ drive-open-drain;
25+ };
26+ };
2027};
Original file line number Diff line number Diff line change 6969 led1 = &led3;
7070 sw0 = &user_key;
7171 pwm-led0 = &pwm_led;
72+ eeprom-0 = &eeprom0;
7273 };
7374};
7475
108109 pinctrl-names = "default";
109110 };
110111};
112+
113+ &i2c0 {
114+ status = "okay";
115+ pinctrl-0 = <&i2c0_default>;
116+ pinctrl-names = "default";
117+
118+ eeprom0: eeprom@50 {
119+ compatible = "atmel,at24";
120+ reg = <0x50>;
121+ status = "okay";
122+ label = "EEPROM_AT24C02";
123+ size = <256>;
124+ pagesize = <8>;
125+ address-width = <8>;
126+ timeout = <5>;
127+ };
128+ };
Original file line number Diff line number Diff line change 1+ CONFIG_I2C=y
2+ CONFIG_EEPROM_AT24=y
3+ CONFIG_EEPROM_INIT_PRIORITY=75
You can’t perform that action at this time.
0 commit comments