summaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/dts/loongson/loongson1c.dtsi
blob: 5e80c6a657afd0ee8561e2ef5546e8a8a710f6f2 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2023-2025 Keguang Zhang <keguang.zhang@gmail.com>
 */

/dts-v1/;
#include "loongson1.dtsi"

/ {
	clkc: clock-controller@1fe78030 {
		compatible = "loongson,ls1c-clk";
		reg = <0x1fe78030 0x8>;
		clocks = <&xtal>;
		#clock-cells = <1>;
	};
};

&soc {
	syscon: syscon@420 {
		compatible = "loongson,ls1c-syscon", "syscon";
		reg = <0x420 0x8>;
	};

	intc4: interrupt-controller@10a0 {
		compatible = "loongson,ls1x-intc";
		reg = <0x10a0 0x18>;
		interrupt-controller;
		interrupt-parent = <&cpu_intc>;
		interrupts = <6>;
		#interrupt-cells = <2>;
	};

	gpio2: gpio@10c8 {
		compatible = "loongson,ls1x-gpio";
		reg = <0x10c8 0x4>;
		gpio-controller;
		ngpios = <32>;
		#gpio-cells = <2>;
	};

	gpio3: gpio@10cc {
		compatible = "loongson,ls1x-gpio";
		reg = <0x10cc 0x4>;
		gpio-controller;
		ngpios = <32>;
		#gpio-cells = <2>;
	};

	dma: dma-controller@1160 {
		compatible = "loongson,ls1c-apbdma", "loongson,ls1b-apbdma";
		reg = <0x1160 0x4>;
		interrupt-parent = <&intc0>;
		interrupts = <13 IRQ_TYPE_EDGE_RISING>,
			     <14 IRQ_TYPE_EDGE_RISING>,
			     <15 IRQ_TYPE_EDGE_RISING>;
		interrupt-names = "ch0", "ch1", "ch2";
		#dma-cells = <1>;
	};

	emac: ethernet@110000 {
		compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a";
		reg = <0x110000 0x10000>;
		clocks = <&clkc LS1X_CLKID_AHB>;
		clock-names = "stmmaceth";
		interrupt-parent = <&intc1>;
		interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "macirq";
		loongson,ls1-syscon = <&syscon>;
		snps,pbl = <1>;
		status = "disabled";
	};

	ehci: usb@120000 {
		compatible = "generic-ehci";
		reg = <0x120000 0x100>;
		interrupt-parent = <&intc1>;
		interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
		status = "disabled";
	};

	ohci: usb@128000 {
		compatible = "generic-ohci";
		reg = <0x128000 0x100>;
		interrupt-parent = <&intc1>;
		interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
		status = "disabled";
	};
};

&apb {
	watchdog: watchdog@1c060 {
		compatible = "loongson,ls1c-wdt";
		reg = <0x1c060 0xc>;
		clocks = <&clkc LS1X_CLKID_APB>;
		status = "disabled";
	};

	rtc: rtc@24000 {
		compatible = "loongson,ls1c-rtc";
		reg = <0x24000 0x78>;
		status = "disabled";
	};

	nand: nand-controller@38000 {
		compatible = "loongson,ls1c-nand-controller";
		reg = <0x38000 0x24>, <0x38040 0x4>;
		reg-names = "nand", "nand-dma";
		dmas = <&dma 0>;
		dma-names = "rxtx";
		#address-cells = <1>;
		#size-cells = <0>;
		status = "disabled";

		nand@0 {
			reg = <0>;
			label = "ls1x-nand";
			nand-use-soft-ecc-engine;
			nand-ecc-algo = "hamming";
		};
	};
};

&gpio0 {
	ngpios = <32>;
};

&gpio1 {
	ngpios = <32>;
};

&uart1 {
	interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
};

&uart2 {
	interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
};

&uart3 {
	interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
};