aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/dts/socfpga_n5x-u-boot.dtsi
blob: e27a64651e1dc8b5269dc707f938b82a632b6daf (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// SPDX-License-Identifier: GPL-2.0+
/*
 * U-Boot additions
 *
 * Copyright (C) 2020-2021 Intel Corporation <www.intel.com>
 */

#include "socfpga_soc64_fit-u-boot.dtsi"
#include <dt-bindings/clock/n5x-clock.h>

/{
	memory {
		#address-cells = <2>;
		#size-cells = <2>;
		bootph-all;
	};

	soc {
		bootph-all;

		ccu: cache-controller@f7000000 {
			compatible = "arteris,ncore-ccu";
			reg = <0xf7000000 0x100900>;
			bootph-all;
		};

		clocks {
			dram_eosc_clk: dram-eosc-clk {
				#clock-cells = <0>;
				compatible = "fixed-clock";
			};
		};

		memclkmgr: mem-clock-controller@f8040000 {
			compatible = "intel,n5x-mem-clkmgr";
			reg = <0xf8040000 0x1000>;
			#clock-cells = <0>;
			clocks = <&dram_eosc_clk>, <&f2s_free_clk>;
		};
	};
};

&clkmgr {
	compatible = "intel,n5x-clkmgr";
	bootph-all;
};

&gmac0 {
	clocks = <&clkmgr N5X_EMAC0_CLK>;
};

&gmac1 {
	altr,sysmgr-syscon = <&sysmgr 0x48 0>;
	clocks = <&clkmgr N5X_EMAC1_CLK>;
};

&gmac2 {
	altr,sysmgr-syscon = <&sysmgr 0x4c 0>;
	clocks = <&clkmgr N5X_EMAC2_CLK>;
};

&i2c0 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
	reset-names = "i2c";
};

&i2c1 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
	reset-names = "i2c";
};

&i2c2 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
	reset-names = "i2c";
};

&i2c3 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
	reset-names = "i2c";
};

&i2c4 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
	reset-names = "i2c";
};

&memclkmgr {
	bootph-all;
};

&mmc {
	clocks = <&clkmgr N5X_L4_MP_CLK>,
		 <&clkmgr N5X_SDMMC_CLK>;
	resets = <&rst SDMMC_RESET>, <&rst SDMMC_OCP_RESET>;
};

&pdma {
	clocks = <&clkmgr N5X_L4_MAIN_CLK>;
};

&porta {
	bank-name = "porta";
};

&portb {
	bank-name = "portb";
};

&qspi {
	bootph-all;
};

&rst {
	compatible = "altr,rst-mgr";
	altr,modrst-offset = <0x20>;
	bootph-all;
};

&sdr {
	compatible = "intel,sdr-ctl-n5x";
	resets = <&rst DDRSCH_RESET>;
	clocks = <&memclkmgr>;
	clock-names = "mem_clk";
	bootph-all;
};

&spi0 {
	clocks = <&clkmgr N5X_L4_MAIN_CLK>;
};

&spi1 {
	clocks = <&clkmgr N5X_L4_MAIN_CLK>;
};

&sysmgr {
	compatible = "altr,sys-mgr", "syscon";
	bootph-all;
};

&timer0 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
};

&timer1 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
};

&timer2 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
};

&timer3 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
};

&uart0 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
	bootph-all;
};

&uart1 {
	clocks = <&clkmgr N5X_L4_SP_CLK>;
};

&usb0 {
	clocks = <&clkmgr N5X_USB_CLK>;
	disable-over-current;
	bootph-all;
};

&usb1 {
	clocks = <&clkmgr N5X_USB_CLK>;
	bootph-all;
};

&watchdog0 {
	clocks = <&clkmgr N5X_L4_SYS_FREE_CLK>;
	bootph-all;
};

&watchdog1 {
	clocks = <&clkmgr N5X_L4_SYS_FREE_CLK>;
};

&watchdog2 {
	clocks = <&clkmgr N5X_L4_SYS_FREE_CLK>;
};

&watchdog3 {
	clocks = <&clkmgr N5X_L4_SYS_FREE_CLK>;
};