Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012 Altera Corporation <www.altera.com> |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include "socfpga_cyclone5.dtsi" |
| 7 | |
| 8 | / { |
| 9 | model = "Altera SOCFPGA Cyclone V SoC Development Kit"; |
| 10 | compatible = "altr,socfpga-cyclone5", "altr,socfpga"; |
| 11 | |
| 12 | chosen { |
| 13 | bootargs = "console=ttyS0,115200"; |
| 14 | }; |
| 15 | |
| 16 | memory { |
| 17 | name = "memory"; |
| 18 | device_type = "memory"; |
| 19 | reg = <0x0 0x40000000>; /* 1GB */ |
| 20 | }; |
| 21 | |
| 22 | aliases { |
Stefan Roese | 72887e3 | 2016-04-18 14:22:04 +0200 | [diff] [blame] | 23 | /* this allow the ethaddr uboot environment variable contents |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 24 | * to be added to the gmac1 device tree blob. |
| 25 | */ |
| 26 | ethernet0 = &gmac1; |
Marek Vasut | b935326 | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 27 | udc0 = &usb1; |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | regulator_3_3v: 3-3-v-regulator { |
| 31 | compatible = "regulator-fixed"; |
| 32 | regulator-name = "3.3V"; |
| 33 | regulator-min-microvolt = <3300000>; |
| 34 | regulator-max-microvolt = <3300000>; |
| 35 | }; |
Marek Vasut | fd8eab5 | 2015-12-22 04:15:21 +0100 | [diff] [blame] | 36 | |
| 37 | soc { |
| 38 | u-boot,dm-pre-reloc; |
| 39 | }; |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | &gmac1 { |
| 43 | status = "okay"; |
| 44 | phy-mode = "rgmii"; |
| 45 | |
| 46 | rxd0-skew-ps = <0>; |
| 47 | rxd1-skew-ps = <0>; |
| 48 | rxd2-skew-ps = <0>; |
| 49 | rxd3-skew-ps = <0>; |
| 50 | txen-skew-ps = <0>; |
| 51 | txc-skew-ps = <2600>; |
| 52 | rxdv-skew-ps = <0>; |
| 53 | rxc-skew-ps = <2000>; |
| 54 | }; |
| 55 | |
Georges Savoundararadj | e9a1fd7 | 2017-03-27 22:56:04 -0700 | [diff] [blame] | 56 | &gpio0 { |
| 57 | status = "okay"; |
| 58 | }; |
| 59 | |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 60 | &gpio1 { |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
Georges Savoundararadj | e9a1fd7 | 2017-03-27 22:56:04 -0700 | [diff] [blame] | 64 | &gpio2 { |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 68 | &i2c0 { |
| 69 | status = "okay"; |
| 70 | |
| 71 | eeprom@51 { |
| 72 | compatible = "atmel,24c32"; |
| 73 | reg = <0x51>; |
| 74 | pagesize = <32>; |
| 75 | }; |
| 76 | |
| 77 | rtc@68 { |
| 78 | compatible = "dallas,ds1339"; |
| 79 | reg = <0x68>; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | &mmc0 { |
Dinh Nguyen | 2fcd326 | 2015-10-12 11:59:04 -0500 | [diff] [blame] | 84 | status = "okay"; |
| 85 | u-boot,dm-pre-reloc; |
| 86 | |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 87 | cd-gpios = <&portb 18 0>; |
| 88 | vmmc-supply = <®ulator_3_3v>; |
| 89 | vqmmc-supply = <®ulator_3_3v>; |
| 90 | }; |
| 91 | |
Pavel Machek | f17632c | 2015-04-23 09:14:01 +0200 | [diff] [blame] | 92 | &qspi { |
| 93 | status = "okay"; |
Marek Vasut | 33dde73 | 2016-02-11 15:54:10 +0100 | [diff] [blame] | 94 | u-boot,dm-pre-reloc; |
Pavel Machek | f17632c | 2015-04-23 09:14:01 +0200 | [diff] [blame] | 95 | |
| 96 | flash0: n25q00@0 { |
Marek Vasut | 33dde73 | 2016-02-11 15:54:10 +0100 | [diff] [blame] | 97 | u-boot,dm-pre-reloc; |
Pavel Machek | f17632c | 2015-04-23 09:14:01 +0200 | [diff] [blame] | 98 | #address-cells = <1>; |
| 99 | #size-cells = <1>; |
Simon Goldschmidt | 505fd84 | 2018-01-29 07:36:37 +0100 | [diff] [blame] | 100 | compatible = "n25q00", "spi-flash"; |
Pavel Machek | f17632c | 2015-04-23 09:14:01 +0200 | [diff] [blame] | 101 | reg = <0>; /* chip select */ |
Chin Liang See | 43306e3 | 2015-10-17 08:32:56 -0500 | [diff] [blame] | 102 | spi-max-frequency = <100000000>; |
Pavel Machek | f17632c | 2015-04-23 09:14:01 +0200 | [diff] [blame] | 103 | m25p,fast-read; |
| 104 | page-size = <256>; |
| 105 | block-size = <16>; /* 2^16, 64KB */ |
Jason Rush | feaa3f9 | 2018-01-23 17:13:10 -0600 | [diff] [blame] | 106 | cdns,tshsl-ns = <50>; |
| 107 | cdns,tsd2d-ns = <50>; |
| 108 | cdns,tchsh-ns = <4>; |
| 109 | cdns,tslch-ns = <4>; |
Pavel Machek | f17632c | 2015-04-23 09:14:01 +0200 | [diff] [blame] | 110 | }; |
Marek Vasut | 8656583 | 2014-12-30 21:05:53 +0100 | [diff] [blame] | 111 | }; |
Marek Vasut | b935326 | 2015-12-05 19:24:22 +0100 | [diff] [blame] | 112 | |
| 113 | &usb1 { |
| 114 | status = "okay"; |
| 115 | }; |