Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | b415bad | 2015-06-21 17:28:53 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
Marek Vasut | b415bad | 2015-06-21 17:28:53 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include "socfpga_cyclone5.dtsi" |
| 7 | |
| 8 | / { |
| 9 | model = "Terasic SoCkit"; |
| 10 | compatible = "altr,socfpga-cyclone5", "altr,socfpga"; |
| 11 | |
| 12 | chosen { |
| 13 | bootargs = "console=ttyS0,115200"; |
| 14 | }; |
| 15 | |
Marek Vasut | 90576c9 | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 16 | aliases { |
Marek Vasut | b415bad | 2015-06-21 17:28:53 +0200 | [diff] [blame] | 17 | ethernet0 = &gmac1; |
Marek Vasut | 90576c9 | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 18 | udc0 = &usb1; |
| 19 | }; |
Marek Vasut | b415bad | 2015-06-21 17:28:53 +0200 | [diff] [blame] | 20 | |
| 21 | memory { |
| 22 | name = "memory"; |
| 23 | device_type = "memory"; |
| 24 | reg = <0x0 0x40000000>; /* 1GB */ |
| 25 | }; |
| 26 | |
| 27 | soc { |
| 28 | u-boot,dm-pre-reloc; |
| 29 | }; |
| 30 | }; |
| 31 | |
| 32 | &gmac1 { |
| 33 | status = "okay"; |
| 34 | phy-mode = "rgmii"; |
| 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>; |
| 44 | }; |
| 45 | |
| 46 | &gpio0 { |
| 47 | status = "okay"; |
| 48 | }; |
| 49 | |
| 50 | &gpio1 { |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
| 54 | &gpio2 { |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | &i2c0 { |
| 59 | status = "okay"; |
| 60 | |
| 61 | rtc: rtc@68 { |
| 62 | compatible = "stm,m41t82"; |
| 63 | reg = <0x68>; |
| 64 | }; |
| 65 | }; |
| 66 | |
| 67 | &mmc0 { |
| 68 | status = "okay"; |
| 69 | u-boot,dm-pre-reloc; |
| 70 | }; |
| 71 | |
| 72 | &qspi { |
| 73 | status = "okay"; |
| 74 | u-boot,dm-pre-reloc; |
| 75 | |
| 76 | flash0: n25q00@0 { |
| 77 | u-boot,dm-pre-reloc; |
| 78 | #address-cells = <1>; |
| 79 | #size-cells = <1>; |
| 80 | compatible = "n25q00", "spi-flash"; |
| 81 | reg = <0>; /* chip select */ |
| 82 | spi-max-frequency = <50000000>; |
| 83 | m25p,fast-read; |
| 84 | page-size = <256>; |
| 85 | block-size = <16>; /* 2^16, 64KB */ |
Jason Rush | feaa3f9 | 2018-01-23 17:13:10 -0600 | [diff] [blame] | 86 | cdns,tshsl-ns = <50>; |
| 87 | cdns,tsd2d-ns = <50>; |
| 88 | cdns,tchsh-ns = <4>; |
| 89 | cdns,tslch-ns = <4>; |
Marek Vasut | b415bad | 2015-06-21 17:28:53 +0200 | [diff] [blame] | 90 | }; |
| 91 | }; |
Marek Vasut | 90576c9 | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 92 | |
| 93 | &usb1 { |
| 94 | status = "okay"; |
| 95 | }; |