Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
| 3 | * |
Stefan Roese | d3b436e | 2014-11-14 08:10:44 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include "socfpga_cyclone5.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "EBV SOCrates"; |
| 11 | compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga"; |
| 12 | |
| 13 | chosen { |
| 14 | bootargs = "console=ttyS0,115200"; |
| 15 | }; |
| 16 | |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 17 | aliases { |
| 18 | udc0 = &usb1; |
| 19 | }; |
| 20 | |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 21 | memory { |
| 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 | |
| 27 | soc { |
| 28 | u-boot,dm-pre-reloc; |
| 29 | }; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | &gmac1 { |
| 33 | status = "okay"; |
Marek Vasut | 6433f59 | 2015-08-03 15:32:37 +0200 | [diff] [blame] | 34 | phy-mode = "rgmii"; |
Marek Vasut | f95f5fd | 2015-12-05 17:53:40 +0100 | [diff] [blame] | 35 | |
| 36 | rxd0-skew-ps = <0>; |
| 37 | rxd1-skew-ps = <0>; |
| 38 | rxd2-skew-ps = <0>; |
| 39 | rxd3-skew-ps = <0>; |
| 40 | txen-skew-ps = <0>; |
| 41 | txc-skew-ps = <2600>; |
| 42 | rxdv-skew-ps = <0>; |
| 43 | rxc-skew-ps = <2000>; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | &i2c0 { |
| 47 | status = "okay"; |
| 48 | |
| 49 | rtc: rtc@68 { |
| 50 | compatible = "stm,m41t82"; |
| 51 | reg = <0x68>; |
| 52 | }; |
| 53 | }; |
| 54 | |
Marek Vasut | aa66c84 | 2015-08-02 22:55:24 +0200 | [diff] [blame] | 55 | &mmc0 { |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 56 | status = "okay"; |
Marek Vasut | 567356a | 2015-11-23 17:06:27 +0100 | [diff] [blame] | 57 | u-boot,dm-pre-reloc; |
Stefan Roese | 76ba23f | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 58 | }; |
Stefan Roese | 2948d19 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 59 | |
| 60 | &qspi { |
| 61 | status = "okay"; |
| 62 | |
| 63 | flash0: n25q00@0 { |
| 64 | #address-cells = <1>; |
| 65 | #size-cells = <1>; |
| 66 | compatible = "n25q00"; |
| 67 | reg = <0>; /* chip select */ |
| 68 | spi-max-frequency = <50000000>; |
| 69 | m25p,fast-read; |
| 70 | page-size = <256>; |
| 71 | block-size = <16>; /* 2^16, 64KB */ |
| 72 | read-delay = <4>; /* delay value in read data capture register */ |
| 73 | tshsl-ns = <50>; |
| 74 | tsd2d-ns = <50>; |
| 75 | tchsh-ns = <4>; |
| 76 | tslch-ns = <4>; |
| 77 | }; |
| 78 | }; |
Marek Vasut | ad3c96a | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 79 | |
| 80 | &usb1 { |
| 81 | status = "okay"; |
| 82 | }; |