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:
parent
7f8a70a74b
commit
34fedd6cc9
3 changed files with 16 additions and 0 deletions
|
@ -49,3 +49,8 @@
|
|||
&prbs0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
label = "I2C_0";
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue