Skip to contentSkip to conversation

Meson GXL and Rockchip PHY based on same IP?

DISCUSSION Heiner Kallweit 5 participants 7 messages Jul 30, 2022 – Aug 1, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Meson GXL and Rockchip ethernet PHY drivers have quite something in common. They share a number of non-standard registers, using the same bits and same bank handling. This makes me think they they may be using the same IP. However they have different quirk handling. But this doesn't rule out that actually they would need the same quirk handling. Eventually it might be possible to merge both drivers.
When working on the Meson GXL PHY driver, did you ever come across this similarity?

#1 lore raw

Hi Heiner,

Quoted 6 lines · Heiner Kallweit

Meson GXL and Rockchip ethernet PHY drivers have quite something in common. They share a number of non-standard registers, using the same bits and same bank handling. This makes me think they they may be using the same IP. However they have different quirk handling. But this doesn't rule out that actually they would need the same quirk handling.

You made me curious and I found the following public Microchip LAN83C185 datasheet: [0]
Page 27 has a "SMI REGISTER MAPPING" which matches the definitions in meson-gxl.c.
Also on page 33 the interrupt source bits are a 100% match with the INTSRC_* marcos in meson-gxl.c

Whether this means that:
- Amlogic SoCs embed a LAN83C185
- LAN83C185 is based on the same IP core (possibly not even designed by Amlogic or SMSC)
- the SMI interface design is something that one hardware engineer brought from one company to another
- ...something else
is something I can't tell

Best regards,
Martin

[0] https://ww1.microchip.com/downloads/en/DeviceDoc/LAN83C185-Data-Sheet-DS00002808A.pdf

#2 lore raw
Quoted 9 lines · Martin Blumenstingl

Hi Heiner,

Quoted 6 lines · Heiner Kallweit

Meson GXL and Rockchip ethernet PHY drivers have quite something in common. They share a number of non-standard registers, using the same bits and same bank handling. This makes me think they they may be using the same IP. However they have different quirk handling. But this doesn't rule out that actually they would need the same quirk handling.

Quoted 7 lines

You made me curious and I found the following public Microchip LAN83C185 datasheet: [0]
Page 27 has a "SMI REGISTER MAPPING" which matches the definitions in meson-gxl.c.
Also on page 33 the interrupt source bits are a 100% match with the INTSRC_* marcos in meson-gxl.c

Great, thanks for investigating!

Quoted 15 lines

Whether this means that:
- Amlogic SoCs embed a LAN83C185
- LAN83C185 is based on the same IP core (possibly not even designed by Amlogic or SMSC)
- the SMI interface design is something that one hardware engineer brought from one company to another
- ...something else
is something I can't tell

Best regards,
Martin

[0] https://ww1.microchip.com/downloads/en/DeviceDoc/LAN83C185-Data-Sheet-DS00002808A.pdf

#3 lore raw
Quoted 11 lines · Heiner Kallweit
Quoted 9 lines · Martin Blumenstingl

Hi Heiner,

Quoted 6 lines · Heiner Kallweit

Meson GXL and Rockchip ethernet PHY drivers have quite something in common. They share a number of non-standard registers, using the same bits and same bank handling. This makes me think they they may be using the same IP. However they have different quirk handling. But this doesn't rule out that actually they would need the same quirk handling.

Quoted 17 lines
Quoted 7 lines

You made me curious and I found the following public Microchip LAN83C185 datasheet: [0]
Page 27 has a "SMI REGISTER MAPPING" which matches the definitions in meson-gxl.c.
Also on page 33 the interrupt source bits are a 100% match with the INTSRC_* marcos in meson-gxl.c

Great, thanks for investigating!

Quoted 8 lines

Whether this means that:
- Amlogic SoCs embed a LAN83C185
- LAN83C185 is based on the same IP core (possibly not even designed by Amlogic or SMSC)
- the SMI interface design is something that one hardware engineer brought from one company to another
- ...something else
is something I can't tell

Per Jerome, both are OmniPHY IP.

Quoted 13 lines
Quoted 7 lines

Best regards,
Martin

[0] https://ww1.microchip.com/downloads/en/DeviceDoc/LAN83C185-Data-Sheet-DS00002808A.pdf

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

reviewer
#4 lore raw
Quoted 30 lines · Da Xue
Quoted 11 lines · Heiner Kallweit
Quoted 9 lines · Martin Blumenstingl

Hi Heiner,

Quoted 6 lines · Heiner Kallweit

Meson GXL and Rockchip ethernet PHY drivers have quite something in common. They share a number of non-standard registers, using the same bits and same bank handling. This makes me think they they may be using the same IP. However they have different quirk handling. But this doesn't rule out that actually they would need the same quirk handling.

Quoted 17 lines
Quoted 7 lines

You made me curious and I found the following public Microchip LAN83C185 datasheet: [0]
Page 27 has a "SMI REGISTER MAPPING" which matches the definitions in meson-gxl.c.
Also on page 33 the interrupt source bits are a 100% match with the INTSRC_* marcos in meson-gxl.c

Great, thanks for investigating!

Quoted 8 lines

Whether this means that:
- Amlogic SoCs embed a LAN83C185
- LAN83C185 is based on the same IP core (possibly not even designed by Amlogic or SMSC)
- the SMI interface design is something that one hardware engineer brought from one company to another
- ...something else
is something I can't tell

Quoted 2 lines

Per Jerome, both are OmniPHY IP.

I believe it to be the case, yes.

However, the version of the IP could be different.
The integration the SoC vendor did is very likely to be different too.

I'd be in favor of keeping things the way they are now.
I don't think merging the drivers now is really worth the effort. With the uncertainty there is around SoC integration, It could bring more problems that it solves down the line.

Quoted 14 lines
Quoted 14 lines
Quoted 8 lines

Best regards,
Martin

[0] https://ww1.microchip.com/downloads/en/DeviceDoc/LAN83C185-Data-Sheet-DS00002808A.pdf

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#5 lore raw
Quoted 7 lines
Quoted 2 lines

Per Jerome, both are OmniPHY IP.

I believe it to be the case, yes.

However, the version of the IP could be different.
The integration the SoC vendor did is very likely to be different too.

It has been pointed out that they have different quirks. It would be good to check if any of the quirks in one should be applied to the other.

Andrew

#6 lore raw
In reply to Da Xue
Quoted 1 line

Per Jerome, both are OmniPHY IP.

NXP bought OmniPHY in 2018. So we should keep an eye on NXP PHY drivers.

Andrew