boards: litex_vexriscv: Enable LiteX PWM driver

This commit enables LiteX PWM 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-14 16:45:53 +02:00 committed by Johan Hedberg
commit 0b6c18bd64
3 changed files with 14 additions and 0 deletions

View file

@ -54,3 +54,7 @@
status = "okay";
label = "I2C_0";
};
&pwm0 {
status = "okay";
};

View file

@ -24,3 +24,5 @@ CONFIG_SPI_LITESPI=y
CONFIG_ENTROPY_LITEX_RNG=y
CONFIG_I2C=y
CONFIG_I2C_LITEX=y
CONFIG_PWM=y
CONFIG_PWM_LITEX=y

View file

@ -102,5 +102,13 @@
#size-cells = <0>;
status = "disabled";
};
pwm0: pwm@e0007000 {
compatible = "litex,pwm";
reg = <0xe0007000 0x4 0xe0007004 0x10 0xe0007014 0x10>;
reg-names = "enable", "width", "period";
label = "pwm0";
status = "disabled";
#pwm-cells = <2>;
};
};
};