Skip to content

Commit

Permalink
examples/simple: add images and system description for i.MX8MQ-EVK
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Velickovic committed Oct 5, 2023
1 parent 7d9f5ea commit 72dd2c3
Show file tree
Hide file tree
Showing 8 changed files with 15,076 additions and 4 deletions.
11 changes: 10 additions & 1 deletion examples/simple/board/imx8mm_evk/linux.dts
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@
compatible = "fsl,imx8mm-iomuxc";
reg = <0x30330000 0x10000>;
phandle = <0x14>;
status = "disabled";

fec1grp {
fsl,pins = <0x68 0x2d0 0x00 0x00 0x00 0x03 0x6c 0x2d4 0x4c0 0x00 0x01 0x03 0x70 0x2d8 0x00 0x00 0x00 0x1f 0x74 0x2dc 0x00 0x00 0x00 0x1f 0x78 0x2e0 0x00 0x00 0x00 0x1f 0x7c 0x2e4 0x00 0x00 0x00 0x1f 0x9c 0x304 0x00 0x00 0x00 0x91 0x98 0x300 0x00 0x00 0x00 0x91 0x94 0x2fc 0x00 0x00 0x00 0x91 0x90 0x2f8 0x00 0x00 0x00 0x91 0x84 0x2ec 0x00 0x00 0x00 0x1f 0x8c 0x2f4 0x00 0x00 0x00 0x91 0x88 0x2f0 0x00 0x00 0x00 0x91 0x80 0x2e8 0x00 0x00 0x00 0x1f 0x1b4 0x41c 0x00 0x05 0x00 0x19>;
Expand Down Expand Up @@ -671,6 +672,7 @@
};

efuse@30350000 {
status = "disabled";
compatible = "fsl,imx8mm-ocotp\0syscon";
reg = <0x30350000 0x10000>;
clocks = <0x02 0xa8>;
Expand All @@ -696,6 +698,7 @@
anatop@30360000 {
compatible = "fsl,imx8mm-anatop\0syscon";
reg = <0x30360000 0x10000>;
status = "disabled";
};

snvs@30370000 {
Expand Down Expand Up @@ -738,6 +741,7 @@
assigned-clock-parents = <0x02 0x38 0x02 0x2c 0x02 0x2f 0x02 0x38>;
assigned-clock-rates = <0x00 0x00 0x00 0x17d78400 0x17d78400 0x2cb41780 0x2367b880 0x17700000>;
phandle = <0x02>;
status = "disabled";
};

reset-controller@30390000 {
Expand All @@ -755,6 +759,7 @@
interrupt-parent = <0x01>;
interrupt-controller;
#interrupt-cells = <0x03>;
status = "disabled";

pgc {
#address-cells = <0x01>;
Expand Down Expand Up @@ -910,6 +915,7 @@
interrupts = <0x00 0x2f 0x04>;
clocks = <0x18>;
clock-names = "per";
status = "disabled";
};
};

Expand Down Expand Up @@ -1676,11 +1682,14 @@

chosen {
stdout-path = "/soc@0/bus@30800000/spba-bus@30800000/serial@30890000";
linux,initrd-start = <0x00000000 0x4d700000>;
linux,initrd-end = <0x00000000 0x4e000000>;
bootargs = "root=/dev/ram0 nosmp rw debug ignore_loglevel initcall_debug pci=nomsi earlyprintk=serial maxcpus=1";
};

memory@40000000 {
device_type = "memory";
reg = <0x00 0x40000000 0x00 0x80000000>;
reg = <0x00 0x40000000 0x00 0x10000000>;
};

leds {
Expand Down
14 changes: 11 additions & 3 deletions examples/simple/board/imx8mm_evk/simple.system
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,25 @@
<!-- We allocate 256MiB of RAM for the guest. -->
<memory_region name="guest_ram" size="0x10000000" page_size="0x200000" />
<!-- We want to map in the UART to get input/output. -->
<memory_region name="uart" size="0x1000" phys_addr="0x30890000" />
<memory_region name="uart" size="0x10000" phys_addr="0x30890000" />
<!-- To boot Linux, we need to map in the GIC virtual CPU interface. -->
<memory_region name="gic_vcpu" size="0x1000" phys_addr="TODO" />
<memory_region name="gic_vcpu" size="0x1000" phys_addr="0x31020000" />

<!-- @ivanv: temporary -->
<memory_region name="anatop" size="0x1000" phys_addr="0x30360000" />
<memory_region name="efuse" size="0x1000" phys_addr="0x30350000" />

<protection_domain name="VMM" priority="254">
<program_image path="vmm.elf" />
<map mr="guest_ram" vaddr="0x40000000" perms="rw" setvar_vaddr="guest_ram_vaddr" />
<virtual_machine name="linux" id="0">
<map mr="guest_ram" vaddr="0x40000000" perms="rwx" />
<map mr="uart" vaddr="0x30890000" perms="rw" cached="false" />
<map mr="gic_vcpu" vaddr="TODO" perms="rw" cached="false" />
<!-- The guest needs to view what is actually the vCPU interface as the CPU interface. -->
<map mr="gic_vcpu" vaddr="0x31000000" perms="rw" cached="false" />

<map mr="anatop" vaddr="0x30360000" perms="rw" cached="false" />
<map mr="efuse" vaddr="0x30350000" perms="rw" cached="false" />
</virtual_machine>
<!-- UART interrupt -->
<irq irq="59" id="1" />
Expand Down
Loading

0 comments on commit 72dd2c3

Please sign in to comment.