xref: /freebsd/sys/contrib/device-tree/src/openrisc/or1ksim.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*c66ec88fSEmmanuel Vadot/dts-v1/;
3*c66ec88fSEmmanuel Vadot/ {
4*c66ec88fSEmmanuel Vadot	compatible = "opencores,or1ksim";
5*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
6*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
7*c66ec88fSEmmanuel Vadot	interrupt-parent = <&pic>;
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot	aliases {
10*c66ec88fSEmmanuel Vadot		uart0 = &serial0;
11*c66ec88fSEmmanuel Vadot	};
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot	chosen {
14*c66ec88fSEmmanuel Vadot		bootargs = "earlycon";
15*c66ec88fSEmmanuel Vadot		stdout-path = "uart0:115200";
16*c66ec88fSEmmanuel Vadot	};
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot	memory@0 {
19*c66ec88fSEmmanuel Vadot		device_type = "memory";
20*c66ec88fSEmmanuel Vadot		reg = <0x00000000 0x02000000>;
21*c66ec88fSEmmanuel Vadot	};
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot	cpus {
24*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
25*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
26*c66ec88fSEmmanuel Vadot		cpu@0 {
27*c66ec88fSEmmanuel Vadot			compatible = "opencores,or1200-rtlsvn481";
28*c66ec88fSEmmanuel Vadot			reg = <0>;
29*c66ec88fSEmmanuel Vadot			clock-frequency = <20000000>;
30*c66ec88fSEmmanuel Vadot		};
31*c66ec88fSEmmanuel Vadot	};
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot	/*
34*c66ec88fSEmmanuel Vadot	 * OR1K PIC is built into CPU and accessed via special purpose
35*c66ec88fSEmmanuel Vadot	 * registers.  It is not addressable and, hence, has no 'reg'
36*c66ec88fSEmmanuel Vadot	 * property.
37*c66ec88fSEmmanuel Vadot	 */
38*c66ec88fSEmmanuel Vadot	pic: pic {
39*c66ec88fSEmmanuel Vadot		compatible = "opencores,or1k-pic";
40*c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
41*c66ec88fSEmmanuel Vadot		interrupt-controller;
42*c66ec88fSEmmanuel Vadot	};
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot	serial0: serial@90000000 {
45*c66ec88fSEmmanuel Vadot		compatible = "opencores,uart16550-rtlsvn105", "ns16550a";
46*c66ec88fSEmmanuel Vadot		reg = <0x90000000 0x100>;
47*c66ec88fSEmmanuel Vadot		interrupts = <2>;
48*c66ec88fSEmmanuel Vadot		clock-frequency = <20000000>;
49*c66ec88fSEmmanuel Vadot	};
50*c66ec88fSEmmanuel Vadot
51*c66ec88fSEmmanuel Vadot	enet0: ethoc@92000000 {
52*c66ec88fSEmmanuel Vadot		compatible = "opencores,ethoc";
53*c66ec88fSEmmanuel Vadot		reg = <0x92000000 0x800>;
54*c66ec88fSEmmanuel Vadot		interrupts = <4>;
55*c66ec88fSEmmanuel Vadot		big-endian;
56*c66ec88fSEmmanuel Vadot	};
57*c66ec88fSEmmanuel Vadot};
58