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