PHY Port switching in S32G-VNP-RDB2

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

PHY Port switching in S32G-VNP-RDB2

645 Views
Atkinson
Contributor V

Hi,

I am facing up a Issue in SJA1110 Switch where 100BASE-T1 PHY when i am configuring it in AUTOMATIC Mode its switching to MASTER Mode when the END_DEVICE in SLAVE mode.

In another situation where END_DEVICE in MASTER Mode configured board to be in AUTOMATIC Mode interfacing the end device Board the board need to be switched to SLAVE mode but its not switching as Expected.

I have configured AUTOMATIC MODE its not switching to SLAVE but when i configure explicitly for SLAVE mode the END_DEVICE is working since its in MASTER. but this needs to be done it 

What are the test cases can be conducted to identify what would be the root cause of the issue?
How can i check the register Values whether its switching MASTER/SLAVE or not ?
How can i resolve this issue !!

Regards
Atkinson

Tags (1)
0 Kudos
Reply
6 Replies

633 Views
PavelL
NXP Employee
NXP Employee

Hello @Atkinson ,

Thank you for your report. Based on your description, it seems there is a misunderstanding regarding the meaning of PHY Role = Automatic in the context of the SJA1110 Automotive Ethernet switch.

In automotive applications, auto-negotiation is typically not used, because the roles (MASTER/SLAVE) are predefined and fixed during system design. Therefore, the "Automatic" setting does not imply dynamic negotiation. Instead, it means the PHY will follow the default configuration, which is usually determined by pin strapping.

Here is the definition of phy_role_t from the SJA1110 SDK 1.0.2 :

typedef enum
{
PHY_ROLE_AUTO = 2, /**< Automatic configuration, i.e. use the default of the device. Could be pin strapping or auto-negotiation of master/slave parameter. */
PHY_ROLE_MASTER = 1, /**< Master */
PHY_ROLE_SLAVE = 0 /**< Slave */
} phy_role_t;

To verify the current role of the PHY, please read the B100T1_PMA_CONTROL register, specifically bit 14, which indicates the MASTER/SLAVE status. Refer to UM11107 (Software user manual for SJA1110) for detailed register descriptions.

Please note: The MASTER/SLAVE setting is only relevant during the initial PHY link negotiation. After the link is established, both PHYs behave as equal peers, including support for features like TC10 sleep/wake signaling.

Best regards,

Pavel

0 Kudos
Reply

598 Views
Atkinson
Contributor V

Hi @PavelL 

So from your suggestion,

As you mentioned, Pin strapping will be happening during the startup process logic state of specific pins at power-on or reset. so, it will be setting up automatically the mode either MASTER / SLAVE 
So i am seeing it's switching to MASTER but not to SLAVE in Board so how can i make that to switch to SLAVE also after the boot up, its able to switch to MASTER why it's not switching to SLAVE.
Its able to set MASTER in boot why its not making it SLAVE whether it is possible to make the pin strapping during the Power-ON / Reset.

Can you briefly give me steps to read the register which is setting MASTER/SLAVE 
How can i do it in S32Design studio to read the register and check what bit it is setup

Tags (1)
0 Kudos
Reply

617 Views
Atkinson
Contributor V

Hi @PavelL 

Thanks for the quick reply 

so you are saying the AUTOMATIC setting will not reflect as MASTER / SLAVE depending on the end device which is getting connected at the port?

whether it is possible to make that reflect as MASTER/SLAVE switching when the device is getting interface if yes, how can we do that ?

When we are configuring the board to AUTOMATIC how can we make the pin strapping to switch to SLAVE because currently it switching to MASTER it' not switching to SLAVE whether this is a root cause or this is expected ?

Whether it will be possible to make when the configuration in AUTOMATIC if my END_DEVICE is coming up with MASTER the board is not able to switch to SLAVE but if my END_DEVICE is SLAVE and my board is able to switch to MASTER i am expecting to happen it for the opposite way also when the END_DEVICE in MASTER also the board is needed to switch to SLAVE 

so, in order to make this, whether this is possible??

Regards
Atkinson

Tags (1)
0 Kudos
Reply

580 Views
PavelL
NXP Employee
NXP Employee

Hello @Atkinson ,

Yes, you understood correctly — the "Automatic" setting does not dynamically switch between MASTER and SLAVE depending on the connected end device. Also, please note that auto-negotiation is not defined in the IEEE 802.3bw standard, which specifies 100BASE-T1. The MASTER/SLAVE roles must be preconfigured and are not negotiated dynamically. This is by design, to ensure deterministic link behavior in automotive environments.

If your board is switching to MASTER when configured as "Automatic", this is likely due to the pin strapping configuration or the default internal setting of the PHY. If you need the board to behave as SLAVE, you should explicitly configure the PHY role to SLAVE in software or adjust the pin strapping to reflect that.

To answer your question directly:

  • No, the PHY will not switch to SLAVE automatically when the end device is MASTER.
  • This behavior is expected, not a bug.
  • To make the board behave as SLAVE, you must either configure it explicitly in software (phy_role_t = PHY_ROLE_SLAVE) or change the pin strapping so that the default role becomes SLAVE.

If you want to change the default MASTER/SLAVE role used in "Automatic" mode, you have two options:

1. Software override: Set phy_role_t = PHY_ROLE_SLAVE explicitly in your board configuration. This bypasses the pin strapping.

2. Pin strapping adjustment: Modify the hardware configuration (pull-up/pull-down resistors on specific pins) to change the default role. Refer to the ah725720-AN13225 - SJA1110 Hardware Application Note(2.0), chapter 5.6 Pin strapping .

Best regards,

Pavel

0 Kudos
Reply

566 Views
Atkinson
Contributor V

Hi @PavelL 

Thanks for sharing the more insights 

So in order to check this
2. Pin strapping adjustment: Modify the hardware configuration (pull-up/pull-down resistors on specific pins) to change the default role. Refer to the ah725720-AN13225 - SJA1110 Hardware Application Note(2.0), chapter 5.6 Pin strapping 

Base Address; port 5 = 19h port 6 = 20h, port 7 = 21h
can you give me the complete Address!!
and how can i make the default configuration to SLAVE 

Where these changes need to be made can you be more specific 

Regards
Atkinson 

0 Kudos
Reply

543 Views
PavelL
NXP Employee
NXP Employee

Hello @Atkinson ,

Just to clarify - how are you accessing the SJA1110 switch in your setup?

  • Are you using the SPI_AP interface (i.e., external host MCU accessing the switch via SPI)?
  • Or is the configuration done internally, e.g., via the embedded Cortex-M7 core inside the switch?

In case of first option, the indirect addressing has been recently solved in this thread Solved: How to access SJA1110 100BASE-T1 PHY Clause45 register via SPI_AP - NXP Community

Here are examples for PHY5 and PHY6 master/slave settings:

        Write DEVICE_CONTROL: set CONFIG_ALL_ENABLE (0x0040) : 2000
spi_write 0x1C109E <- 0x0040
spi_write 0x1C10DE <- 0x2000

spi_write 0x1C1081 <- 0x0834
spi_read  0x1C10C1 =  0xC000
        Read B100T1_PMA_CONTROL (0x0834) sw0.phy5 : C000
        Write B100T1_PMA_CONTROL: set MASTER (0x0834) sw0.phy5 : 4000
spi_write 0x1C1081 <- 0x0834
spi_write 0x1C10C1 <- 0x4000
        Write B100T1_PMA_CONTROL: set SLAVE (0x0834) sw0.phy5 : 0000
spi_write 0x1C1081 <- 0x0834
spi_write 0x1C10C1 <- 0x0000

spi_write 0x1C1101 <- 0x0834
spi_read  0x1C1141 =  0x8000
        Read B100T1_PMA_CONTROL (0x0834) sw0.phy6 : 8000
        Write B100T1_PMA_CONTROL: set MASTER (0x0834) sw0.phy6 : 4000
spi_write 0x1C1101 <- 0x0834
spi_write 0x1C1141 <- 0x4000

        Write B100T1_PMA_CONTROL: set SLAVE (0x0834) sw0.phy6 : 0000
spi_write 0x1C1101 <- 0x0834
spi_write 0x1C1141 <- 0x0000

        Write DEVICE_CONTROL: reset CONFIG_ALL_ENABLE (0x0040) : 0000
spi_write 0x1C111E <- 0x0040
spi_write 0x1C115E <- 0x0000

 

 

Best regards,

Pavel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2170861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPHY%20Port%20switching%20in%20S32G-VNP-RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20facing%20up%20a%20Issue%20in%20%3CSTRONG%3ESJA1110%20Switch%3C%2FSTRONG%3E%20where%20%3CSTRONG%3E100BASE-T1%20PHY%3C%2FSTRONG%3E%20when%20i%20am%20configuring%20it%20in%20%3CSTRONG%3EAUTOMATIC%20Mode%3C%2FSTRONG%3E%20its%20switching%20to%20MASTER%20Mode%20when%20the%20END_DEVICE%20in%20SLAVE%20mode.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20another%20situation%20where%20END_DEVICE%20in%20MASTER%20Mode%20configured%20board%20to%20be%20in%20%3CSTRONG%3EAUTOMATIC%20Mode%26nbsp%3B%3C%2FSTRONG%3Einterfacing%20the%20end%20device%20Board%20the%20board%20need%20to%20be%20switched%20to%20SLAVE%20mode%20but%20its%20not%20switching%20as%20Expected.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20configured%20AUTOMATIC%20MODE%20its%20not%20switching%20to%20SLAVE%20but%20when%20i%20configure%20explicitly%20for%20SLAVE%20mode%20the%20END_DEVICE%20is%20working%20since%20its%20in%20MASTER.%20but%20this%20needs%20to%20be%20done%20it%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20are%20the%20test%20cases%20can%20be%20conducted%20to%20identify%20what%20would%20be%20the%20root%20cause%20of%20the%20issue%3F%3CBR%20%2F%3EHow%20can%20i%20check%20the%20register%20Values%20whether%20its%20switching%20MASTER%2FSLAVE%20or%20not%20%3F%3CBR%20%2F%3EHow%20can%20i%20resolve%20this%20issue%20!!%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3CBR%20%2F%3EAtkinson%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2172723%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PHY%20Port%20switching%20in%20S32G-VNP-RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2172723%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%2F248906%22%20target%3D%22_blank%22%3E%40Atkinson%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EJust%20to%20clarify%20-%20how%20are%20you%20accessing%20the%20SJA1110%20switch%20in%20your%20setup%3F%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAre%20you%20using%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESPI_AP%20interface%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(i.e.%2C%20external%20host%20MCU%20accessing%20the%20switch%20via%20SPI)%3F%3C%2FLI%3E%0A%3CLI%3EOr%20is%20the%20configuration%20done%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Einternally%3C%2FSTRONG%3E%2C%20e.g.%2C%20via%20the%20embedded%20Cortex-M7%20core%20inside%20the%20switch%3F%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIn%20case%20of%20first%20option%2C%20the%20indirect%20addressing%20has%20been%20recently%20solved%20in%20this%20thread%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FOther-NXP-Products%2FHow-to-access-SJA1110-100BASE-T1-PHY-Clause45-register-via-SPI%2Fm-p%2F2167272%22%20target%3D%22_blank%22%3ESolved%3A%20How%20to%20access%20SJA1110%20100BASE-T1%20PHY%20Clause45%20register%20via%20SPI_AP%20-%20NXP%20Community%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EHere%20are%20examples%20for%20PHY5%20and%20PHY6%20master%2Fslave%20settings%3A%3C%2FP%3E%0A%3CPRE%20style%3D%22margin%3A%200in%3B%20font-family%3A%20terminal%3B%20font-size%3A%2011.0pt%3B%20color%3A%20black%3B%22%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Write%20DEVICE_CONTROL%3A%20set%20CONFIG_ALL_ENABLE%20(0x0040)%20%3A%202000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C109E%20%26lt%3B-%200x0040%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C10DE%20%26lt%3B-%200x2000%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1081%20%26lt%3B-%200x0834%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_read%20%26nbsp%3B0x1C10C1%20%3D%20%26nbsp%3B0xC000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Read%20B100T1_PMA_CONTROL%20(0x0834)%20sw0.phy5%20%3A%20C000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Write%20B100T1_PMA_CONTROL%3A%20set%20MASTER%20(0x0834)%20sw0.phy5%20%3A%204000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1081%20%26lt%3B-%200x0834%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C10C1%20%26lt%3B-%200x4000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Write%20B100T1_PMA_CONTROL%3A%20set%20SLAVE%20(0x0834)%20sw0.phy5%20%3A%200000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1081%20%26lt%3B-%200x0834%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C10C1%20%26lt%3B-%200x0000%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1101%20%26lt%3B-%200x0834%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_read%20%26nbsp%3B0x1C1141%20%3D%20%26nbsp%3B0x8000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Read%20B100T1_PMA_CONTROL%20(0x0834)%20sw0.phy6%20%3A%208000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Write%20B100T1_PMA_CONTROL%3A%20set%20MASTER%20(0x0834)%20sw0.phy6%20%3A%204000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1101%20%26lt%3B-%200x0834%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1141%20%26lt%3B-%200x4000%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Write%20B100T1_PMA_CONTROL%3A%20set%20SLAVE%20(0x0834)%20sw0.phy6%20%3A%200000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1101%20%26lt%3B-%200x0834%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C1141%20%26lt%3B-%200x0000%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Write%20DEVICE_CONTROL%3A%20reset%20CONFIG_ALL_ENABLE%20(0x0040)%20%3A%200000%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C111E%20%26lt%3B-%200x0040%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%222%22%3Espi_write%200x1C115E%20%26lt%3B-%200x0000%3C%2FFONT%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2172560%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PHY%20Port%20switching%20in%20S32G-VNP-RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2172560%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%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%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20sharing%20the%20more%20insights%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20in%20order%20to%20check%20this%3CBR%20%2F%3E%3CSPAN%3E2.%20Pin%20strapping%20adjustment%3A%20Modify%20the%20hardware%20configuration%20(pull-up%2Fpull-down%20resistors%20on%20specific%20pins)%20to%20change%20the%20default%20role.%20Refer%20to%20the%20ah725720-AN13225%20-%20SJA1110%20Hardware%20Application%20Note(2.0)%2C%20chapter%205.6%20Pin%20strapping%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3EBase%20Address%3B%20port%205%20%3D%2019h%20port%206%20%3D%2020h%2C%20port%207%20%3D%2021h%3CBR%20%2F%3Ecan%20you%20give%20me%20the%20complete%20Address!!%3CBR%20%2F%3Eand%20how%20can%20i%20make%20the%20default%20configuration%20to%20SLAVE%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EWhere%20these%20changes%20need%20to%20be%20made%20can%20you%20be%20more%20specific%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3CBR%20%2F%3EAtkinson%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2171725%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PHY%20Port%20switching%20in%20S32G-VNP-RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2171725%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%2F248906%22%20target%3D%22_blank%22%3E%40Atkinson%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EYes%2C%20you%20understood%20correctly%20%E2%80%94%20the%20%22Automatic%22%20setting%20does%20not%20dynamically%20switch%20between%20MASTER%20and%20SLAVE%20depending%20on%20the%20connected%20end%20device.%26nbsp%3BAlso%2C%20please%20note%20that%20%3CSTRONG%3Eauto-negotiation%20is%20not%20defined%20in%20the%20IEEE%20802.3bw%20standard%3C%2FSTRONG%3E%2C%20which%20specifies%20100BASE-T1.%20The%20MASTER%2FSLAVE%20roles%20must%20be%20preconfigured%20and%20are%20not%20negotiated%20dynamically.%20This%20is%20by%20design%2C%20to%20ensure%20deterministic%20link%20behavior%20in%20automotive%20environments.%3C%2FP%3E%0A%3CP%3EIf%20your%20board%20is%20switching%20to%20MASTER%20when%20configured%20as%20%22Automatic%22%2C%20this%20is%20likely%20due%20to%20the%20pin%20strapping%20configuration%20or%20the%20default%20internal%20setting%20of%20the%20PHY.%20If%20you%20need%20the%20board%20to%20behave%20as%20SLAVE%2C%20you%20should%20explicitly%20configure%20the%20PHY%20role%20to%20SLAVE%20in%20software%20or%20adjust%20the%20pin%20strapping%20to%20reflect%20that.%3C%2FP%3E%0A%3CP%3ETo%20answer%20your%20question%20directly%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ENo%2C%20the%20PHY%20will%20not%20switch%20to%20SLAVE%20automatically%20when%20the%20end%20device%20is%20MASTER.%3C%2FLI%3E%0A%3CLI%3EThis%20behavior%20is%20expected%2C%20not%20a%20bug.%3C%2FLI%3E%0A%3CLI%3ETo%20make%20the%20board%20behave%20as%20SLAVE%2C%20you%20must%20either%20configure%20it%20explicitly%20in%20software%20(phy_role_t%20%3D%20PHY_ROLE_SLAVE)%20or%20change%20the%20pin%20strapping%20so%20that%20the%20default%20role%20becomes%20SLAVE.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIf%20you%20want%20to%20change%20the%20default%20MASTER%2FSLAVE%20role%20used%20in%20%22Automatic%22%20mode%2C%20you%20have%20two%20options%3A%3C%2FP%3E%0A%3CP%3E1.%20Software%20override%3A%20Set%20phy_role_t%20%3D%20PHY_ROLE_SLAVE%20explicitly%20in%20your%20board%20configuration.%20This%20bypasses%20the%20pin%20strapping.%3C%2FP%3E%0A%3CP%3E2.%20Pin%20strapping%20adjustment%3A%20Modify%20the%20hardware%20configuration%20(pull-up%2Fpull-down%20resistors%20on%20specific%20pins)%20to%20change%20the%20default%20role.%20Refer%20to%20the%20ah725720-AN13225%20-%20SJA1110%20Hardware%20Application%20Note(2.0)%2C%20chapter%205.6%20Pin%20strapping%20.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2171602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PHY%20Port%20switching%20in%20S32G-VNP-RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2171602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%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%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20from%20your%20suggestion%2C%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20you%20mentioned%2C%20Pin%20strapping%20will%20be%20happening%20during%20the%20startup%20process%20logic%20state%20of%20specific%20pins%20at%20power-on%20or%20reset.%20so%2C%20it%20will%20be%20setting%20up%20automatically%20the%20mode%20either%20MASTER%20%2F%20SLAVE%26nbsp%3B%3CBR%20%2F%3ESo%20i%20am%20seeing%20it's%20switching%20to%20MASTER%20but%20not%20to%20SLAVE%20in%20Board%20so%20how%20can%20i%20make%20that%20to%20switch%20to%20SLAVE%20also%20after%20the%20boot%20up%2C%20its%20able%20to%20switch%20to%20MASTER%20why%20it's%20not%20switching%20to%20SLAVE.%3CBR%20%2F%3EIts%20able%20to%20set%20MASTER%20in%20boot%20why%20its%20not%20making%20it%20SLAVE%20whether%20it%20is%20possible%20to%20make%20the%20pin%20strapping%20during%20the%20Power-ON%20%2F%20Reset.%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20briefly%20give%20me%20steps%20to%20read%20the%20register%20which%20is%20setting%20MASTER%2FSLAVE%26nbsp%3B%3CBR%20%2F%3EHow%20can%20i%20do%20it%20in%20S32Design%20studio%20to%20read%20the%20register%20and%20check%20what%20bit%20it%20is%20setup%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2171010%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PHY%20Port%20switching%20in%20S32G-VNP-RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2171010%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%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%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20the%20quick%20reply%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eso%20you%20are%20saying%20the%20AUTOMATIC%20setting%20will%20not%20reflect%20as%20MASTER%20%2F%20SLAVE%20depending%20on%20the%20end%20device%20which%20is%20getting%20connected%20at%20the%20port%3F%3CBR%20%2F%3E%3CBR%20%2F%3Ewhether%20it%20is%20possible%20to%20make%20that%20reflect%20as%20MASTER%2FSLAVE%20switching%20when%20the%20device%20is%20getting%20interface%20if%20yes%2C%20how%20can%20we%20do%20that%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20we%20are%20configuring%20the%20board%20to%20AUTOMATIC%20how%20can%20we%20make%20the%20pin%20strapping%20to%20switch%20to%20SLAVE%20because%20currently%20it%20switching%20to%20MASTER%20it'%20not%20switching%20to%20SLAVE%20whether%20this%20is%20a%20root%20cause%20or%20this%20is%20expected%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3EWhether%20it%20will%20be%20possible%20to%20make%20when%20the%20configuration%20in%20AUTOMATIC%20if%20my%20END_DEVICE%20is%20coming%20up%20with%20MASTER%20the%20board%20is%20not%20able%20to%20switch%20to%20SLAVE%20but%20if%20my%20END_DEVICE%20is%20SLAVE%20and%20my%20board%20is%20able%20to%20switch%20to%20MASTER%20i%20am%20expecting%20to%20happen%20it%20for%20the%20opposite%20way%20also%20when%20the%20END_DEVICE%20in%20MASTER%20also%20the%20board%20is%20needed%20to%20switch%20to%20SLAVE%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eso%2C%20in%20order%20to%20make%20this%2C%20whether%20this%20is%20possible%3F%3F%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3CBR%20%2F%3EAtkinson%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2170947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PHY%20Port%20switching%20in%20S32G-VNP-RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170947%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%2F248906%22%20target%3D%22_blank%22%3E%40Atkinson%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20report.%20Based%20on%20your%20description%2C%20it%20seems%20there%20is%20a%20misunderstanding%20regarding%20the%20meaning%20of%20PHY%20Role%20%3D%20Automatic%20in%20the%20context%20of%20the%20SJA1110%20Automotive%20Ethernet%20switch.%3C%2FP%3E%0A%3CP%3EIn%20automotive%20applications%2C%20auto-negotiation%20is%20typically%20not%20used%2C%20because%20the%20roles%20(MASTER%2FSLAVE)%20are%20predefined%20and%20fixed%20during%20system%20design.%20Therefore%2C%20the%20%22Automatic%22%20setting%20does%20not%20imply%20dynamic%20negotiation.%20Instead%2C%20it%20means%20the%20PHY%20will%20follow%20the%20default%20configuration%2C%20which%20is%20usually%20determined%20by%20pin%20strapping.%3C%2FP%3E%0A%3CP%3EHere%20is%20the%20definition%20of%20phy_role_t%20from%20the%20SJA1110%20SDK%201.0.2%20%3A%3C%2FP%3E%0A%3CPRE%3Etypedef%20enum%3CBR%20%2F%3E%7B%3CBR%20%2F%3EPHY_ROLE_AUTO%20%3D%202%2C%20%2F**%26lt%3B%20Automatic%20configuration%2C%20i.e.%20use%20the%20default%20of%20the%20device.%20Could%20be%20%3CSTRONG%3Epin%20strapping%3C%2FSTRONG%3E%20or%20auto-negotiation%20of%20master%2Fslave%20parameter.%20*%2F%3CBR%20%2F%3EPHY_ROLE_MASTER%20%3D%201%2C%20%2F**%26lt%3B%20Master%20*%2F%3CBR%20%2F%3EPHY_ROLE_SLAVE%20%3D%200%20%2F**%26lt%3B%20Slave%20*%2F%3CBR%20%2F%3E%7D%20phy_role_t%3B%3C%2FPRE%3E%0A%3CP%3ETo%20verify%20the%20current%20role%20of%20the%20PHY%2C%20please%20read%20the%20B100T1_PMA_CONTROL%20register%2C%20specifically%20bit%2014%2C%20which%20indicates%20the%20MASTER%2FSLAVE%20status.%20Refer%20to%20UM11107%20(Software%20user%20manual%20for%20SJA1110)%20for%20detailed%20register%20descriptions.%3C%2FP%3E%0A%3CP%3EPlease%20note%3A%20The%20MASTER%2FSLAVE%20setting%20is%20only%20relevant%20during%20the%20initial%20PHY%20link%20negotiation.%20After%20the%20link%20is%20established%2C%20both%20PHYs%20behave%20as%20equal%20peers%2C%20including%20support%20for%20features%20like%20TC10%20sleep%2Fwake%20signaling.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E