xref: /openbmc/u-boot/arch/nds32/dts/ae3xx.dts (revision 470dd6cc)
1/dts-v1/;
2/ {
3	compatible = "nds32 ae3xx";
4	#address-cells = <1>;
5	#size-cells = <1>;
6	interrupt-parent = <&intc>;
7
8	aliases {
9		uart0 = &serial0;
10		ethernet0 = &mac0;
11		spi0 = &spi;
12	} ;
13
14	chosen {
15		/* bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0xf0300000 debug bootmem_debug memblock=debug loglevel=7"; */
16		bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0xf0300000 debug loglevel=7";
17		stdout-path = "uart0:38400n8";
18		tick-timer = &timer0;
19	};
20
21	memory@0 {
22		device_type = "memory";
23		reg = <0x00000000 0x40000000>;
24	};
25
26	spiclk: virt_100mhz {
27		#clock-cells = <0>;
28		compatible = "fixed-clock";
29		clock-frequency = <100000000>;
30	};
31
32	cpus {
33		#address-cells = <1>;
34		#size-cells = <0>;
35		cpu@0 {
36			compatible = "andestech,n13";
37			reg = <0>;
38			/* FIXME: to fill correct frqeuency */
39			clock-frequency = <60000000>;
40		};
41	};
42
43	intc: interrupt-controller {
44		compatible = "andestech,atnointc010";
45		#interrupt-cells = <1>;
46		interrupt-controller;
47	};
48
49	serial0: serial@f0300000 {
50		compatible = "andestech,uart16550", "ns16550a";
51		reg = <0xf0300000 0x1000>;
52		interrupts = <7 4>;
53		clock-frequency = <14745600>;
54		reg-shift = <2>;
55		reg-offset = <32>;
56		no-loopback-test = <1>;
57	};
58
59	timer0: timer@f0400000 {
60		compatible = "andestech,atcpit100";
61		reg = <0xf0400000 0x1000>;
62		interrupts = <2 4>;
63		clock-frequency = <30000000>;
64	};
65
66	mac0: mac@e0100000 {
67		compatible = "andestech,atmac100";
68		reg = <0xe0100000 0x1000>;
69		interrupts = <25 4>;
70	};
71
72	nor@0,0 {
73		compatible = "cfi-flash";
74		reg = <0x88000000 0x1000>;
75		bank-width = <2>;
76		device-width = <1>;
77	};
78
79	spi: spi@f0b00000 {
80		compatible = "andestech,atcspi200";
81		reg = <0xf0b00000 0x1000>;
82		#address-cells = <1>;
83		#size-cells = <0>;
84		num-cs = <1>;
85		clocks = <&spiclk>;
86		interrupts = <3 4>;
87			flash@0 {
88			compatible = "spi-flash";
89			spi-max-frequency = <50000000>;
90			reg = <0>;
91			spi-cpol;
92			spi-cpha;
93		};
94	};
95};
96