xref: /linux/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt (revision 3461522d00c075705d38eb0833ace7ba8c180345)
1a4cc96d1SRaju Lakkaraju* Microsemi - vsc8531 Giga bit ethernet phy
2a4cc96d1SRaju Lakkaraju
3a4cc96d1SRaju LakkarajuOptional properties:
44f58e6dcSAllan W. Nielsen- vsc8531,vddmac	: The vddmac in mV. Allowed values is listed
54f58e6dcSAllan W. Nielsen			  in the first row of Table 1 (below).
64f58e6dcSAllan W. Nielsen			  This property is only used in combination
74f58e6dcSAllan W. Nielsen			  with the 'edge-slowdown' property.
84f58e6dcSAllan W. Nielsen			  Default value is 3300.
9a4cc96d1SRaju Lakkaraju- vsc8531,edge-slowdown	: % the edge should be slowed down relative to
104f58e6dcSAllan W. Nielsen			  the fastest possible edge time.
11a4cc96d1SRaju Lakkaraju			  Edge rate sets the drive strength of the MAC
124f58e6dcSAllan W. Nielsen			  interface output signals.  Changing the
134f58e6dcSAllan W. Nielsen			  drive strength will affect the edge rate of
144f58e6dcSAllan W. Nielsen			  the output signal.  The goal of this setting
154f58e6dcSAllan W. Nielsen			  is to help reduce electrical emission (EMI)
164f58e6dcSAllan W. Nielsen			  by being able to reprogram drive strength
174f58e6dcSAllan W. Nielsen			  and in effect slow down the edge rate if
184f58e6dcSAllan W. Nielsen			  desired.
194f58e6dcSAllan W. Nielsen			  To adjust the edge-slowdown, the 'vddmac'
204f58e6dcSAllan W. Nielsen			  must be specified. Table 1 lists the
214f58e6dcSAllan W. Nielsen			  supported edge-slowdown values for a given
224f58e6dcSAllan W. Nielsen			  'vddmac'.
234f58e6dcSAllan W. Nielsen			  Default value is 0%.
244f58e6dcSAllan W. Nielsen			  Ref: Table:1 - Edge rate change (below).
25e02eef31SQuentin Schulz- vsc8531,led-[N]-mode	: LED mode. Specify how the LED[N] should behave.
26e02eef31SQuentin Schulz			  N depends on the number of LEDs supported by a
27e02eef31SQuentin Schulz			  PHY.
28e02eef31SQuentin Schulz			  Allowed values are defined in
2904d8a0a5SRaju Lakkaraju			  "include/dt-bindings/net/mscc-phy-vsc8531.h".
30e02eef31SQuentin Schulz			  Default values are VSC8531_LINK_1000_ACTIVITY (1),
31e02eef31SQuentin Schulz			  VSC8531_LINK_100_ACTIVITY (2),
32e02eef31SQuentin Schulz			  VSC8531_LINK_ACTIVITY (0) and
33e02eef31SQuentin Schulz			  VSC8531_DUPLEX_COLLISION (8).
34*3461522dSAntoine Tenart- load-save-gpios	: GPIO used for the load/save operation of the PTP
35*3461522dSAntoine Tenart			  hardware clock (PHC).
36e02eef31SQuentin Schulz
37a4cc96d1SRaju Lakkaraju
38a4cc96d1SRaju LakkarajuTable: 1 - Edge rate change
39a4cc96d1SRaju Lakkaraju----------------------------------------------------------------|
40a4cc96d1SRaju Lakkaraju| 		Edge Rate Change (VDDMAC)			|
41a4cc96d1SRaju Lakkaraju|								|
42a4cc96d1SRaju Lakkaraju| 3300 mV	2500 mV		1800 mV		1500 mV		|
43a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
444f58e6dcSAllan W. Nielsen| 0%		0%		0%		0%		|
45a4cc96d1SRaju Lakkaraju| (Fastest)			(recommended)	(recommended)	|
46a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
474f58e6dcSAllan W. Nielsen| 2%		3%		5%		6%		|
48a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
494f58e6dcSAllan W. Nielsen| 4%		6%		9%		14%		|
50a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
514f58e6dcSAllan W. Nielsen| 7%		10%		16%		21%		|
52a4cc96d1SRaju Lakkaraju|(recommended)	(recommended)					|
53a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
544f58e6dcSAllan W. Nielsen| 10%		14%		23%		29%		|
55a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
564f58e6dcSAllan W. Nielsen| 17%		23%		35%		42%		|
57a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
584f58e6dcSAllan W. Nielsen| 29%		37%		52%		58%		|
59a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
604f58e6dcSAllan W. Nielsen| 53%		63%		76%		77%		|
61a4cc96d1SRaju Lakkaraju| (slowest)							|
62a4cc96d1SRaju Lakkaraju|---------------------------------------------------------------|
63a4cc96d1SRaju Lakkaraju
64a4cc96d1SRaju LakkarajuExample:
65a4cc96d1SRaju Lakkaraju
66a4cc96d1SRaju Lakkaraju        vsc8531_0: ethernet-phy@0 {
67a4cc96d1SRaju Lakkaraju                compatible = "ethernet-phy-id0007.0570";
68a4cc96d1SRaju Lakkaraju                vsc8531,vddmac		= <3300>;
694f58e6dcSAllan W. Nielsen                vsc8531,edge-slowdown	= <7>;
7004d8a0a5SRaju Lakkaraju                vsc8531,led-0-mode	= <LINK_1000_ACTIVITY>;
7104d8a0a5SRaju Lakkaraju                vsc8531,led-1-mode	= <LINK_100_ACTIVITY>;
72*3461522dSAntoine Tenart		load-save-gpios		= <&gpio 10 GPIO_ACTIVE_HIGH>;
73a4cc96d1SRaju Lakkaraju        };
74