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:
Robert Winkler 2019-08-05 12:05:36 +02:00 committed by Carles Cufí
commit 94b8832585
4 changed files with 39 additions and 11 deletions

View file

@ -57,3 +57,11 @@
&pwm0 {
status = "okay";
};
&gpio_out {
status = "okay";
};
&gpio_in {
status = "okay";
};

View file

@ -21,6 +21,8 @@ CONFIG_HWINFO=y
CONFIG_HWINFO_LITEX=y
CONFIG_SPI=y
CONFIG_SPI_LITESPI=y
CONFIG_GPIO=y
CONFIG_GPIO_LITEX=y
CONFIG_ENTROPY_LITEX_RNG=y
CONFIG_I2C=y
CONFIG_I2C_LITEX=y

View file

@ -4,10 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#
title: Litex GPIO
description: >
This is a representation of the Litex GPIO nodes
description: Litex GPIO
compatible: "litex,gpio"

View file

@ -86,13 +86,6 @@
label = "dna0";
status = "disabled";
};
prbs0: prbs@e0006800 {
compatible = "litex,prbs";
reg = <0xe0006800 0x4>;
reg-names = "status";
label = "prbs0";
status = "disabled";
};
i2c0: i2c@e0005000 {
compatible = "litex,i2c";
reg = <0xe0005000 0x4 0xe0005004 0x4>;
@ -102,6 +95,34 @@
#size-cells = <0>;
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 {
compatible = "litex,pwm";
reg = <0xe0007000 0x4 0xe0007004 0x10 0xe0007014 0x10>;