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 | /* |
| 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 | |
| 12 | chosen { |
| 13 | bootargs = "console=ttyS0,115200"; |
| 14 | }; |
| 15 | |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 16 | aliases { |
Stefan Roese | eefea76 | 2016-04-18 14:22:05 +0200 | [diff] [blame] | 17 | /* |
| 18 | * This allows the ethaddr uboot environment variable |
| 19 | * contents to be added to the gmac1 device tree blob. |
| 20 | */ |
| 21 | ethernet0 = &gmac1; |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 22 | udc0 = &usb1; |
| 23 | }; |
| 24 | |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 25 | memory { |
| 26 | name = "memory"; |
| 27 | device_type = "memory"; |
| 28 | reg = <0x0 0x40000000>; /* 1GB */ |
| 29 | }; |
Marek Vasut | 567356a | 2015-11-23 17:06:27 +0100 | [diff] [blame] | 30 | |
| 31 | soc { |
| 32 | u-boot,dm-pre-reloc; |
| 33 | }; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | &gmac1 { |
| 37 | status = "okay"; |
Marek Vasut | 6433f59 | 2015-08-03 15:32:37 +0200 | [diff] [blame] | 38 | phy-mode = "rgmii"; |
Marek Vasut | f95f5fd | 2015-12-05 17:53:40 +0100 | [diff] [blame] | 39 | |
| 40 | rxd0-skew-ps = <0>; |
| 41 | rxd1-skew-ps = <0>; |
| 42 | rxd2-skew-ps = <0>; |
| 43 | rxd3-skew-ps = <0>; |
| 44 | txen-skew-ps = <0>; |
| 45 | txc-skew-ps = <2600>; |
| 46 | rxdv-skew-ps = <0>; |
| 47 | rxc-skew-ps = <2000>; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | &i2c0 { |
| 51 | status = "okay"; |
| 52 | |
| 53 | rtc: rtc@68 { |
| 54 | compatible = "stm,m41t82"; |
| 55 | reg = <0x68>; |
| 56 | }; |
| 57 | }; |
| 58 | |
Marek Vasut | aa66c84 | 2015-08-02 22:55:24 +0200 | [diff] [blame] | 59 | &mmc0 { |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 60 | status = "okay"; |
Marek Vasut | 567356a | 2015-11-23 17:06:27 +0100 | [diff] [blame] | 61 | u-boot,dm-pre-reloc; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 62 | }; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 63 | |
| 64 | &qspi { |
| 65 | status = "okay"; |
| 66 | |
| 67 | flash0: n25q00@0 { |
| 68 | #address-cells = <1>; |
| 69 | #size-cells = <1>; |
Simon Goldschmidt | 505fd84 | 2018-01-29 07:36:37 +0100 | [diff] [blame] | 70 | compatible = "n25q00", "spi-flash"; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 71 | reg = <0>; /* chip select */ |
| 72 | spi-max-frequency = <50000000>; |
| 73 | m25p,fast-read; |
| 74 | page-size = <256>; |
| 75 | block-size = <16>; /* 2^16, 64KB */ |
Jason Rush | feaa3f9 | 2018-01-23 17:13:10 -0600 | [diff] [blame] | 76 | cdns,tshsl-ns = <50>; |
| 77 | cdns,tsd2d-ns = <50>; |
| 78 | cdns,tchsh-ns = <4>; |
| 79 | cdns,tslch-ns = <4>; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 80 | }; |
| 81 | }; |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 82 | |
| 83 | &usb1 { |
Marek Vasut | ab4c0cf | 2016-04-27 15:07:03 +0200 | [diff] [blame] | 84 | disable-over-current; |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 85 | status = "okay"; |
| 86 | }; |