AN 706: Routing HPS Peripheral Signals to the FPGA External Interface

ID 683659
Date 5/07/2018
Public

1.2.8.3. Device Tree Setup

Generate the device tree. EMAC0 is enabled in the device tree source, as shown below, and the I2C0 code source maintains its default settings.


aliases   {   
                  ethernet0 = "/soc/ethernet@ff700000";
          }; 
ethernet@ff700000 {
                     compatible = "altr,socfpga-stmmac","snps,dwmac-3.70a", "snps,dwmac";
                     reg = <0xff700000 0x2000>;
                     interrupts = <0x0 0x73 0x4>;
                     interrupt-names = "macirq";
                     mac-address = [00 00 00 00 00 00];
                     clocks = <0xd>;
                     clock-names = "stmmaceth";
                     status = "okay";
                     phy-mode = "mii";
                     phy-add r= <0xffffffff>;
                     snsp,
                  };