boards: nios2: qemu: Enable device support for qemu
Add device tree support for qemu Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
This commit is contained in:
parent
2948924655
commit
4687c989c3
|
@ -3,3 +3,4 @@ config BOARD_QEMU_NIOS2
|
|||
bool "QEMU NIOS II target"
|
||||
depends on SOC_NIOS2_QEMU
|
||||
select QEMU_TARGET
|
||||
select HAS_DTS
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include <nios2-qemu.dtsi>
|
||||
|
||||
/ {
|
||||
model = "qemu_nios2";
|
||||
compatible = "qemu,nios2";
|
||||
|
||||
aliases {
|
||||
uart_0 = &uart0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,console = &uart0;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "ok";
|
||||
current-speed = <115200>;
|
||||
};
|
Loading…
Reference in New Issue