boards: litex_vexriscv: Enable LiteX I2C driver

This commit enables LiteX I2C driver for litex_vexriscv board.

Signed-off-by: Robert Winkler <rwinkler@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
This commit is contained in:
Robert Winkler 2019-08-05 14:33:24 +02:00 committed by Johan Hedberg
commit 34fedd6cc9
3 changed files with 16 additions and 0 deletions

View file

@ -49,3 +49,8 @@
&prbs0 {
status = "okay";
};
&i2c0 {
status = "okay";
label = "I2C_0";
};

View file

@ -22,3 +22,5 @@ CONFIG_HWINFO_LITEX=y
CONFIG_SPI=y
CONFIG_SPI_LITESPI=y
CONFIG_ENTROPY_LITEX_RNG=y
CONFIG_I2C=y
CONFIG_I2C_LITEX=y

View file

@ -93,5 +93,14 @@
label = "prbs0";
status = "disabled";
};
i2c0: i2c@e0005000 {
compatible = "litex,i2c";
reg = <0xe0005000 0x4 0xe0005004 0x4>;
reg-names = "write", "read";
label = "i2c0";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
};
};