Lines Matching +full:led +full:- +full:4
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
7 * Copyright (c) 2016-2017 Savoir-faire Linux Inc.
28 /* - Modes with PHY suffix use output instead of input clock
29 * - Modes without RMII or RGMII use MII
30 * - Modes without speed do not have a fixed speed specified in the manual
31 * ("DC to x MHz" - variable clock support?)
312 /* Offset 0x16: LED Control */
316 #define MV88E6XXX_PORT_LED_CONTROL_POINTER_LED01_CTRL (0x00 << 12) /* Control for LED 0 and 1 */
318 …8E6XXX_PORT_LED_CONTROL_POINTER_CNTL_SPECIAL (0x07 << 12) /* Control for the Port's Special LED */
320 /* Selection masks valid for either port 1,2,3,4 or 5 */
322 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL_MASK GENMASK(7, 4)
323 /* Selection control for LED 0 and 1, ports 5 and 6 only has LED 0
325 * 0..3 LED 0 control selector on ports 1-5
326 * 4..7 LED 1 control selector on ports 1-4 on port 5 this controls LED 0 of port 6
328 * Sel Port LED Function for the 6352 family:
329 …* 0 1-4 0 Link/Act/Speed by Blink Rate (off=no link, on=link, blink=activity, blink speed=lin…
330 * 1-4 1 Port 2's Special LED
331 * 5-6 0 Port 5 Link/Act (off=no link, on=link, blink=activity)
332 * 5-6 1 Port 6 Link/Act (off=no link, on=link 1000, blink=activity)
333 * 1 1-4 0 100/1000 Link/Act (off=no link, on=100 or 1000 link, blink=activity)
334 * 1-4 1 10/100 Link Act (off=no link, on=10 or 100 link, blink=activity)
335 * 5-6 0 Fiber 100 Link/Act (off=no link, on=link 100, blink=activity)
336 * 5-6 1 Fiber 1000 Link/Act (off=no link, on=link 1000, blink=activity)
337 * 2 1-4 0 1000 Link/Act (off=no link, on=link 1000, blink=activity)
338 * 1-4 1 10/100 Link/Act (off=no link, on=10 or 100 link, blink=activity)
339 * 5-6 0 Fiber 1000 Link/Act (off=no link, on=link 1000, blink=activity)
340 * 5-6 1 Fiber 100 Link/Act (off=no link, on=link 100, blink=activity)
341 * 3 1-4 0 Link/Act (off=no link, on=link, blink=activity)
342 * 1-4 1 1000 Link (off=no link, on=1000 link)
343 * 5-6 0 Port 0's Special LED
344 * 5-6 1 Fiber Link (off=no link, on=link)
345 * 4 1-4 0 Port 0's Special LED
346 * 1-4 1 Port 1's Special LED
347 * 5-6 0 Port 1's Special LED
348 * 5-6 1 Port 5 Link/Act (off=no link, on=link, blink=activity)
349 * 5 1-4 0 Reserved
350 * 1-4 1 Reserved
351 * 5-6 0 Port 2's Special LED
352 * 5-6 1 Port 6 Link (off=no link, on=link)
353 * 6 1-4 0 Duplex/Collision (off=half-duplex,on=full-duplex,blink=collision)
354 * 1-4 1 10/1000 Link/Act (off=no link, on=10 or 1000 link, blink=activity)
355 * 5-6 0 Port 5 Duplex/Collision (off=half-duplex, on=full-duplex, blink=col)
356 * 5-6 1 Port 6 Duplex/Collision (off=half-duplex, on=full-duplex, blink=col)
357 * 7 1-4 0 10/1000 Link/Act (off=no link, on=10 or 1000 link, blink=activity)
358 * 1-4 1 10/1000 Link (off=no link, on=10 or 1000 link)
359 …* 5-6 0 Port 5 Link/Act/Speed by Blink rate (off=no link, on=link, blink=activity, blink sp…
360 …* 5-6 1 Port 6 Link/Act/Speed by Blink rate (off=no link, on=link, blink=activity, blink s…
361 * 8 1-4 0 Link (off=no link, on=link)
362 * 1-4 1 Activity (off=no link, blink on=activity)
363 * 5-6 0 Port 6 Link/Act (off=no link, on=link, blink=activity)
364 * 5-6 1 Port 0's Special LED
365 * 9 1-4 0 10 Link (off=no link, on=10 link)
366 * 1-4 1 100 Link (off=no link, on=100 link)
367 * 5-6 0 Reserved
368 * 5-6 1 Port 1's Special LED
369 * a 1-4 0 10 Link/Act (off=no link, on=10 link, blink=activity)
370 * 1-4 1 100 Link/Act (off=no link, on=100 link, blink=activity)
371 * 5-6 0 Reserved
372 * 5-6 1 Port 2's Special LED
373 * b 1-4 0 100/1000 Link (off=no link, on=100 or 1000 link)
374 * 1-4 1 10/100 Link (off=no link, on=100 link, blink=activity)
375 * 5-6 0 Reserved
376 * 5-6 1 Reserved
399 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL0 (0x0 << 4)
400 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL1 (0x1 << 4)
401 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL2 (0x2 << 4)
402 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL3 (0x3 << 4)
403 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL4 (0x4 << 4)
404 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL5 (0x5 << 4)
405 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL6 (0x6 << 4)
406 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL7 (0x7 << 4)
407 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL8 (0x8 << 4)
408 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SEL9 (0x9 << 4)
409 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SELA (0xa << 4)
410 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SELB (0xb << 4)
411 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SELC (0xc << 4)
412 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SELD (0xd << 4)
413 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SELE (0xe << 4)
414 #define MV88E6XXX_PORT_LED_CONTROL_LED1_SELF (0xf << 4)
415 /* Stretch and Blink Rate Control (Index 0x06 of LED Control) */
416 /* Pulse Stretch Selection for all LED's on this port */
417 #define MV88E6XXX_PORT_LED_CONTROL_0x06_PULSE_STRETCH_NONE (0 << 4)
418 #define MV88E6XXX_PORT_LED_CONTROL_0x06_PULSE_STRETCH_21MS (1 << 4)
419 #define MV88E6XXX_PORT_LED_CONTROL_0x06_PULSE_STRETCH_42MS (2 << 4)
420 #define MV88E6XXX_PORT_LED_CONTROL_0x06_PULSE_STRETCH_84MS (3 << 4)
421 #define MV88E6XXX_PORT_LED_CONTROL_0x06_PULSE_STRETCH_168MS (4 << 4)
427 #define MV88E6XXX_PORT_LED_CONTROL_0x06_BLINK_RATE_336MS 4
429 /* Control for Special LED (Index 0x7 of LED Control on Port0) */
430 #define MV88E6XXX_PORT_LED_CONTROL_0x07_P0_LAN_LINKACT_SHIFT 0 /* bits 6:0 LAN Link Activity LED */
431 /* Control for Special LED (Index 0x7 of LED Control on Port 1) */
432 #define MV88E6XXX_PORT_LED_CONTROL_0x07_P1_WAN_LINKACT_SHIFT 0 /* bits 6:0 WAN Link Activity LED */
433 /* Control for Special LED (Index 0x7 of LED Control on Port 2) */
450 /* Offset 0x18: Port IEEE Priority Remapping Registers (0-3) */
453 /* Offset 0x19: Port IEEE Priority Remapping Registers (4-7) */