lkml.org 
[lkml]   [2020]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC leds + net-next v3 2/2] net: phy: marvell: add support for PHY LEDs via LED class
Hi!

> +static const struct marvell_led_mode_info marvell_led_mode_info[] = {
> + { "link", { 0x0, -1, 0x0, -1, -1, -1, }, 0 },
> + { "link/act", { 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, }, 0 },
> + { "1Gbps/100Mbps/10Mbps", { 0x2, -1, -1, -1, -1, -1, }, 0 },

is this "1Gbps-10Mbps"?

> + { "act", { 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, }, 0 },
> + { "blink-act", { 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, }, 0 },
> + { "tx", { 0x5, -1, 0x5, -1, 0x5, 0x5, }, 0 },
> + { "tx", { -1, -1, -1, 0x5, -1, -1, }, L3V5_TRANS },
> + { "rx", { -1, -1, -1, -1, 0x0, 0x0, }, 0 },
> + { "rx", { -1, 0x0, -1, -1, -1, -1, }, L1V0_RECV },
> + { "copper", { 0x6, -1, -1, -1, -1, -1, }, 0 },
> + { "copper", { -1, 0x0, -1, -1, -1, -1, }, L1V0_COPPER },
> + { "1Gbps", { 0x7, -1, -1, -1, -1, -1, }, 0 },
> + { "link/rx", { -1, 0x2, -1, 0x2, 0x2, 0x2, }, 0 },
> + { "100Mbps-fiber", { -1, 0x5, -1, -1, -1, -1, }, L1V5_100_FIBER },
> + { "100Mbps-10Mbps", { -1, 0x5, -1, -1, -1, -1, }, L1V5_100_10 },
> + { "1Gbps-100Mbps", { -1, 0x6, -1, -1, -1, -1, }, 0 },
> + { "1Gbps-10Mbps", { -1, -1, 0x6, 0x6, -1, -1, }, 0 },
> + { "100Mbps", { -1, 0x7, -1, -1, -1, -1, }, 0 },
> + { "10Mbps", { -1, -1, 0x7, -1, -1, -1, }, 0 },
> + { "fiber", { -1, -1, -1, 0x0, -1, -1, }, L3V0_FIBER },
> + { "fiber", { -1, -1, -1, 0x7, -1, -1, }, L3V7_FIBER },
> + { "FullDuplex", { -1, -1, -1, 0x7, -1, -1, }, L3V7_DUPLEX },
> + { "FullDuplex", { -1, -1, -1, -1, 0x6, 0x6, }, 0 },
> + { "FullDuplex/collision", { -1, -1, -1, -1, 0x7, 0x7, }, 0 },
> + { "FullDuplex/collision", { -1, -1, 0x2, -1, -1, -1, }, L2V2_DUPLEX },
> + { "ptp", { -1, -1, 0x2, -1, -1, -1, }, L2V2_PTP },
> + { "init", { -1, -1, 0x2, -1, -1, -1, }, L2V2_INIT },
> + { "los", { -1, -1, -1, 0x0, -1, -1, }, L3V0_LOS },
> + { "hi-z", { 0xa, 0xa, 0xa, 0xa, 0xa, 0xa, }, 0 },
> + { "blink", { 0xb, 0xb, 0xb, 0xb, 0xb, 0xb, }, 0 },
> +};

Certainly more documentation will be required here, what "ptp" setting
does, for example, is not very obvious to me.

Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-07-25 11:24    [W:0.955 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site