Octavo OSD335 AM335 Series Скачать руководство пользователя страница 12

11 

Using Ethernet with OSD335x-  

AM335x System in Package

 

Rev.1 2/18/2019

 

Octavo Systems LLC 

Copyright 2019 

4

 

Setting up Ethernet (Device Tree) 

By default, most Ethernet PHYs follow the IEEE 802.3 (clause 22.2.4) management 
register set.  While each PHY will have vendor specific extensions, the standardization 
of the management register set means that it is straight forward to set up an Ethernet 
PHY within Linux to interface with the OSD335x Family of devices.  In order to get 
Ethernet working within Linux, we must properly specify the device tree properties.  This 
section will walk through the information necessary for the Linux device tree. 

 

Most of the device tree declaration for the AM335x Ethernet MAC has been done in  the 
device tree include files for the OSD335x Family of devices (

osd335x-sm.dtsi

 and 

osd335x-csip.dtsi

 which can be found a

https://github.com/octavosystems/OSD335x-

Device-Tree

). In the main device tree file for your board, you will need to: 

1. 

Define the Pin MUX for each Ethernet Interface:  

For each of the pins used for 

a given Ethernet interface, you need to configure the internal pullups/pulldowns 
and set the pinmux mode (MII/RMII/RGMII).  This needs to be done when the 
Ethernet interface is enabled (i.e. 

cpsw_default

 state) and disabled (i.e. 

cpsw_sleep

 state).  An example configuring Ethernet MAC 1 as an RGMII 

interface is shown in 

Error! Reference source not found.

.  Similarly, you need 

to configure the pins for the MDIO interface as shown in 

Error! Reference 

source not found.

.

 

Perk:  

We strongly recommend reading 

OSD335x Lesson 2: Linux Device Tree

 article 

before moving forward in this section. The article will help you understand device 
tree usage and configuration, which is necessary to follow the rest of this section. 

Содержание OSD335 AM335 Series

Страница 1: ...s application note will help you quickly get started interfacing an Ethernet PHY with the OSD335x the AM335x System in Package Family of Devices This document will showcase reference designs which can...

Страница 2: ...s Using AM335x Ethernet 2 2 2 Additional Ethernet PHYs 3 3 Design Example and Recommendations for Using Ethernet with the AM335x System in Package 4 3 1 Schematics 4 3 2 Layout 7 3 2 1 Dual Ethernet E...

Страница 3: ...Y are 1 Power Consumption 2 Throughput Speed 10 100 1000Mbps 3 Package type and size 4 Driver support 5 Hardware Errata 6 Ease of availability 2 1 Reference Designs Using AM335x Ethernet Reference Des...

Страница 4: ...struments http www ti com interface ethernet phy overview html Microchip https www microchip com design centers ethernet ethernet devices products ethernet phys Marvell https www marvell com transceiv...

Страница 5: ...ics and layout Reference design files for this design will be available in the future Please sign up for documentation updates to be notified when they are available 3 1 Schematics When connecting an...

Страница 6: ...5 Using Ethernet with OSD335x AM335x System in Package Rev 1 2 18 2019 Octavo Systems LLC Copyright 2019 Figure 1 PHY 1 Ethernet Connections...

Страница 7: ...nections When creating a dual AM335x Ethernet design it is critical that each PHY have a different MDIO address This will allow the single MDIO bus to communicate and configure each PHY Additionally i...

Страница 8: ...out design 1 Use only 45o 135o angles in traces to avoid signal reflections 2 Trace widths should be constant to maintain uniform impedance 3 Length match TX_CLK TXDx and RX_CLK RXDx signals between A...

Страница 9: ...8 Using Ethernet with OSD335x AM335x System in Package Rev 1 2 18 2019 Octavo Systems LLC Copyright 2019 Figure 3 OSD3358 SM RED Ethernet PHY Layout Example...

Страница 10: ...mend that you focus on careful placement and routing of a single Ethernet PHY and port Once that Ethernet PHY and port are placed and routed to your satisfaction the layout can be replicated easily fo...

Страница 11: ...10 Using Ethernet with OSD335x AM335x System in Package Rev 1 2 18 2019 Octavo Systems LLC Copyright 2019 Figure 5 Dual Ethernet Power Layer Example...

Страница 12: ...Family of devices osd335x sm dtsi and osd335x csip dtsi which can be found at https github com octavosystems OSD335x Device Tree In the main device tree file for your board you will need to 1 Define t...

Страница 13: ...with OSD335x AM335x System in Package Rev 1 2 18 2019 Octavo Systems LLC Copyright 2019 Figure 6 OSD3358 SM RED Pin Mux Example Ethernet MAC 1 as RGMII Interface Figure 7 OSD3358 SM RED Pin Mux Examp...

Страница 14: ...io phandle as shown in Figure 9 Figure 9 OSD3358 SM RED s davinci_mdio phandle example 4 Set PHY ID As discussed above each Ethernet PHY has a specific PHY address that is set in hardware using pull u...

Страница 15: ...lin com linux latest source Documentation devicetree bindings n et ethernet txt as shown in Figure 10 Figure 10 PHY ID and PHY Mode Figure 11 PHY_ADDR 2 0 0x04 for Eth PHY 6 Additional Properties for...

Страница 16: ..._id This could be a typo in the device tree or improper detection of the PHY address based on the pull up pull down resistors on the PHY configuration pins In this error message the Ethernet PHY phy_i...

Страница 17: ...there are bad packets on the network 2 Use an oscilloscope to view Ethernet signals Unfortunately a higher end oscilloscope is required to view the PHY to RJ45 Port connections However lower cost osc...

Страница 18: ...17 Using Ethernet with OSD335x AM335x System in Package Rev 1 2 18 2019 Octavo Systems LLC Copyright 2019...

Отзывы: