1/*
2 * Copyright (c) 2020 Antony Pavlov <antonynpavlov@gmail.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8
9#include "skeleton.dtsi"
10
11/ {
12	model = "Qemu MIPS Malta";
13	compatible = "qemu,malta";
14
15	chosen {
16		zephyr,sram = &sram0;
17		zephyr,console = &uart2;
18		zephyr,shell-uart = &uart2;
19	};
20
21	cpus {
22		#address-cells = <1>;
23		#size-cells = <0>;
24
25		cpu@0 {
26			device_type = "cpu";
27			compatible = "mti,mips24Kc";
28			reg = <0>;
29
30			cpu_intc: interrupt-controller {
31				#interrupt-cells = <1>;
32				compatible = "mti,cpu-intc";
33				interrupt-controller;
34			};
35		};
36	};
37
38	sram0: memory@80200000 {
39		device_type = "memory";
40		compatible = "mmio-sram";
41		reg = <0x80200000 0x100000>;
42	};
43
44	uart2: serial@bf000900 {
45		compatible = "ns16550";
46		reg = <0xbf000900 0x40>;
47		reg-shift = <3>;
48		interrupt-parent = <&cpu_intc>;
49		interrupts = <4>;
50		/* no matter for emulated port */
51		clock-frequency = <1843200>;
52		current-speed = <115200>;
53		status = "okay";
54	};
55};
56