xref: /openbmc/linux/Documentation/ABI/testing/sysfs-class-led-trigger-netdev (revision 2ffb8d02a9b60d9190a871cb8466cd0721bc0a49)
106f502f5SBen WhittenWhat:		/sys/class/leds/<led>/device_name
206f502f5SBen WhittenDate:		Dec 2017
306f502f5SBen WhittenKernelVersion:	4.16
406f502f5SBen WhittenContact:	linux-leds@vger.kernel.org
506f502f5SBen WhittenDescription:
606f502f5SBen Whitten		Specifies the network device name to monitor.
706f502f5SBen Whitten
806f502f5SBen WhittenWhat:		/sys/class/leds/<led>/interval
906f502f5SBen WhittenDate:		Dec 2017
1006f502f5SBen WhittenKernelVersion:	4.16
1106f502f5SBen WhittenContact:	linux-leds@vger.kernel.org
1206f502f5SBen WhittenDescription:
1306f502f5SBen Whitten		Specifies the duration of the LED blink in milliseconds.
1406f502f5SBen Whitten		Defaults to 50 ms.
1506f502f5SBen Whitten
16*2ffb8d02SChristian Marangi		With hw_control ON, the interval value MUST be set to the
17*2ffb8d02SChristian Marangi		default value and cannot be changed.
18*2ffb8d02SChristian Marangi		Trying to set any value in this specific mode will return
19*2ffb8d02SChristian Marangi		an EINVAL error.
20*2ffb8d02SChristian Marangi
2106f502f5SBen WhittenWhat:		/sys/class/leds/<led>/link
2206f502f5SBen WhittenDate:		Dec 2017
2306f502f5SBen WhittenKernelVersion:	4.16
2406f502f5SBen WhittenContact:	linux-leds@vger.kernel.org
2506f502f5SBen WhittenDescription:
2606f502f5SBen Whitten		Signal the link state of the named network device.
2754a19b4dSMauro Carvalho Chehab
2806f502f5SBen Whitten		If set to 0 (default), the LED's normal state is off.
2954a19b4dSMauro Carvalho Chehab
3006f502f5SBen Whitten		If set to 1, the LED's normal state reflects the link state
3106f502f5SBen Whitten		of the named network device.
3206f502f5SBen Whitten		Setting this value also immediately changes the LED state.
3306f502f5SBen Whitten
3454a19b4dSMauro Carvalho Chehab
3506f502f5SBen WhittenWhat:		/sys/class/leds/<led>/tx
3606f502f5SBen WhittenDate:		Dec 2017
3706f502f5SBen WhittenKernelVersion:	4.16
3806f502f5SBen WhittenContact:	linux-leds@vger.kernel.org
3906f502f5SBen WhittenDescription:
4006f502f5SBen Whitten		Signal transmission of data on the named network device.
4154a19b4dSMauro Carvalho Chehab
4206f502f5SBen Whitten		If set to 0 (default), the LED will not blink on transmission.
4354a19b4dSMauro Carvalho Chehab
4406f502f5SBen Whitten		If set to 1, the LED will blink for the milliseconds specified
4506f502f5SBen Whitten		in interval to signal transmission.
4606f502f5SBen Whitten
47*2ffb8d02SChristian Marangi		With hw_control ON, the blink interval is controlled by hardware
48*2ffb8d02SChristian Marangi		and won't reflect the value set in interval.
49*2ffb8d02SChristian Marangi
5006f502f5SBen WhittenWhat:		/sys/class/leds/<led>/rx
5106f502f5SBen WhittenDate:		Dec 2017
5206f502f5SBen WhittenKernelVersion:	4.16
5306f502f5SBen WhittenContact:	linux-leds@vger.kernel.org
5406f502f5SBen WhittenDescription:
5506f502f5SBen Whitten		Signal reception of data on the named network device.
5654a19b4dSMauro Carvalho Chehab
5706f502f5SBen Whitten		If set to 0 (default), the LED will not blink on reception.
5854a19b4dSMauro Carvalho Chehab
5906f502f5SBen Whitten		If set to 1, the LED will blink for the milliseconds specified
6006f502f5SBen Whitten		in interval to signal reception.
61*2ffb8d02SChristian Marangi
62*2ffb8d02SChristian Marangi		With hw_control ON, the blink interval is controlled by hardware
63*2ffb8d02SChristian Marangi		and won't reflect the value set in interval.
64*2ffb8d02SChristian Marangi
65*2ffb8d02SChristian MarangiWhat:		/sys/class/leds/<led>/hw_control
66*2ffb8d02SChristian MarangiDate:		Jun 2023
67*2ffb8d02SChristian MarangiKernelVersion:	6.5
68*2ffb8d02SChristian MarangiContact:	linux-leds@vger.kernel.org
69*2ffb8d02SChristian MarangiDescription:
70*2ffb8d02SChristian Marangi		Communicate whether the LED trigger modes are driven by hardware
71*2ffb8d02SChristian Marangi		or software fallback is used.
72*2ffb8d02SChristian Marangi
73*2ffb8d02SChristian Marangi		If 0, the LED is using software fallback to blink.
74*2ffb8d02SChristian Marangi
75*2ffb8d02SChristian Marangi		If 1, the LED is using hardware control to blink and signal the
76*2ffb8d02SChristian Marangi		requested modes.
77*2ffb8d02SChristian Marangi
78*2ffb8d02SChristian MarangiWhat:		/sys/class/leds/<led>/link_10
79*2ffb8d02SChristian MarangiDate:		Jun 2023
80*2ffb8d02SChristian MarangiKernelVersion:	6.5
81*2ffb8d02SChristian MarangiContact:	linux-leds@vger.kernel.org
82*2ffb8d02SChristian MarangiDescription:
83*2ffb8d02SChristian Marangi		Signal the link speed state of 10Mbps of the named network device.
84*2ffb8d02SChristian Marangi
85*2ffb8d02SChristian Marangi		If set to 0 (default), the LED's normal state is off.
86*2ffb8d02SChristian Marangi
87*2ffb8d02SChristian Marangi		If set to 1, the LED's normal state reflects the link state
88*2ffb8d02SChristian Marangi		speed of 10MBps of the named network device.
89*2ffb8d02SChristian Marangi		Setting this value also immediately changes the LED state.
90*2ffb8d02SChristian Marangi
91*2ffb8d02SChristian MarangiWhat:		/sys/class/leds/<led>/link_100
92*2ffb8d02SChristian MarangiDate:		Jun 2023
93*2ffb8d02SChristian MarangiKernelVersion:	6.5
94*2ffb8d02SChristian MarangiContact:	linux-leds@vger.kernel.org
95*2ffb8d02SChristian MarangiDescription:
96*2ffb8d02SChristian Marangi		Signal the link speed state of 100Mbps of the named network device.
97*2ffb8d02SChristian Marangi
98*2ffb8d02SChristian Marangi		If set to 0 (default), the LED's normal state is off.
99*2ffb8d02SChristian Marangi
100*2ffb8d02SChristian Marangi		If set to 1, the LED's normal state reflects the link state
101*2ffb8d02SChristian Marangi		speed of 100Mbps of the named network device.
102*2ffb8d02SChristian Marangi		Setting this value also immediately changes the LED state.
103*2ffb8d02SChristian Marangi
104*2ffb8d02SChristian MarangiWhat:		/sys/class/leds/<led>/link_1000
105*2ffb8d02SChristian MarangiDate:		Jun 2023
106*2ffb8d02SChristian MarangiKernelVersion:	6.5
107*2ffb8d02SChristian MarangiContact:	linux-leds@vger.kernel.org
108*2ffb8d02SChristian MarangiDescription:
109*2ffb8d02SChristian Marangi		Signal the link speed state of 1000Mbps of the named network device.
110*2ffb8d02SChristian Marangi
111*2ffb8d02SChristian Marangi		If set to 0 (default), the LED's normal state is off.
112*2ffb8d02SChristian Marangi
113*2ffb8d02SChristian Marangi		If set to 1, the LED's normal state reflects the link state
114*2ffb8d02SChristian Marangi		speed of 1000Mbps of the named network device.
115*2ffb8d02SChristian Marangi		Setting this value also immediately changes the LED state.
116*2ffb8d02SChristian Marangi
117*2ffb8d02SChristian MarangiWhat:		/sys/class/leds/<led>/half_duplex
118*2ffb8d02SChristian MarangiDate:		Jun 2023
119*2ffb8d02SChristian MarangiKernelVersion:	6.5
120*2ffb8d02SChristian MarangiContact:	linux-leds@vger.kernel.org
121*2ffb8d02SChristian MarangiDescription:
122*2ffb8d02SChristian Marangi		Signal the link half duplex state of the named network device.
123*2ffb8d02SChristian Marangi
124*2ffb8d02SChristian Marangi		If set to 0 (default), the LED's normal state is off.
125*2ffb8d02SChristian Marangi
126*2ffb8d02SChristian Marangi		If set to 1, the LED's normal state reflects the link half
127*2ffb8d02SChristian Marangi		duplex state of the named network device.
128*2ffb8d02SChristian Marangi		Setting this value also immediately changes the LED state.
129*2ffb8d02SChristian Marangi
130*2ffb8d02SChristian MarangiWhat:		/sys/class/leds/<led>/full_duplex
131*2ffb8d02SChristian MarangiDate:		Jun 2023
132*2ffb8d02SChristian MarangiKernelVersion:	6.5
133*2ffb8d02SChristian MarangiContact:	linux-leds@vger.kernel.org
134*2ffb8d02SChristian MarangiDescription:
135*2ffb8d02SChristian Marangi		Signal the link full duplex state of the named network device.
136*2ffb8d02SChristian Marangi
137*2ffb8d02SChristian Marangi		If set to 0 (default), the LED's normal state is off.
138*2ffb8d02SChristian Marangi
139*2ffb8d02SChristian Marangi		If set to 1, the LED's normal state reflects the link full
140*2ffb8d02SChristian Marangi		duplex state of the named network device.
141*2ffb8d02SChristian Marangi		Setting this value also immediately changes the LED state.
142