Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2018 Intel Corporation |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include "socfpga_stratix10.dtsi" |
| 7 | |
| 8 | / { |
| 9 | model = "SoCFPGA Stratix 10 SoCDK"; |
| 10 | |
| 11 | aliases { |
Ooi, Joyce | 04fe193 | 2019-11-21 06:06:12 -0800 | [diff] [blame] | 12 | ethernet0 = &gmac0; |
Ley Foon Tan | a14e34c | 2019-06-13 16:17:23 +0800 | [diff] [blame] | 13 | i2c0 = &i2c1; |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 14 | serial0 = &uart0; |
| 15 | }; |
| 16 | |
| 17 | chosen { |
| 18 | stdout-path = "serial0:115200n8"; |
| 19 | }; |
| 20 | |
| 21 | leds { |
| 22 | compatible = "gpio-leds"; |
| 23 | hps0 { |
| 24 | label = "hps_led0"; |
| 25 | gpios = <&portb 20 GPIO_ACTIVE_HIGH>; |
| 26 | }; |
| 27 | |
| 28 | hps1 { |
| 29 | label = "hps_led1"; |
| 30 | gpios = <&portb 19 GPIO_ACTIVE_HIGH>; |
| 31 | }; |
| 32 | |
| 33 | hps2 { |
| 34 | label = "hps_led2"; |
| 35 | gpios = <&portb 21 GPIO_ACTIVE_HIGH>; |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | memory { |
Ley Foon Tan | e4b8146 | 2019-11-08 10:56:26 +0800 | [diff] [blame] | 40 | #address-cells = <2>; |
| 41 | #size-cells = <2>; |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 42 | device_type = "memory"; |
Ley Foon Tan | b9ff153 | 2019-03-22 01:24:03 +0800 | [diff] [blame] | 43 | /* 4GB */ |
| 44 | reg = <0 0x00000000 0 0x80000000>, |
| 45 | <1 0x80000000 0 0x80000000>; |
Ley Foon Tan | ad259df | 2018-07-12 19:13:33 +0800 | [diff] [blame] | 46 | u-boot,dm-pre-reloc; |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 47 | }; |
| 48 | }; |
| 49 | |
| 50 | &gpio1 { |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
| 54 | &gmac0 { |
| 55 | status = "okay"; |
| 56 | phy-mode = "rgmii"; |
| 57 | phy-handle = <&phy0>; |
| 58 | |
| 59 | max-frame-size = <3800>; |
| 60 | |
| 61 | mdio0 { |
| 62 | #address-cells = <1>; |
| 63 | #size-cells = <0>; |
| 64 | compatible = "snps,dwmac-mdio"; |
| 65 | phy0: ethernet-phy@0 { |
| 66 | reg = <4>; |
| 67 | |
| 68 | txd0-skew-ps = <0>; /* -420ps */ |
| 69 | txd1-skew-ps = <0>; /* -420ps */ |
| 70 | txd2-skew-ps = <0>; /* -420ps */ |
| 71 | txd3-skew-ps = <0>; /* -420ps */ |
| 72 | rxd0-skew-ps = <420>; /* 0ps */ |
| 73 | rxd1-skew-ps = <420>; /* 0ps */ |
| 74 | rxd2-skew-ps = <420>; /* 0ps */ |
| 75 | rxd3-skew-ps = <420>; /* 0ps */ |
| 76 | txen-skew-ps = <0>; /* -420ps */ |
Ooi, Joyce | c94f1c6 | 2019-11-21 06:48:56 -0800 | [diff] [blame] | 77 | txc-skew-ps = <900>; /* 0ps */ |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 78 | rxdv-skew-ps = <420>; /* 0ps */ |
| 79 | rxc-skew-ps = <1680>; /* 780ps */ |
| 80 | }; |
| 81 | }; |
| 82 | }; |
| 83 | |
Ley Foon Tan | a14e34c | 2019-06-13 16:17:23 +0800 | [diff] [blame] | 84 | &i2c1 { |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 88 | &mmc { |
| 89 | status = "okay"; |
| 90 | cap-sd-highspeed; |
Ley Foon Tan | 80a77ad | 2018-05-18 22:05:35 +0800 | [diff] [blame] | 91 | cap-mmc-highspeed; |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 92 | broken-cd; |
| 93 | bus-width = <4>; |
Ley Foon Tan | 80a77ad | 2018-05-18 22:05:35 +0800 | [diff] [blame] | 94 | drvsel = <3>; |
Yau Wai Gan | f5190c9 | 2022-05-24 15:02:28 +0800 | [diff] [blame] | 95 | smplsel = <2>; |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 96 | }; |
| 97 | |
Ley Foon Tan | 2f59cf1 | 2019-04-03 13:45:02 +0800 | [diff] [blame] | 98 | &qspi { |
| 99 | flash0: flash@0 { |
| 100 | #address-cells = <1>; |
| 101 | #size-cells = <1>; |
| 102 | compatible = "n25q00a"; |
| 103 | reg = <0>; |
| 104 | spi-max-frequency = <50000000>; |
| 105 | |
| 106 | m25p,fast-read; |
| 107 | cdns,page-size = <256>; |
| 108 | cdns,block-size = <16>; |
| 109 | cdns,read-delay = <1>; |
| 110 | cdns,tshsl-ns = <50>; |
| 111 | cdns,tsd2d-ns = <50>; |
| 112 | cdns,tchsh-ns = <4>; |
| 113 | cdns,tslch-ns = <4>; |
| 114 | |
| 115 | partitions { |
| 116 | compatible = "fixed-partitions"; |
| 117 | #address-cells = <1>; |
| 118 | #size-cells = <1>; |
| 119 | |
| 120 | qspi_boot: partition@0 { |
| 121 | label = "Boot and fpga data"; |
| 122 | reg = <0x0 0x4000000>; |
| 123 | }; |
| 124 | |
| 125 | qspi_rootfs: partition@4000000 { |
| 126 | label = "Root Filesystem - JFFS2"; |
| 127 | reg = <0x4000000 0x4000000>; |
| 128 | }; |
| 129 | }; |
| 130 | }; |
| 131 | }; |
| 132 | |
Dinh Nguyen | 41ca4ca | 2018-03-08 21:39:26 -0600 | [diff] [blame] | 133 | &uart0 { |
| 134 | status = "okay"; |
| 135 | }; |
| 136 | |
| 137 | &usb0 { |
| 138 | status = "okay"; |
| 139 | }; |