| 1 |
// SPDX-License-Identifier: GPL-2.0-only |
| 2 |
/* |
| 3 |
* Copyright Altera Corporation (C) 2015. All rights reserved. |
| 4 |
*/ |
| 5 |
|
| 6 |
#include "socfpga_stratix10.dtsi" |
| 7 |
|
| 8 |
/ { |
| 9 |
model = "SoCFPGA Stratix 10 SoCDK"; |
| 10 |
compatible = "altr,socfpga-stratix10-socdk", "altr,socfpga-stratix10"; |
| 11 |
|
| 12 |
aliases { |
| 13 |
serial0 = &uart0; |
| 14 |
ethernet0 = &gmac0; |
| 15 |
ethernet1 = &gmac1; |
| 16 |
ethernet2 = &gmac2; |
| 17 |
}; |
| 18 |
|
| 19 |
chosen { |
| 20 |
stdout-path = "serial0:115200n8"; |
| 21 |
}; |
| 22 |
|
| 23 |
leds { |
| 24 |
compatible = "gpio-leds"; |
| 25 |
led-hps0 { |
| 26 |
label = "hps_led0"; |
| 27 |
gpios = <&portb 20 GPIO_ACTIVE_HIGH>; |
| 28 |
}; |
| 29 |
|
| 30 |
led-hps1 { |
| 31 |
label = "hps_led1"; |
| 32 |
gpios = <&portb 19 GPIO_ACTIVE_HIGH>; |
| 33 |
}; |
| 34 |
|
| 35 |
led-hps2 { |
| 36 |
label = "hps_led2"; |
| 37 |
gpios = <&portb 21 GPIO_ACTIVE_HIGH>; |
| 38 |
}; |
| 39 |
}; |
| 40 |
|
| 41 |
memory@80000000 { |
| 42 |
device_type = "memory"; |
| 43 |
/* We expect the bootloader to fill in the reg */ |
| 44 |
reg = <0 0x80000000 0 0>; |
| 45 |
}; |
| 46 |
|
| 47 |
ref_033v: regulator-v-ref { |
| 48 |
compatible = "regulator-fixed"; |
| 49 |
regulator-name = "0.33V"; |
| 50 |
regulator-min-microvolt = <330000>; |
| 51 |
regulator-max-microvolt = <330000>; |
| 52 |
}; |
| 53 |
}; |
| 54 |
|
| 55 |
&gpio1 { |
| 56 |
status = "okay"; |
| 57 |
}; |
| 58 |
|
| 59 |
&gmac2 { |
| 60 |
status = "okay"; |
| 61 |
phy-mode = "rgmii"; |
| 62 |
phy-handle = <&phy0>; |
| 63 |
|
| 64 |
max-frame-size = <9000>; |
| 65 |
|
| 66 |
mdio0 { |
| 67 |
#address-cells = <1>; |
| 68 |
#size-cells = <0>; |
| 69 |
compatible = "snps,dwmac-mdio"; |
| 70 |
phy0: ethernet-phy@0 { |
| 71 |
reg = <4>; |
| 72 |
|
| 73 |
txd0-skew-ps = <0>; /* -420ps */ |
| 74 |
txd1-skew-ps = <0>; /* -420ps */ |
| 75 |
txd2-skew-ps = <0>; /* -420ps */ |
| 76 |
txd3-skew-ps = <0>; /* -420ps */ |
| 77 |
rxd0-skew-ps = <420>; /* 0ps */ |
| 78 |
rxd1-skew-ps = <420>; /* 0ps */ |
| 79 |
rxd2-skew-ps = <420>; /* 0ps */ |
| 80 |
rxd3-skew-ps = <420>; /* 0ps */ |
| 81 |
txen-skew-ps = <0>; /* -420ps */ |
| 82 |
txc-skew-ps = <900>; /* 0ps */ |
| 83 |
rxdv-skew-ps = <420>; /* 0ps */ |
| 84 |
rxc-skew-ps = <1680>; /* 780ps */ |
| 85 |
}; |
| 86 |
}; |
| 87 |
}; |
| 88 |
|
| 89 |
&nand { |
| 90 |
status = "okay"; |
| 91 |
|
| 92 |
nand@0 { |
| 93 |
reg = <0>; |
| 94 |
#address-cells = <1>; |
| 95 |
#size-cells = <1>; |
| 96 |
nand-bus-width = <16>; |
| 97 |
|
| 98 |
partition@0 { |
| 99 |
label = "u-boot"; |
| 100 |
reg = <0 0x200000>; |
| 101 |
}; |
| 102 |
|
| 103 |
partition@200000 { |
| 104 |
label = "root"; |
| 105 |
reg = <0x200000 0x3fe00000>; |
| 106 |
}; |
| 107 |
}; |
| 108 |
}; |
| 109 |
|
| 110 |
&osc1 { |
| 111 |
clock-frequency = <25000000>; |
| 112 |
}; |
| 113 |
|
| 114 |
&uart0 { |
| 115 |
status = "okay"; |
| 116 |
}; |
| 117 |
|
| 118 |
&usb0 { |
| 119 |
status = "okay"; |
| 120 |
disable-over-current; |
| 121 |
}; |
| 122 |
|
| 123 |
&watchdog0 { |
| 124 |
status = "okay"; |
| 125 |
}; |
| 126 |
|
| 127 |
&i2c2 { |
| 128 |
status = "okay"; |
| 129 |
clock-frequency = <100000>; |
| 130 |
i2c-sda-falling-time-ns = <890>; /* hcnt */ |
| 131 |
i2c-scl-falling-time-ns = <890>; /* lcnt */ |
| 132 |
|
| 133 |
adc@14 { |
| 134 |
compatible = "lltc,ltc2497"; |
| 135 |
reg = <0x14>; |
| 136 |
vref-supply = <&ref_033v>; |
| 137 |
}; |
| 138 |
|
| 139 |
temp@4c { |
| 140 |
compatible = "maxim,max1619"; |
| 141 |
reg = <0x4c>; |
| 142 |
}; |
| 143 |
|
| 144 |
eeprom@51 { |
| 145 |
compatible = "atmel,24c32"; |
| 146 |
reg = <0x51>; |
| 147 |
pagesize = <32>; |
| 148 |
}; |
| 149 |
|
| 150 |
rtc@68 { |
| 151 |
compatible = "dallas,ds1339"; |
| 152 |
reg = <0x68>; |
| 153 |
}; |
| 154 |
}; |
| 155 |
|
| 156 |
&qspi { |
| 157 |
status = "okay"; |
| 158 |
flash@0 { |
| 159 |
compatible = "micron,mt25qu02g", "jedec,spi-nor"; |
| 160 |
reg = <0>; |
| 161 |
spi-max-frequency = <100000000>; |
| 162 |
|
| 163 |
m25p,fast-read; |
| 164 |
cdns,read-delay = <1>; |
| 165 |
cdns,tshsl-ns = <50>; |
| 166 |
cdns,tsd2d-ns = <50>; |
| 167 |
cdns,tchsh-ns = <4>; |
| 168 |
cdns,tslch-ns = <4>; |
| 169 |
|
| 170 |
partitions { |
| 171 |
compatible = "fixed-partitions"; |
| 172 |
#address-cells = <1>; |
| 173 |
#size-cells = <1>; |
| 174 |
|
| 175 |
qspi_boot: partition@0 { |
| 176 |
label = "Boot and fpga data"; |
| 177 |
reg = <0x0 0x03fe0000>; |
| 178 |
}; |
| 179 |
|
| 180 |
qspi_rootfs: partition@3fe0000 { |
| 181 |
label = "Root Filesystem - JFFS2"; |
| 182 |
reg = <0x03fe0000 0x0c020000>; |
| 183 |
}; |
| 184 |
}; |
| 185 |
}; |
| 186 |
}; |