Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 Stefan Roese <sr@denx.de> |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [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" |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | model = "SoCFPGA Cyclone V SR1500"; |
| 11 | compatible = "anonymous,socfpga-sr1500", "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"; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | aliases { |
| 19 | /* |
Stefan Roese | 72887e3 | 2016-04-18 14:22:04 +0200 | [diff] [blame] | 20 | * This allows the ethaddr uboot environment variable |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 21 | * contents to be added to the gmac1 device tree blob. |
| 22 | */ |
| 23 | ethernet0 = &gmac1; |
| 24 | }; |
| 25 | |
| 26 | memory@0 { |
| 27 | name = "memory"; |
| 28 | device_type = "memory"; |
| 29 | reg = <0x0 0x40000000>; /* 1GB */ |
| 30 | }; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | &gmac1 { |
| 34 | status = "okay"; |
| 35 | phy-mode = "rgmii"; |
| 36 | }; |
| 37 | |
| 38 | &gpio0 { |
| 39 | status = "okay"; |
| 40 | }; |
| 41 | |
| 42 | &gpio1 { |
| 43 | status = "okay"; |
| 44 | }; |
| 45 | |
| 46 | &gpio2 { |
| 47 | status = "okay"; |
| 48 | }; |
| 49 | |
Simon Goldschmidt | 15616b5 | 2018-11-02 11:54:52 +0100 | [diff] [blame] | 50 | &porta { |
| 51 | bank-name = "porta"; |
| 52 | }; |
| 53 | |
| 54 | &portb { |
| 55 | bank-name = "portb"; |
| 56 | }; |
| 57 | |
| 58 | &portc { |
| 59 | bank-name = "portc"; |
| 60 | }; |
| 61 | |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 62 | &i2c0 { |
| 63 | status = "okay"; |
| 64 | speed-mode = <0>; |
| 65 | }; |
| 66 | |
| 67 | &i2c1 { |
| 68 | status = "okay"; |
| 69 | speed-mode = <0>; |
| 70 | }; |
| 71 | |
| 72 | &mmc0 { |
| 73 | status = "okay"; |
| 74 | bus-width = <8>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 75 | bootph-all; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | &uart0 { |
| 79 | status = "okay"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 80 | bootph-all; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | &usb1 { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &watchdog0 { |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
| 91 | &qspi { |
| 92 | status = "okay"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 93 | bootph-all; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 94 | |
| 95 | flash0: n25q00@0 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 96 | bootph-all; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 97 | #address-cells = <1>; |
| 98 | #size-cells = <1>; |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 99 | compatible = "n25q00", "jedec,spi-nor"; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 100 | reg = <0>; /* chip select */ |
Stefan Roese | 85e8439 | 2016-03-03 16:57:39 +0100 | [diff] [blame] | 101 | spi-max-frequency = <100000000>; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 102 | m25p,fast-read; |
| 103 | page-size = <256>; |
| 104 | block-size = <16>; /* 2^16, 64KB */ |
Jason Rush | feaa3f9 | 2018-01-23 17:13:10 -0600 | [diff] [blame] | 105 | cdns,tshsl-ns = <50>; |
| 106 | cdns,tsd2d-ns = <50>; |
| 107 | cdns,tchsh-ns = <4>; |
| 108 | cdns,tslch-ns = <4>; |
Stefan Roese | bf5ed2e | 2015-11-18 11:06:09 +0100 | [diff] [blame] | 109 | }; |
| 110 | }; |