summaryrefslogtreecommitdiff
path: root/arch/mips/boot/dts/realtek/rtl930x.dtsi
blob: f271940f82bea1b44e0cc757babf18bc6a39999b (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
77
78
79
// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause

#include "rtl83xx.dtsi"

/ {
	compatible = "realtek,rtl9302-soc";

	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu@0 {
			device_type = "cpu";
			compatible = "mips,mips34Kc";
			reg = <0>;
			clocks = <&baseclk 0>;
			clock-names = "cpu";
		};
	};

	baseclk: clock-800mhz {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <800000000>;
	};

	lx_clk: clock-175mhz {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency  = <175000000>;
	};
};

&soc {
	intc: interrupt-controller@3000 {
		compatible = "realtek,rtl9300-intc", "realtek,rtl-intc";
		reg = <0x3000 0x18>, <0x3018 0x18>;
		interrupt-controller;
		#interrupt-cells = <1>;

		interrupt-parent = <&cpuintc>;
		interrupts = <2>, <3>, <4>, <5>, <6>, <7>;
	};

	spi0: spi@1200 {
		compatible = "realtek,rtl8380-spi";
		reg = <0x1200 0x100>;

		#address-cells = <1>;
		#size-cells = <0>;
	};

	timer0: timer@3200 {
		compatible = "realtek,rtl9302-timer", "realtek,otto-timer";
		reg = <0x3200 0x10>, <0x3210 0x10>, <0x3220 0x10>,
		    <0x3230 0x10>, <0x3240 0x10>;

		interrupt-parent = <&intc>;
		interrupts = <7>, <8>, <9>, <10>, <11>;
		clocks = <&lx_clk>;
	};
};

&uart0 {
	/delete-property/ clock-frequency;
	clocks = <&lx_clk>;

	interrupt-parent = <&intc>;
	interrupts = <30>;
};

&uart1 {
	/delete-property/ clock-frequency;
	clocks = <&lx_clk>;

	interrupt-parent = <&intc>;
	interrupts = <31>;
};