
13
Using Ethernet with OSD335x-
AM335x System in Package
Rev.1 2/18/2019
Octavo Systems LLC
Copyright 2019
2.
Enable the Ethernet MAC:
the
mac
node is disabled by default in the include
files. Enable it by setting
status = okay
using the
&mac
phandle as shown in
Figure 8 - OSD3358-SM-RED's &mac phandle Example
3.
Enable the MDIO interface:
the
davinci_mdio
node is disabled by default in the
include files. Enable it by setting
status = okay
using the
&davinci_mdio
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-up or pull-down resistors on given
configuration pins (PHYADx or similar). This PHY address needs to be provided
to the device tree as the
phy_id
under the given Ethernet interface
cpsw_emacx
(x = 0 or 1) phandle. If more than one PHY is connected to the AM335x, each
PHY should be given a unique address. For example, the
phy_id
is set to
<4>
in
the device tree snippet shown in Figure 10 which matches the PHY address set
using PHY_ADDRx hardware pins shown in Figure 11.