Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier:     GPL-2.0
0002 /*
0003  * Copyright (C) 2019, Intel Corporation
0004  */
0005 #include "socfpga_agilex.dtsi"
0006 
0007 / {
0008         model = "SoCFPGA Agilex SoCDK";
0009         compatible = "intel,socfpga-agilex-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         leds {
0023                 compatible = "gpio-leds";
0024                 led0 {
0025                         label = "hps_led0";
0026                         gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
0027                 };
0028 
0029                 led1 {
0030                         label = "hps_led1";
0031                         gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
0032                 };
0033 
0034                 led2 {
0035                         label = "hps_led2";
0036                         gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
0037                 };
0038         };
0039 
0040         memory {
0041                 device_type = "memory";
0042                 /* We expect the bootloader to fill in the reg */
0043                 reg = <0 0 0 0>;
0044         };
0045 };
0046 
0047 &gpio1 {
0048         status = "okay";
0049 };
0050 
0051 &gmac2 {
0052         status = "okay";
0053         phy-mode = "rgmii";
0054         phy-handle = <&phy0>;
0055 
0056         max-frame-size = <9000>;
0057 
0058         mdio0 {
0059                 #address-cells = <1>;
0060                 #size-cells = <0>;
0061                 compatible = "snps,dwmac-mdio";
0062                 phy0: ethernet-phy@0 {
0063                         reg = <4>;
0064 
0065                         txd0-skew-ps = <0>; /* -420ps */
0066                         txd1-skew-ps = <0>; /* -420ps */
0067                         txd2-skew-ps = <0>; /* -420ps */
0068                         txd3-skew-ps = <0>; /* -420ps */
0069                         rxd0-skew-ps = <420>; /* 0ps */
0070                         rxd1-skew-ps = <420>; /* 0ps */
0071                         rxd2-skew-ps = <420>; /* 0ps */
0072                         rxd3-skew-ps = <420>; /* 0ps */
0073                         txen-skew-ps = <0>; /* -420ps */
0074                         txc-skew-ps = <900>; /* 0ps */
0075                         rxdv-skew-ps = <420>; /* 0ps */
0076                         rxc-skew-ps = <1680>; /* 780ps */
0077                 };
0078         };
0079 };
0080 
0081 &nand {
0082         status = "okay";
0083 
0084         flash@0 {
0085                 #address-cells = <1>;
0086                 #size-cells = <1>;
0087                 reg = <0>;
0088                 nand-bus-width = <16>;
0089 
0090                 partition@0 {
0091                         label = "u-boot";
0092                         reg = <0 0x200000>;
0093                 };
0094                 partition@200000 {
0095                         label = "root";
0096                         reg = <0x200000 0x3fe00000>;
0097                 };
0098         };
0099 };
0100 
0101 &osc1 {
0102         clock-frequency = <25000000>;
0103 };
0104 
0105 &uart0 {
0106         status = "okay";
0107 };
0108 
0109 &usb0 {
0110         status = "okay";
0111         disable-over-current;
0112 };
0113 
0114 &watchdog0 {
0115         status = "okay";
0116 };