[edited to correct some information]
I'm layout out a board with a Raspberry Pi CM4, so it is 1G Ethernet. A magjack with the tab on the bottom lays out easily, with no signals crossing, but I would like a tab on the top in my particular situation. Because the cable is oriented differently, the pinout on top-tab jack is the reverse of the pinout on bottom-tab jack, and now everything crosses. I believe that it is ok to swap certain signals to make the PCB layout easier, and I would like to review what is possible.
Swapping + and - within a pair is ok. A Microchip article (
https://microchip.my.site.com/s/article/Can-the-Ethernet-transformer-pairs-be-swapped) says polarity detection and correction is standard in PHYs these days.
Is swapping entire pairs ok with certain limitations? Suppose a connector has this layout
PCB | | Cable |
Pin 1: TD1+ | | J1: TX1+ |
Pin 2: TD1- | | J2: TX1- |
Pin 3: TD2+ | | J3: TX2+ |
Pin 4: TD2- | | J6: TX2- |
Pin 5: TD3+ | | J4: TX3+ |
Pin 6: TD3- | | J5: TX3- |
Pin 7: TD4+ | | J7: TX4+ |
Pin 8: TD4- | | J8: TX4- |
A crossover cable exchanges TD1 and TD2, and may exchange TD3 and TD4, so those swaps are fine. Exchanges between those 2 groups (e.g. TD1 with TD3) will mess up auto negotiation. If you do such a swap and manually set the speed to 1G on both ends so you don't need auto negotiation, would gigabit Ethernet still work?
I don't need PoE, but how would PoE affect it? From Wikipedia (
https://en.wikipedia.org/wiki/Power_over_Ethernet), it looks like swapping pairs or swapping signals within a pair would mess up 10/100 mode POE, exchanging DC+ and DC-. However, ajb says decent POE implementations have a diode network to handle any combination of pair polarities, so PoE isn't a consideration when swapping signals or pairs.