Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 2 | /* |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 3 | * Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include "socfpga_cyclone5.dtsi" |
| 7 | |
| 8 | / { |
| 9 | model = "EBV SOCrates"; |
| 10 | compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga"; |
| 11 | |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 12 | aliases { |
Stefan Roese | eefea76 | 2016-04-18 14:22:05 +0200 | [diff] [blame] | 13 | ethernet0 = &gmac1; |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | chosen { |
| 17 | bootargs = "earlyprintk"; |
| 18 | stdout-path = "serial0:115200n8"; |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 19 | }; |
| 20 | |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 21 | memory@0 { |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 22 | name = "memory"; |
| 23 | device_type = "memory"; |
| 24 | reg = <0x0 0x40000000>; /* 1GB */ |
| 25 | }; |
Marek Vasut | 567356a | 2015-11-23 17:06:27 +0100 | [diff] [blame] | 26 | |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 27 | leds: gpio-leds { |
Marek Vasut | 567356a | 2015-11-23 17:06:27 +0100 | [diff] [blame] | 28 | }; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | &gmac1 { |
Marek Vasut | 6433f59 | 2015-08-03 15:32:37 +0200 | [diff] [blame] | 32 | phy-mode = "rgmii"; |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 33 | status = "okay"; |
| 34 | }; |
| 35 | |
| 36 | &gpio0 { |
| 37 | status = "okay"; |
| 38 | }; |
Marek Vasut | f95f5fd | 2015-12-05 17:53:40 +0100 | [diff] [blame] | 39 | |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 40 | &gpio1 { |
| 41 | status = "okay"; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | &i2c0 { |
| 45 | status = "okay"; |
| 46 | |
| 47 | rtc: rtc@68 { |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 48 | compatible = "st,m41t82"; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 49 | reg = <0x68>; |
| 50 | }; |
| 51 | }; |
| 52 | |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 53 | &leds { |
| 54 | compatible = "gpio-leds"; |
| 55 | |
| 56 | led0 { |
| 57 | label = "led:green:heartbeat"; |
| 58 | gpios = <&porta 28 1>; |
| 59 | linux,default-trigger = "heartbeat"; |
| 60 | }; |
| 61 | |
| 62 | led1 { |
| 63 | label = "led:green:D7"; |
| 64 | gpios = <&portb 19 1>; |
| 65 | }; |
| 66 | |
| 67 | led2 { |
| 68 | label = "led:green:D8"; |
| 69 | gpios = <&portb 25 1>; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | &mmc { |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 74 | status = "okay"; |
| 75 | }; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 76 | |
| 77 | &qspi { |
| 78 | status = "okay"; |
Simon Goldschmidt | 5025e6f | 2018-08-06 15:05:09 +0200 | [diff] [blame] | 79 | u-boot,dm-pre-reloc; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 80 | |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 81 | flash: flash@0 { |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 82 | #address-cells = <1>; |
| 83 | #size-cells = <1>; |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 84 | compatible = "n25q256a"; |
| 85 | reg = <0>; |
| 86 | spi-max-frequency = <100000000>; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 87 | m25p,fast-read; |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 88 | cdns,read-delay = <4>; |
Jason Rush | feaa3f9 | 2018-01-23 17:13:10 -0600 | [diff] [blame] | 89 | cdns,tshsl-ns = <50>; |
| 90 | cdns,tsd2d-ns = <50>; |
| 91 | cdns,tchsh-ns = <4>; |
| 92 | cdns,tslch-ns = <4>; |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 93 | status = "okay"; |
Simon Goldschmidt | 5025e6f | 2018-08-06 15:05:09 +0200 | [diff] [blame] | 94 | u-boot,dm-pre-reloc; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 95 | }; |
| 96 | }; |