diff options
-rw-r--r-- | arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 83 | ||||
-rw-r--r-- | arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 44 |
3 files changed, 127 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts index 2459d133f1be..f50b19447de6 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | |||
@@ -161,7 +161,7 @@ | |||
161 | }; | 161 | }; |
162 | 162 | ||
163 | at24@50 { | 163 | at24@50 { |
164 | compatible = "at24,24c01"; | 164 | compatible = "atmel,24c01"; |
165 | pagesize = <8>; | 165 | pagesize = <8>; |
166 | reg = <0x50>; | 166 | reg = <0x50>; |
167 | }; | 167 | }; |
@@ -213,7 +213,7 @@ | |||
213 | #size-cells = <0>; | 213 | #size-cells = <0>; |
214 | reg = <6>; | 214 | reg = <6>; |
215 | eeprom@51 { | 215 | eeprom@51 { |
216 | compatible = "at,24c01"; | 216 | compatible = "atmel,24c01"; |
217 | pagesize = <8>; | 217 | pagesize = <8>; |
218 | reg = <0x51>; | 218 | reg = <0x51>; |
219 | }; | 219 | }; |
@@ -224,7 +224,7 @@ | |||
224 | #size-cells = <0>; | 224 | #size-cells = <0>; |
225 | reg = <7>; | 225 | reg = <7>; |
226 | eeprom@51 { | 226 | eeprom@51 { |
227 | compatible = "at,24c01"; | 227 | compatible = "atmel,24c01"; |
228 | pagesize = <8>; | 228 | pagesize = <8>; |
229 | reg = <0x51>; | 229 | reg = <0x51>; |
230 | }; | 230 | }; |
diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index c89d0c307f8d..e6b059378dc0 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | |||
@@ -17,6 +17,7 @@ | |||
17 | /dts-v1/; | 17 | /dts-v1/; |
18 | #include <dt-bindings/reset/altr,rst-mgr-s10.h> | 18 | #include <dt-bindings/reset/altr,rst-mgr-s10.h> |
19 | #include <dt-bindings/gpio/gpio.h> | 19 | #include <dt-bindings/gpio/gpio.h> |
20 | #include <dt-bindings/clock/stratix10-clock.h> | ||
20 | 21 | ||
21 | / { | 22 | / { |
22 | compatible = "altr,socfpga-stratix10"; | 23 | compatible = "altr,socfpga-stratix10"; |
@@ -92,9 +93,32 @@ | |||
92 | interrupt-parent = <&intc>; | 93 | interrupt-parent = <&intc>; |
93 | ranges = <0 0 0 0xffffffff>; | 94 | ranges = <0 0 0 0xffffffff>; |
94 | 95 | ||
95 | clkmgr@ffd1000 { | 96 | clkmgr: clock-controller@ffd10000 { |
96 | compatible = "altr,clk-mgr"; | 97 | compatible = "intel,stratix10-clkmgr"; |
97 | reg = <0xffd10000 0x1000>; | 98 | reg = <0xffd10000 0x1000>; |
99 | #clock-cells = <1>; | ||
100 | }; | ||
101 | |||
102 | clocks { | ||
103 | cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk { | ||
104 | #clock-cells = <0>; | ||
105 | compatible = "fixed-clock"; | ||
106 | }; | ||
107 | |||
108 | cb_intosc_ls_clk: cb-intosc-ls-clk { | ||
109 | #clock-cells = <0>; | ||
110 | compatible = "fixed-clock"; | ||
111 | }; | ||
112 | |||
113 | f2s_free_clk: f2s-free-clk { | ||
114 | #clock-cells = <0>; | ||
115 | compatible = "fixed-clock"; | ||
116 | }; | ||
117 | |||
118 | osc1: osc1 { | ||
119 | #clock-cells = <0>; | ||
120 | compatible = "fixed-clock"; | ||
121 | }; | ||
98 | }; | 122 | }; |
99 | 123 | ||
100 | gmac0: ethernet@ff800000 { | 124 | gmac0: ethernet@ff800000 { |
@@ -105,6 +129,8 @@ | |||
105 | mac-address = [00 00 00 00 00 00]; | 129 | mac-address = [00 00 00 00 00 00]; |
106 | resets = <&rst EMAC0_RESET>; | 130 | resets = <&rst EMAC0_RESET>; |
107 | reset-names = "stmmaceth"; | 131 | reset-names = "stmmaceth"; |
132 | clocks = <&clkmgr STRATIX10_EMAC0_CLK>; | ||
133 | clock-names = "stmmaceth"; | ||
108 | status = "disabled"; | 134 | status = "disabled"; |
109 | }; | 135 | }; |
110 | 136 | ||
@@ -116,6 +142,8 @@ | |||
116 | mac-address = [00 00 00 00 00 00]; | 142 | mac-address = [00 00 00 00 00 00]; |
117 | resets = <&rst EMAC1_RESET>; | 143 | resets = <&rst EMAC1_RESET>; |
118 | reset-names = "stmmaceth"; | 144 | reset-names = "stmmaceth"; |
145 | clocks = <&clkmgr STRATIX10_EMAC1_CLK>; | ||
146 | clock-names = "stmmaceth"; | ||
119 | status = "disabled"; | 147 | status = "disabled"; |
120 | }; | 148 | }; |
121 | 149 | ||
@@ -127,6 +155,8 @@ | |||
127 | mac-address = [00 00 00 00 00 00]; | 155 | mac-address = [00 00 00 00 00 00]; |
128 | resets = <&rst EMAC2_RESET>; | 156 | resets = <&rst EMAC2_RESET>; |
129 | reset-names = "stmmaceth"; | 157 | reset-names = "stmmaceth"; |
158 | clocks = <&clkmgr STRATIX10_EMAC2_CLK>; | ||
159 | clock-names = "stmmaceth"; | ||
130 | status = "disabled"; | 160 | status = "disabled"; |
131 | }; | 161 | }; |
132 | 162 | ||
@@ -177,6 +207,7 @@ | |||
177 | reg = <0xffc02800 0x100>; | 207 | reg = <0xffc02800 0x100>; |
178 | interrupts = <0 103 4>; | 208 | interrupts = <0 103 4>; |
179 | resets = <&rst I2C0_RESET>; | 209 | resets = <&rst I2C0_RESET>; |
210 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
180 | status = "disabled"; | 211 | status = "disabled"; |
181 | }; | 212 | }; |
182 | 213 | ||
@@ -187,6 +218,7 @@ | |||
187 | reg = <0xffc02900 0x100>; | 218 | reg = <0xffc02900 0x100>; |
188 | interrupts = <0 104 4>; | 219 | interrupts = <0 104 4>; |
189 | resets = <&rst I2C1_RESET>; | 220 | resets = <&rst I2C1_RESET>; |
221 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
190 | status = "disabled"; | 222 | status = "disabled"; |
191 | }; | 223 | }; |
192 | 224 | ||
@@ -197,6 +229,7 @@ | |||
197 | reg = <0xffc02a00 0x100>; | 229 | reg = <0xffc02a00 0x100>; |
198 | interrupts = <0 105 4>; | 230 | interrupts = <0 105 4>; |
199 | resets = <&rst I2C2_RESET>; | 231 | resets = <&rst I2C2_RESET>; |
232 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
200 | status = "disabled"; | 233 | status = "disabled"; |
201 | }; | 234 | }; |
202 | 235 | ||
@@ -207,6 +240,7 @@ | |||
207 | reg = <0xffc02b00 0x100>; | 240 | reg = <0xffc02b00 0x100>; |
208 | interrupts = <0 106 4>; | 241 | interrupts = <0 106 4>; |
209 | resets = <&rst I2C3_RESET>; | 242 | resets = <&rst I2C3_RESET>; |
243 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
210 | status = "disabled"; | 244 | status = "disabled"; |
211 | }; | 245 | }; |
212 | 246 | ||
@@ -217,6 +251,7 @@ | |||
217 | reg = <0xffc02c00 0x100>; | 251 | reg = <0xffc02c00 0x100>; |
218 | interrupts = <0 107 4>; | 252 | interrupts = <0 107 4>; |
219 | resets = <&rst I2C4_RESET>; | 253 | resets = <&rst I2C4_RESET>; |
254 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
220 | status = "disabled"; | 255 | status = "disabled"; |
221 | }; | 256 | }; |
222 | 257 | ||
@@ -229,6 +264,9 @@ | |||
229 | fifo-depth = <0x400>; | 264 | fifo-depth = <0x400>; |
230 | resets = <&rst SDMMC_RESET>; | 265 | resets = <&rst SDMMC_RESET>; |
231 | reset-names = "reset"; | 266 | reset-names = "reset"; |
267 | clocks = <&clkmgr STRATIX10_L4_MP_CLK>, | ||
268 | <&clkmgr STRATIX10_SDMMC_CLK>; | ||
269 | clock-names = "biu", "ciu"; | ||
232 | status = "disabled"; | 270 | status = "disabled"; |
233 | }; | 271 | }; |
234 | 272 | ||
@@ -237,6 +275,25 @@ | |||
237 | reg = <0xffe00000 0x100000>; | 275 | reg = <0xffe00000 0x100000>; |
238 | }; | 276 | }; |
239 | 277 | ||
278 | pdma: pdma@ffda0000 { | ||
279 | compatible = "arm,pl330", "arm,primecell"; | ||
280 | reg = <0xffda0000 0x1000>; | ||
281 | interrupts = <0 81 4>, | ||
282 | <0 82 4>, | ||
283 | <0 83 4>, | ||
284 | <0 84 4>, | ||
285 | <0 85 4>, | ||
286 | <0 86 4>, | ||
287 | <0 87 4>, | ||
288 | <0 88 4>, | ||
289 | <0 89 4>; | ||
290 | #dma-cells = <1>; | ||
291 | #dma-channels = <8>; | ||
292 | #dma-requests = <32>; | ||
293 | clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>; | ||
294 | clock-names = "apb_pclk"; | ||
295 | }; | ||
296 | |||
240 | rst: rstmgr@ffd11000 { | 297 | rst: rstmgr@ffd11000 { |
241 | #reset-cells = <1>; | 298 | #reset-cells = <1>; |
242 | compatible = "altr,rst-mgr"; | 299 | compatible = "altr,rst-mgr"; |
@@ -288,24 +345,32 @@ | |||
288 | compatible = "snps,dw-apb-timer"; | 345 | compatible = "snps,dw-apb-timer"; |
289 | interrupts = <0 113 4>; | 346 | interrupts = <0 113 4>; |
290 | reg = <0xffc03000 0x100>; | 347 | reg = <0xffc03000 0x100>; |
348 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
349 | clock-names = "timer"; | ||
291 | }; | 350 | }; |
292 | 351 | ||
293 | timer1: timer1@ffc03100 { | 352 | timer1: timer1@ffc03100 { |
294 | compatible = "snps,dw-apb-timer"; | 353 | compatible = "snps,dw-apb-timer"; |
295 | interrupts = <0 114 4>; | 354 | interrupts = <0 114 4>; |
296 | reg = <0xffc03100 0x100>; | 355 | reg = <0xffc03100 0x100>; |
356 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
357 | clock-names = "timer"; | ||
297 | }; | 358 | }; |
298 | 359 | ||
299 | timer2: timer2@ffd00000 { | 360 | timer2: timer2@ffd00000 { |
300 | compatible = "snps,dw-apb-timer"; | 361 | compatible = "snps,dw-apb-timer"; |
301 | interrupts = <0 115 4>; | 362 | interrupts = <0 115 4>; |
302 | reg = <0xffd00000 0x100>; | 363 | reg = <0xffd00000 0x100>; |
364 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
365 | clock-names = "timer"; | ||
303 | }; | 366 | }; |
304 | 367 | ||
305 | timer3: timer3@ffd00100 { | 368 | timer3: timer3@ffd00100 { |
306 | compatible = "snps,dw-apb-timer"; | 369 | compatible = "snps,dw-apb-timer"; |
307 | interrupts = <0 116 4>; | 370 | interrupts = <0 116 4>; |
308 | reg = <0xffd00100 0x100>; | 371 | reg = <0xffd00100 0x100>; |
372 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
373 | clock-names = "timer"; | ||
309 | }; | 374 | }; |
310 | 375 | ||
311 | uart0: serial0@ffc02000 { | 376 | uart0: serial0@ffc02000 { |
@@ -315,6 +380,7 @@ | |||
315 | reg-shift = <2>; | 380 | reg-shift = <2>; |
316 | reg-io-width = <4>; | 381 | reg-io-width = <4>; |
317 | resets = <&rst UART0_RESET>; | 382 | resets = <&rst UART0_RESET>; |
383 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
318 | status = "disabled"; | 384 | status = "disabled"; |
319 | }; | 385 | }; |
320 | 386 | ||
@@ -325,6 +391,7 @@ | |||
325 | reg-shift = <2>; | 391 | reg-shift = <2>; |
326 | reg-io-width = <4>; | 392 | reg-io-width = <4>; |
327 | resets = <&rst UART1_RESET>; | 393 | resets = <&rst UART1_RESET>; |
394 | clocks = <&clkmgr STRATIX10_L4_SP_CLK>; | ||
328 | status = "disabled"; | 395 | status = "disabled"; |
329 | }; | 396 | }; |
330 | 397 | ||
@@ -387,5 +454,17 @@ | |||
387 | resets = <&rst WATCHDOG3_RESET>; | 454 | resets = <&rst WATCHDOG3_RESET>; |
388 | status = "disabled"; | 455 | status = "disabled"; |
389 | }; | 456 | }; |
457 | |||
458 | eccmgr { | ||
459 | compatible = "altr,socfpga-s10-ecc-manager"; | ||
460 | interrupts = <0 15 4>, <0 95 4>; | ||
461 | interrupt-controller; | ||
462 | #interrupt-cells = <2>; | ||
463 | |||
464 | sdramedac { | ||
465 | compatible = "altr,sdram-edac-s10"; | ||
466 | interrupts = <16 4>, <48 4>; | ||
467 | }; | ||
468 | }; | ||
390 | }; | 469 | }; |
391 | }; | 470 | }; |
diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index eaf13fe29287..f9b1ef12db48 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | |||
@@ -50,6 +50,21 @@ | |||
50 | /* We expect the bootloader to fill in the reg */ | 50 | /* We expect the bootloader to fill in the reg */ |
51 | reg = <0 0 0 0>; | 51 | reg = <0 0 0 0>; |
52 | }; | 52 | }; |
53 | |||
54 | ref_033v: 033-v-ref { | ||
55 | compatible = "regulator-fixed"; | ||
56 | regulator-name = "0.33V"; | ||
57 | regulator-min-microvolt = <330000>; | ||
58 | regulator-max-microvolt = <330000>; | ||
59 | }; | ||
60 | |||
61 | soc { | ||
62 | clocks { | ||
63 | osc1 { | ||
64 | clock-frequency = <25000000>; | ||
65 | }; | ||
66 | }; | ||
67 | }; | ||
53 | }; | 68 | }; |
54 | 69 | ||
55 | &gpio1 { | 70 | &gpio1 { |
@@ -79,7 +94,7 @@ | |||
79 | rxd2-skew-ps = <420>; /* 0ps */ | 94 | rxd2-skew-ps = <420>; /* 0ps */ |
80 | rxd3-skew-ps = <420>; /* 0ps */ | 95 | rxd3-skew-ps = <420>; /* 0ps */ |
81 | txen-skew-ps = <0>; /* -420ps */ | 96 | txen-skew-ps = <0>; /* -420ps */ |
82 | txc-skew-ps = <1860>; /* 960ps */ | 97 | txc-skew-ps = <900>; /* 0ps */ |
83 | rxdv-skew-ps = <420>; /* 0ps */ | 98 | rxdv-skew-ps = <420>; /* 0ps */ |
84 | rxc-skew-ps = <1680>; /* 780ps */ | 99 | rxc-skew-ps = <1680>; /* 780ps */ |
85 | }; | 100 | }; |
@@ -105,3 +120,30 @@ | |||
105 | &watchdog0 { | 120 | &watchdog0 { |
106 | status = "okay"; | 121 | status = "okay"; |
107 | }; | 122 | }; |
123 | |||
124 | &i2c1 { | ||
125 | status = "okay"; | ||
126 | clock-frequency = <100000>; | ||
127 | |||
128 | adc@14 { | ||
129 | compatible = "lltc,ltc2497"; | ||
130 | reg = <0x14>; | ||
131 | vref-supply = <&ref_033v>; | ||
132 | }; | ||
133 | |||
134 | temp@4c { | ||
135 | compatible = "maxim,max1619"; | ||
136 | reg = <0x4c>; | ||
137 | }; | ||
138 | |||
139 | eeprom@51 { | ||
140 | compatible = "atmel,24c32"; | ||
141 | reg = <0x51>; | ||
142 | pagesize = <32>; | ||
143 | }; | ||
144 | |||
145 | rtc@68 { | ||
146 | compatible = "dallas,ds1339"; | ||
147 | reg = <0x68>; | ||
148 | }; | ||
149 | }; | ||