Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier:     GPL-2.0
0002 /*
0003  * Copyright (C) 2021, Intel Corporation
0004  */
0005 #include "socfpga_agilex.dtsi"
0006 
0007 / {
0008         model = "eASIC N5X SoCDK";
0009         compatible = "intel,n5x-socdk", "intel,socfpga-agilex";
0010 
0011         aliases {
0012                 serial0 = &uart0;
0013                 ethernet0 = &gmac0;
0014                 ethernet1 = &gmac1;
0015                 ethernet2 = &gmac2;
0016         };
0017 
0018         chosen {
0019                 stdout-path = "serial0:115200n8";
0020         };
0021 
0022         memory {
0023                 device_type = "memory";
0024                 /* We expect the bootloader to fill in the reg */
0025                 reg = <0 0 0 0>;
0026         };
0027 
0028         soc {
0029                 sdram_edac: memory-controller@f87f8000 {
0030                         compatible = "snps,ddrc-3.80a";
0031                         reg = <0xf87f8000 0x400>;
0032                         interrupts = <0 175 4>;
0033                         status = "okay";
0034                 };
0035         };
0036 };
0037 
0038 &clkmgr {
0039         compatible = "intel,easic-n5x-clkmgr";
0040 };
0041 
0042 &gmac0 {
0043         status = "okay";
0044         phy-mode = "rgmii";
0045         phy-handle = <&phy0>;
0046 
0047         max-frame-size = <9000>;
0048 
0049         mdio0 {
0050                 #address-cells = <1>;
0051                 #size-cells = <0>;
0052                 compatible = "snps,dwmac-mdio";
0053                 phy0: ethernet-phy@0 {
0054                         reg = <4>;
0055 
0056                         txd0-skew-ps = <0>; /* -420ps */
0057                         txd1-skew-ps = <0>; /* -420ps */
0058                         txd2-skew-ps = <0>; /* -420ps */
0059                         txd3-skew-ps = <0>; /* -420ps */
0060                         rxd0-skew-ps = <420>; /* 0ps */
0061                         rxd1-skew-ps = <420>; /* 0ps */
0062                         rxd2-skew-ps = <420>; /* 0ps */
0063                         rxd3-skew-ps = <420>; /* 0ps */
0064                         txen-skew-ps = <0>; /* -420ps */
0065                         txc-skew-ps = <900>; /* 0ps */
0066                         rxdv-skew-ps = <420>; /* 0ps */
0067                         rxc-skew-ps = <1680>; /* 780ps */
0068                 };
0069         };
0070 };
0071 
0072 &mmc {
0073         status = "okay";
0074         cap-sd-highspeed;
0075         broken-cd;
0076         bus-width = <4>;
0077 };
0078 
0079 &osc1 {
0080         clock-frequency = <25000000>;
0081 };
0082 
0083 &qspi {
0084         status = "okay";
0085         flash@0 {
0086                 #address-cells = <1>;
0087                 #size-cells = <1>;
0088                 compatible = "micron,mt25qu02g", "jedec,spi-nor";
0089                 reg = <0>;
0090                 spi-max-frequency = <100000000>;
0091 
0092                 m25p,fast-read;
0093                 cdns,page-size = <256>;
0094                 cdns,block-size = <16>;
0095                 cdns,read-delay = <2>;
0096                 cdns,tshsl-ns = <50>;
0097                 cdns,tsd2d-ns = <50>;
0098                 cdns,tchsh-ns = <4>;
0099                 cdns,tslch-ns = <4>;
0100 
0101                 partitions {
0102                         compatible = "fixed-partitions";
0103                         #address-cells = <1>;
0104                         #size-cells = <1>;
0105 
0106                         qspi_boot: partition@0 {
0107                                 label = "Boot and fpga data";
0108                                 reg = <0x0 0x03FE0000>;
0109                         };
0110 
0111                         qspi_rootfs: partition@3FE0000 {
0112                                 label = "Root Filesystem - JFFS2";
0113                                 reg = <0x03FE0000 0x0C020000>;
0114                         };
0115                 };
0116         };
0117 };
0118 
0119 &uart0 {
0120         status = "okay";
0121 };
0122 
0123 &usb0 {
0124         status = "okay";
0125         disable-over-current;
0126 };
0127 
0128 &watchdog0 {
0129         status = "okay";
0130 };