Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012 Altera Corporation <www.altera.com> |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include "socfpga_cyclone5.dtsi" |
Simon Goldschmidt | 64a12bf | 2019-03-01 20:12:29 +0100 | [diff] [blame] | 7 | #include "socfpga-common-u-boot.dtsi" |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | model = "SoCFPGA Cyclone V IS1"; |
| 11 | compatible = "anonymous,socfpga-is1", "altr,socfpga-cyclone5", "altr,socfpga"; |
| 12 | |
| 13 | chosen { |
| 14 | bootargs = "console=ttyS0,115200"; |
Simon Goldschmidt | 3854a1a | 2018-08-13 21:34:33 +0200 | [diff] [blame] | 15 | stdout-path = "serial0:115200n8"; |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | memory { |
| 19 | name = "memory"; |
| 20 | device_type = "memory"; |
| 21 | reg = <0x0 0x10000000>; |
| 22 | }; |
| 23 | |
| 24 | aliases { |
| 25 | ethernet0 = &gmac1; |
| 26 | udc0 = &usb1; |
| 27 | }; |
| 28 | |
| 29 | regulator_3_3v: 3-3-v-regulator { |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-name = "3.3V"; |
| 32 | regulator-min-microvolt = <3300000>; |
| 33 | regulator-max-microvolt = <3300000>; |
| 34 | }; |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 35 | }; |
| 36 | |
| 37 | &gmac1 { |
| 38 | status = "okay"; |
| 39 | phy-mode = "rgmii"; |
| 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>; |
James Byrne | 457107f | 2019-03-04 17:40:33 +0000 | [diff] [blame] | 46 | txc-skew-ps = <1560>; |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 47 | rxdv-skew-ps = <0>; |
James Byrne | 457107f | 2019-03-04 17:40:33 +0000 | [diff] [blame] | 48 | rxc-skew-ps = <1200>; |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | &gpio1 { |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 55 | &porta { |
| 56 | bank-name = "porta"; |
| 57 | }; |
| 58 | |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 59 | &i2c0 { |
| 60 | status = "okay"; |
| 61 | |
| 62 | eeprom@51 { |
| 63 | compatible = "atmel,24c32"; |
| 64 | reg = <0x51>; |
| 65 | pagesize = <32>; |
| 66 | }; |
| 67 | |
| 68 | rtc@68 { |
| 69 | compatible = "dallas,ds1339"; |
| 70 | reg = <0x68>; |
| 71 | }; |
| 72 | }; |
| 73 | |
| 74 | &mmc0 { |
| 75 | status = "okay"; |
| 76 | u-boot,dm-pre-reloc; |
| 77 | |
| 78 | cd-gpios = <&portb 18 0>; |
| 79 | vmmc-supply = <®ulator_3_3v>; |
| 80 | vqmmc-supply = <®ulator_3_3v>; |
| 81 | }; |
| 82 | |
| 83 | &qspi { |
| 84 | status = "okay"; |
| 85 | u-boot,dm-pre-reloc; |
| 86 | |
| 87 | flash0: n25q00@0 { |
| 88 | u-boot,dm-pre-reloc; |
| 89 | #address-cells = <1>; |
| 90 | #size-cells = <1>; |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 91 | compatible = "n25q00", "jedec,spi-nor"; |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 92 | reg = <0>; /* chip select */ |
| 93 | spi-max-frequency = <100000000>; |
| 94 | m25p,fast-read; |
| 95 | page-size = <256>; |
| 96 | block-size = <16>; /* 2^16, 64KB */ |
Jason Rush | feaa3f9 | 2018-01-23 17:13:10 -0600 | [diff] [blame] | 97 | cdns,tshsl-ns = <50>; |
| 98 | cdns,tsd2d-ns = <50>; |
| 99 | cdns,tchsh-ns = <4>; |
| 100 | cdns,tslch-ns = <4>; |
Pavel Machek | 9802e87 | 2016-06-07 12:37:23 +0200 | [diff] [blame] | 101 | }; |
| 102 | }; |
| 103 | |
| 104 | &usb1 { |
| 105 | status = "okay"; |
| 106 | }; |
Simon Goldschmidt | 3854a1a | 2018-08-13 21:34:33 +0200 | [diff] [blame] | 107 | |
| 108 | &uart0 { |
| 109 | u-boot,dm-pre-reloc; |
| 110 | }; |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 111 | |
| 112 | &watchdog0 { |
| 113 | status = "disabled"; |
| 114 | }; |