1/* 2 * Copyright Altera Corporation (C) 2015. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 11 * more details. 12 * 13 * You should have received a copy of the GNU General Public License along with 14 * this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17#include "socfpga_stratix10.dtsi" 18 19/ { 20 model = "SoCFPGA Stratix 10 SoCDK"; 21 22 aliases { 23 serial0 = &uart0; 24 ethernet0 = &gmac0; 25 ethernet1 = &gmac1; 26 ethernet2 = &gmac2; 27 }; 28 29 chosen { 30 stdout-path = "serial0:115200n8"; 31 }; 32 33 leds { 34 compatible = "gpio-leds"; 35 hps0 { 36 label = "hps_led0"; 37 gpios = <&portb 20 GPIO_ACTIVE_HIGH>; 38 }; 39 40 hps1 { 41 label = "hps_led1"; 42 gpios = <&portb 19 GPIO_ACTIVE_HIGH>; 43 }; 44 45 hps2 { 46 label = "hps_led2"; 47 gpios = <&portb 21 GPIO_ACTIVE_HIGH>; 48 }; 49 }; 50 51 memory { 52 device_type = "memory"; 53 /* We expect the bootloader to fill in the reg */ 54 reg = <0 0 0 0>; 55 }; 56 57 ref_033v: 033-v-ref { 58 compatible = "regulator-fixed"; 59 regulator-name = "0.33V"; 60 regulator-min-microvolt = <330000>; 61 regulator-max-microvolt = <330000>; 62 }; 63 64 soc { 65 clocks { 66 osc1 { 67 clock-frequency = <25000000>; 68 }; 69 }; 70 }; 71}; 72 73&gpio1 { 74 status = "okay"; 75}; 76 77&gmac0 { 78 status = "okay"; 79 phy-mode = "rgmii"; 80 phy-handle = <&phy0>; 81 82 max-frame-size = <9000>; 83 84 mdio0 { 85 #address-cells = <1>; 86 #size-cells = <0>; 87 compatible = "snps,dwmac-mdio"; 88 phy0: ethernet-phy@0 { 89 reg = <4>; 90 91 txd0-skew-ps = <0>; /* -420ps */ 92 txd1-skew-ps = <0>; /* -420ps */ 93 txd2-skew-ps = <0>; /* -420ps */ 94 txd3-skew-ps = <0>; /* -420ps */ 95 rxd0-skew-ps = <420>; /* 0ps */ 96 rxd1-skew-ps = <420>; /* 0ps */ 97 rxd2-skew-ps = <420>; /* 0ps */ 98 rxd3-skew-ps = <420>; /* 0ps */ 99 txen-skew-ps = <0>; /* -420ps */ 100 txc-skew-ps = <900>; /* 0ps */ 101 rxdv-skew-ps = <420>; /* 0ps */ 102 rxc-skew-ps = <1680>; /* 780ps */ 103 }; 104 }; 105}; 106 107&mmc { 108 status = "okay"; 109 cap-sd-highspeed; 110 cap-mmc-highspeed; 111 broken-cd; 112 bus-width = <4>; 113}; 114 115&uart0 { 116 status = "okay"; 117}; 118 119&usb0 { 120 status = "okay"; 121 disable-over-current; 122}; 123 124&watchdog0 { 125 status = "okay"; 126}; 127 128&i2c1 { 129 status = "okay"; 130 clock-frequency = <100000>; 131 i2c-sda-falling-time-ns = <890>; /* hcnt */ 132 i2c-sdl-falling-time-ns = <890>; /* lcnt */ 133 134 adc@14 { 135 compatible = "lltc,ltc2497"; 136 reg = <0x14>; 137 vref-supply = <&ref_033v>; 138 }; 139 140 temp@4c { 141 compatible = "maxim,max1619"; 142 reg = <0x4c>; 143 }; 144 145 eeprom@51 { 146 compatible = "atmel,24c32"; 147 reg = <0x51>; 148 pagesize = <32>; 149 }; 150 151 rtc@68 { 152 compatible = "dallas,ds1339"; 153 reg = <0x68>; 154 }; 155}; 156 157&qspi { 158 flash@0 { 159 #address-cells = <1>; 160 #size-cells = <1>; 161 compatible = "n25q00a"; 162 reg = <0>; 163 spi-max-frequency = <100000000>; 164 165 m25p,fast-read; 166 cdns,page-size = <256>; 167 cdns,block-size = <16>; 168 cdns,read-delay = <1>; 169 cdns,tshsl-ns = <50>; 170 cdns,tsd2d-ns = <50>; 171 cdns,tchsh-ns = <4>; 172 cdns,tslch-ns = <4>; 173 174 partitions { 175 compatible = "fixed-partitions"; 176 #address-cells = <1>; 177 #size-cells = <1>; 178 179 qspi_boot: partition@0 { 180 label = "Boot and fpga data"; 181 reg = <0x0 0x4000000>; 182 }; 183 184 qspi_rootfs: partition@4000000 { 185 label = "Root Filesystem - JFFS2"; 186 reg = <0x4000000 0x4000000>; 187 }; 188 }; 189 }; 190}; 191