summaryrefslogtreecommitdiffstats
path: root/arch/mips/dts/qemu-malta.dts
blob: 9b0c594e8771c80ac6ca94aeba5ad268e46d4689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/dts-v1/;

/include/ "skeleton.dtsi"

/ {
	model = "qemu malta";
	compatible = "qemu,malta";

	chosen {
		environment@0 {
			compatible = "barebox,environment";
			device-path = &nor0, "partname:barebox-environment";
		};
	};

	memory {
		reg = <0x00000000 0x10000000>;
	};

	uart0: serial@180003f8 {
		compatible = "ns16550a";
		reg = <0x180003f8 0x08>;
		reg-shift = <0>;
		/* no matter for emulated port */
		clock-frequency = <1843200>;
	};

	gpio: gpio@1f000b00 {
		compatible = "mti,malta-fpga-i2c-gpio";
		gpio-controller;
		reg = <0x1f000b00 0x20>;
		#gpio-cells = <2>;
	};

	i2c0: i2c0 {
		compatible = "i2c-gpio";
		gpios = <&gpio 0 0 /* sda */
			&gpio 1 0 /* scl */
			>;
		i2c-gpio,sda-open-drain;
		i2c-gpio,scl-open-drain;
		#address-cells = <1>;
		#size-cells = <0>;
		status = "disabled";
	};

	uart2: serial@1f000900 {
		compatible = "ns16550a";
		reg = <0x1f000900 0x40>;
		reg-shift = <3>;
		/* no matter for emulated port */
		clock-frequency = <1843200>;
	};

	nor0: flash@1e000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "cfi-flash";
		reg = <0x1e000000 0x00400000>;

		partition@0 {
			label = "barebox";
			reg = <0 0x80000>;
			read-only;
		};

		partition@80000 {
			label = "barebox-environment";
			reg = <0x80000 0x10000>;
		};
	};
};

&i2c0 {
	status = "okay";
};