SJA1105 Configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SJA1105 Configuration

341 Views
jianghao
Contributor II

Using the GMAC interface of S32K344 to connect with SJA1105, according to the manual, after enabling the auto-negotiation function on the RGMII port, and then sending a complete "static configuration table" to SJA1105 via the SPI interface, it is possible to adaptively obtain the actual 2.5/25/125 MHz clocks required by the RGMII port. Thus, it is possible to adaptively determine whether manual dynamic clock frequency division is needed to obtain 125 MHz/25 MHz/2.5 MHz clocks?image.png

0 Kudos
Reply
2 Replies

237 Views
PavelL
NXP Employee
NXP Employee

Hello @jianghao ,

I think there is a small terminology mix-up here regarding Auto‑Negotiation vs. RGMII interface clocking.

Auto‑Negotiation is not a function of RGMII. RGMII is just the parallel MAC↔MAC / MAC↔PHY interface (data + source‑synchronous clocks). The link partner “Auto‑Negotiation” (speed/duplex capability exchange) happens on the PHY line side (e.g., 100BASE‑TX / 1000BASE‑T / 100BASE‑T1 etc.), not on the RGMII pins. In other words, S32K344 EMAC and SJA1105 do not “negotiate” speed over RGMII in the way SGMII/PCS-based links can.

The SJA1105 is an SPI-managed switch; you must load a static configuration after reset/power-up, and this configuration defines per-port interface mode and operational parameters. The typical software model is “configure and keep,” with only limited dynamic updates at runtime.

If your S32K344 EMAC ↔ SJA1105 connection is a MAC‑to‑MAC (PHY-less) RGMII link, the usual approach is to treat it as a fixed link and keep it at a chosen speed (S32K344 EMAC doesn't support 1Gbps).

Best regards,

Pavel

0 Kudos
Reply

208 Views
jianghao
Contributor II

@PavelL Thanks, I understand.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2353659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESJA1105%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2353659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EUsing%20the%20GMAC%20interface%20of%20S32K344%20to%20connect%20with%20SJA1105%2C%20according%20to%20the%20manual%2C%20after%20enabling%20the%20auto-negotiation%20function%20on%20the%20RGMII%20port%2C%20and%20then%20sending%20a%20complete%20%22static%20configuration%20table%22%20to%20SJA1105%20via%20the%20SPI%20interface%2C%20it%20is%20possible%20to%20adaptively%20obtain%20the%20actual%202.5%2F25%2F125%20MHz%20clocks%20required%20by%20the%20RGMII%20port.%20Thus%2C%20it%20is%20possible%20to%20adaptively%20determine%20whether%20manual%20dynamic%20clock%20frequency%20division%20is%20needed%20to%20obtain%20125%20MHz%2F25%20MHz%2F2.5%20MHz%20clocks%3F%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382951iDCAD666FFCA300D1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355784%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SJA1105%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355784%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233505%22%20target%3D%22_blank%22%3E%40PavelL%3C%2FA%3E%26nbsp%3BThanks%2C%20I%20understand.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SJA1105%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F256141%22%20target%3D%22_blank%22%3E%40jianghao%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20think%20there%20is%20a%20small%20terminology%20mix-up%20here%20regarding%20Auto%E2%80%91Negotiation%20vs.%20RGMII%20interface%20clocking.%3C%2FP%3E%0A%3CP%3EAuto%E2%80%91Negotiation%20is%20not%20a%20function%20of%20RGMII.%26nbsp%3BRGMII%20is%20just%20the%20parallel%20MAC%E2%86%94MAC%20%2F%20MAC%E2%86%94PHY%20interface%20(data%20%2B%20source%E2%80%91synchronous%20clocks).%20The%20link%20partner%20%E2%80%9CAuto%E2%80%91Negotiation%E2%80%9D%20(speed%2Fduplex%20capability%20exchange)%20happens%20on%20the%20PHY%20line%20side%20(e.g.%2C%20100BASE%E2%80%91TX%20%2F%201000BASE%E2%80%91T%20%2F%20100BASE%E2%80%91T1%20etc.)%2C%20not%20on%20the%20RGMII%20pins.%20In%20other%20words%2C%20S32K344%20EMAC%20and%20SJA1105%20do%20not%20%E2%80%9Cnegotiate%E2%80%9D%20speed%20over%20RGMII%20in%20the%20way%20SGMII%2FPCS-based%20links%20can.%3C%2FP%3E%0A%3CP%3EThe%20SJA1105%20is%20an%20SPI-managed%20switch%3B%20you%20must%20load%20a%20static%20configuration%20after%20reset%2Fpower-up%2C%20and%20this%20configuration%20defines%20per-port%20interface%20mode%20and%20operational%20parameters.%20The%20typical%20software%20model%20is%20%E2%80%9Cconfigure%20and%20keep%2C%E2%80%9D%20with%20only%20limited%20dynamic%20updates%20at%20runtime.%3C%2FP%3E%0A%3CP%3EIf%20your%20S32K344%20EMAC%20%E2%86%94%20SJA1105%20connection%20is%20a%20MAC%E2%80%91to%E2%80%91MAC%20(PHY-less)%20RGMII%20link%2C%20the%20usual%20approach%20is%20to%20treat%20it%20as%20a%20fixed%20link%20and%20keep%20it%20at%20a%20chosen%20speed%20(S32K344%20EMAC%20doesn't%20support%201Gbps).%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E