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 &gmac0 {
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 &mmc {
0103         status = "okay";
0104         cap-sd-highspeed;
0105         cap-mmc-highspeed;
0106         broken-cd;
0107         bus-width = <4>;
0108 };
0109 
0110 &osc1 {
0111         clock-frequency = <25000000>;
0112 };
0113 
0114 &uart0 {
0115         status = "okay";
0116 };
0117 
0118 &usb0 {
0119         status = "okay";
0120         disable-over-current;
0121 };
0122 
0123 &watchdog0 {
0124         status = "okay";
0125 };
0126 
0127 &i2c1 {
0128         status = "okay";
0129         clock-frequency = <100000>;
0130         i2c-sda-falling-time-ns = <890>;  /* hcnt */
0131         i2c-sdl-falling-time-ns = <890>;  /* lcnt */
0132 
0133         adc@14 {
0134                 compatible = "lltc,ltc2497";
0135                 reg = <0x14>;
0136                 vref-supply = <&ref_033v>;
0137         };
0138 
0139         temp@4c {
0140                 compatible = "maxim,max1619";
0141                 reg = <0x4c>;
0142         };
0143 
0144         eeprom@51 {
0145                 compatible = "atmel,24c32";
0146                 reg = <0x51>;
0147                 pagesize = <32>;
0148         };
0149 
0150         rtc@68 {
0151                 compatible = "dallas,ds1339";
0152                 reg = <0x68>;
0153         };
0154 };
0155 
0156 &qspi {
0157         status = "okay";
0158         flash@0 {
0159                 #address-cells = <1>;
0160                 #size-cells = <1>;
0161                 compatible = "micron,mt25qu02g", "jedec,spi-nor";
0162                 reg = <0>;
0163                 spi-max-frequency = <100000000>;
0164 
0165                 m25p,fast-read;
0166                 cdns,page-size = <256>;
0167                 cdns,block-size = <16>;
0168                 cdns,read-delay = <1>;
0169                 cdns,tshsl-ns = <50>;
0170                 cdns,tsd2d-ns = <50>;
0171                 cdns,tchsh-ns = <4>;
0172                 cdns,tslch-ns = <4>;
0173 
0174                 partitions {
0175                         compatible = "fixed-partitions";
0176                         #address-cells = <1>;
0177                         #size-cells = <1>;
0178 
0179                         qspi_boot: partition@0 {
0180                                 label = "Boot and fpga data";
0181                                 reg = <0x0 0x03FE0000>;
0182                         };
0183 
0184                         qspi_rootfs: partition@3FE0000 {
0185                                 label = "Root Filesystem - JFFS2";
0186                                 reg = <0x03FE0000 0x0C020000>;
0187                         };
0188                 };
0189         };
0190 };