boards: litex_vexriscv: Enable LiteX GPIO driver
Enable LiteX GPIO driver in litex_vexriscv board. Signed-off-by: Robert Winkler <rwinkler@internships.antmicro.com> Signed-off-by: Mateusz Holenko <mholenko@antmicro.com> Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
This commit is contained in:
parent
e8d0eb1db1
commit
94b8832585
4 changed files with 39 additions and 11 deletions
|
|
@ -57,3 +57,11 @@
|
||||||
&pwm0 {
|
&pwm0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gpio_out {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&gpio_in {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ CONFIG_HWINFO=y
|
||||||
CONFIG_HWINFO_LITEX=y
|
CONFIG_HWINFO_LITEX=y
|
||||||
CONFIG_SPI=y
|
CONFIG_SPI=y
|
||||||
CONFIG_SPI_LITESPI=y
|
CONFIG_SPI_LITESPI=y
|
||||||
|
CONFIG_GPIO=y
|
||||||
|
CONFIG_GPIO_LITEX=y
|
||||||
CONFIG_ENTROPY_LITEX_RNG=y
|
CONFIG_ENTROPY_LITEX_RNG=y
|
||||||
CONFIG_I2C=y
|
CONFIG_I2C=y
|
||||||
CONFIG_I2C_LITEX=y
|
CONFIG_I2C_LITEX=y
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,7 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
title: Litex GPIO
|
description: Litex GPIO
|
||||||
|
|
||||||
description: >
|
|
||||||
This is a representation of the Litex GPIO nodes
|
|
||||||
|
|
||||||
compatible: "litex,gpio"
|
compatible: "litex,gpio"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,13 +86,6 @@
|
||||||
label = "dna0";
|
label = "dna0";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
prbs0: prbs@e0006800 {
|
|
||||||
compatible = "litex,prbs";
|
|
||||||
reg = <0xe0006800 0x4>;
|
|
||||||
reg-names = "status";
|
|
||||||
label = "prbs0";
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
i2c0: i2c@e0005000 {
|
i2c0: i2c@e0005000 {
|
||||||
compatible = "litex,i2c";
|
compatible = "litex,i2c";
|
||||||
reg = <0xe0005000 0x4 0xe0005004 0x4>;
|
reg = <0xe0005000 0x4 0xe0005004 0x4>;
|
||||||
|
|
@ -102,6 +95,34 @@
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
gpio_out: gpio@e0005800 {
|
||||||
|
compatible = "litex,gpio";
|
||||||
|
reg = <0xe0005800 0x4>;
|
||||||
|
reg-names = "control";
|
||||||
|
ngpios = <4>;
|
||||||
|
label = "gpio_out";
|
||||||
|
port-is-output;
|
||||||
|
status = "disabled";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
|
gpio_in: gpio@e0006000 {
|
||||||
|
compatible = "litex,gpio";
|
||||||
|
reg = <0xe0006000 0x4>;
|
||||||
|
reg-names = "control";
|
||||||
|
ngpios = <4>;
|
||||||
|
label = "gpio_in";
|
||||||
|
status = "disabled";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
|
prbs0: prbs@e0006800 {
|
||||||
|
compatible = "litex,prbs";
|
||||||
|
reg = <0xe0006800 0x4>;
|
||||||
|
reg-names = "status";
|
||||||
|
label = "prbs0";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
pwm0: pwm@e0007000 {
|
pwm0: pwm@e0007000 {
|
||||||
compatible = "litex,pwm";
|
compatible = "litex,pwm";
|
||||||
reg = <0xe0007000 0x4 0xe0007004 0x10 0xe0007014 0x10>;
|
reg = <0xe0007000 0x4 0xe0007004 0x10 0xe0007014 0x10>;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue