cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP135F - How to enable ETH2 using MII to connect Switch

skarayigit
Associate III

We have designed 2 seperate boards, main board has STM32MP135FAE on board connected to Microchip LAN8742 via ethernet1 mac and it is working. second board is a network board and has Marvell 88E6185 switch on board. Ethernet2 mac on STM32MP135F is connected to Port9 at the Switch using MII. However, STM32MP135F is not enabling internal clock. And eth2 is not activated.

  • I have tried setting ETH clock at 25MHz, no luck.

I have attached my configuration files and clock settings and dmesg log.

Any idea what might be wrong on my configurations? 

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

Hi @skarayigit 

Maybe check the expected device tree is loaded during boot.

Is there some hint using Ethernet framework debug ?

https://wiki.st.com/stm32mpu/wiki/Ethernet_overview#How_to_trace_and_debug_the_framework

 

STM32MP13 discovery board provide 2 x Ethernet (See https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP135x-DK/Let%27s_start/Unpack_the_STM32MP135x-DK_board) , so you could give a look to the Starter Package Device tree : https://github.com/STMicroelectronics/linux/blob/v6.1-stm32mp/arch/arm/boot/dts/stm32mp135f-dk.dts

For HW concerns, see also AN5474 Getting started with STM32MP13x lines hardware development

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

Hi @skarayigit 

Maybe check the expected device tree is loaded during boot.

Is there some hint using Ethernet framework debug ?

https://wiki.st.com/stm32mpu/wiki/Ethernet_overview#How_to_trace_and_debug_the_framework

 

STM32MP13 discovery board provide 2 x Ethernet (See https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP135x-DK/Let%27s_start/Unpack_the_STM32MP135x-DK_board) , so you could give a look to the Starter Package Device tree : https://github.com/STMicroelectronics/linux/blob/v6.1-stm32mp/arch/arm/boot/dts/stm32mp135f-dk.dts

For HW concerns, see also AN5474 Getting started with STM32MP13x lines hardware development

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
skarayigit
Associate III

There was an issue with the script that is updating the dtb files in the image. It wasn't updating the files under fip folder therefore, the clocks weren't changing. Thank for the help and quick reply @PatrickF, eth2 is active now.