File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
boards/arm/gd32f450i_eval Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ The board configuration supports the following hardware features:
8080 * - DAC
8181 - :kconfig: `CONFIG_DAC `
8282 - :dtcompatible: `gd,gd32-dac `
83+ * - I2C
84+ - :kconfig: `CONFIG_I2C `
85+ - :dtcompatible: `gd,gd32-i2c `
86+ * - EEPROM
87+ - :kconfig: `CONFIG_EEPROM `
88+ - :dtcompatible: `atmel,at24 `
8389
8490Serial Port
8591===========
Original file line number Diff line number Diff line change 2323 pinmux = <TIMER1_CH2_PB10>;
2424 };
2525 };
26+
27+ i2c0_default: i2c0_default {
28+ group1 {
29+ pinmux = <I2C0_SCL_PB6>, <I2C0_SDA_PB7>;
30+ drive-open-drain;
31+ };
32+ };
2633};
Original file line number Diff line number Diff line change 6565 led1 = &led2;
6666 sw0 = &user_key;
6767 pwm-led0 = &pwm_led;
68+ eeprom-0 = &eeprom0;
6869 };
6970};
7071
110111 pinctrl-names = "default";
111112 };
112113};
114+
115+ &i2c0 {
116+ status = "okay";
117+ pinctrl-0 = <&i2c0_default>;
118+ pinctrl-names = "default";
119+
120+ eeprom0: eeprom@50 {
121+ compatible = "atmel,at24";
122+ reg = <0x50>;
123+ status = "okay";
124+ label = "EEPROM_AT24C02";
125+ size = <256>;
126+ pagesize = <8>;
127+ address-width = <8>;
128+ timeout = <5>;
129+ };
130+ };
You can’t perform that action at this time.
0 commit comments