Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright Altera Corporation (C) 2015. All rights reserved.
0004  */
0005 
0006 #include "socfpga_stratix10.dtsi"
0007 
0008 / {
0009         model = "SoCFPGA Stratix 10 SoCDK";
0010         compatible = "altr,socfpga-stratix10-socdk", "altr,socfpga-stratix10";
0011 
0012         aliases {
0013                 serial0 = &uart0;
0014                 ethernet0 = &gmac0;
0015                 ethernet1 = &gmac1;
0016                 ethernet2 = &gmac2;
0017         };
0018 
0019         chosen {
0020                 stdout-path = "serial0:115200n8";
0021         };
0022 
0023         leds {
0024                 compatible = "gpio-leds";
0025                 hps0 {
0026                         label = "hps_led0";
0027                         gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
0028                 };
0029 
0030                 hps1 {
0031                         label = "hps_led1";
0032                         gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
0033                 };
0034 
0035                 hps2 {
0036                         label = "hps_led2";
0037                         gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
0038                 };
0039         };
0040 
0041         memory {
0042                 device_type = "memory";
0043                 /* We expect the bootloader to fill in the reg */
0044                 reg = <0 0 0 0>;
0045         };
0046 
0047         ref_033v: regulator-v-ref {
0048                 compatible = "regulator-fixed";
0049                 regulator-name = "0.33V";
0050                 regulator-min-microvolt = <330000>;
0051                 regulator-max-microvolt = <330000>;
0052         };
0053 
0054         soc {
0055                 eccmgr {
0056                         sdmmca-ecc@ff8c8c00 {
0057                                 compatible = "altr,socfpga-s10-sdmmc-ecc",
0058                                              "altr,socfpga-sdmmc-ecc";
0059                                 reg = <0xff8c8c00 0x100>;
0060                                 altr,ecc-parent = <&mmc>;
0061                                 interrupts = <14 4>,
0062                                              <15 4>;
0063                         };
0064                 };
0065         };
0066 };
0067 
0068 &gpio1 {
0069         status = "okay";
0070 };
0071 
0072 &gmac2 {
0073         status = "okay";
0074         phy-mode = "rgmii";
0075         phy-handle = <&phy0>;
0076 
0077         max-frame-size = <9000>;
0078 
0079         mdio0 {
0080                 #address-cells = <1>;
0081                 #size-cells = <0>;
0082                 compatible = "snps,dwmac-mdio";
0083                 phy0: ethernet-phy@0 {
0084                         reg = <4>;
0085 
0086                         txd0-skew-ps = <0>; /* -420ps */
0087                         txd1-skew-ps = <0>; /* -420ps */
0088                         txd2-skew-ps = <0>; /* -420ps */
0089                         txd3-skew-ps = <0>; /* -420ps */
0090                         rxd0-skew-ps = <420>; /* 0ps */
0091                         rxd1-skew-ps = <420>; /* 0ps */
0092                         rxd2-skew-ps = <420>; /* 0ps */
0093                         rxd3-skew-ps = <420>; /* 0ps */
0094                         txen-skew-ps = <0>; /* -420ps */
0095                         txc-skew-ps = <900>; /* 0ps */
0096                         rxdv-skew-ps = <420>; /* 0ps */
0097                         rxc-skew-ps = <1680>; /* 780ps */
0098                 };
0099         };
0100 };
0101 
0102 &nand {
0103         status = "okay";
0104 
0105         flash@0 {
0106                 #address-cells = <1>;
0107                 #size-cells = <1>;
0108                 reg = <0>;
0109                 nand-bus-width = <16>;
0110 
0111                 partition@0 {
0112                         label = "u-boot";
0113                         reg = <0 0x200000>;
0114                 };
0115 
0116                 partition@200000 {
0117                         label = "root";
0118                         reg = <0x200000 0x3fe00000>;
0119                 };
0120         };
0121 };
0122 
0123 &osc1 {
0124         clock-frequency = <25000000>;
0125 };
0126 
0127 &uart0 {
0128         status = "okay";
0129 };
0130 
0131 &usb0 {
0132         status = "okay";
0133         disable-over-current;
0134 };
0135 
0136 &watchdog0 {
0137         status = "okay";
0138 };
0139 
0140 &i2c2 {
0141         status = "okay";
0142         clock-frequency = <100000>;
0143         i2c-sda-falling-time-ns = <890>;  /* hcnt */
0144         i2c-sdl-falling-time-ns = <890>;  /* lcnt */
0145 
0146         adc@14 {
0147                 compatible = "lltc,ltc2497";
0148                 reg = <0x14>;
0149                 vref-supply = <&ref_033v>;
0150         };
0151 
0152         temp@4c {
0153                 compatible = "maxim,max1619";
0154                 reg = <0x4c>;
0155         };
0156 
0157         eeprom@51 {
0158                 compatible = "atmel,24c32";
0159                 reg = <0x51>;
0160                 pagesize = <32>;
0161         };
0162 
0163         rtc@68 {
0164                 compatible = "dallas,ds1339";
0165                 reg = <0x68>;
0166         };
0167 };
0168 
0169 &qspi {
0170         status = "okay";
0171         flash@0 {
0172                 #address-cells = <1>;
0173                 #size-cells = <1>;
0174                 compatible = "micron,mt25qu02g", "jedec,spi-nor";
0175                 reg = <0>;
0176                 spi-max-frequency = <100000000>;
0177 
0178                 m25p,fast-read;
0179                 cdns,page-size = <256>;
0180                 cdns,block-size = <16>;
0181                 cdns,read-delay = <1>;
0182                 cdns,tshsl-ns = <50>;
0183                 cdns,tsd2d-ns = <50>;
0184                 cdns,tchsh-ns = <4>;
0185                 cdns,tslch-ns = <4>;
0186 
0187                 partitions {
0188                         compatible = "fixed-partitions";
0189                         #address-cells = <1>;
0190                         #size-cells = <1>;
0191 
0192                         qspi_boot: partition@0 {
0193                                 label = "Boot and fpga data";
0194                                 reg = <0x0 0x03FE0000>;
0195                         };
0196 
0197                         qspi_rootfs: partition@3FE0000 {
0198                                 label = "Root Filesystem - JFFS2";
0199                                 reg = <0x03FE0000 0x0C020000>;
0200                         };
0201                 };
0202         };
0203 };