Thread (16 messages) 16 messages, 8 authors, 2021-01-22

Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support

From: DENG Qingfang <dqfext@gmail.com>
Date: 2021-01-19 03:21:54
Also in: linux-arm-kernel, linux-devicetree, lkml, netdev

Hi Linus,

On Mon, Jan 18, 2021 at 10:55 PM Linus Walleij [off-list ref] wrote:
So for offset 0..14 this becomes bits
0, 1, 2, 4, 5, 6, 8, 9, 10, 12  ... 18

What is the logic in this and is it what you intend?
Yes. Bit 0..2 are phy 0's LED 0..2, bit 4..6 are phy 1's LED 0..2, etc.
Please add a comment explaining what the offset is supposed
to become for offsets 0..14 and why.
I already added to mt7530.h, perhaps I should copy it here?
quoted
+       gc->ngpio = 15;
And it really IS 15 not 16? Not that I know network equipment
very well...
Yes, 3 LEDs for each phy.
Yours,
Linus Walleij
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help