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:
parent
56db098a55
commit
0b6c18bd64
3 changed files with 14 additions and 0 deletions
|
@ -54,3 +54,7 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "I2C_0";
|
label = "I2C_0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pwm0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
@ -24,3 +24,5 @@ CONFIG_SPI_LITESPI=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
|
||||||
|
CONFIG_PWM=y
|
||||||
|
CONFIG_PWM_LITEX=y
|
||||||
|
|
|
@ -102,5 +102,13 @@
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
status = "disabled";
|
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>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue