Skip to main content
Spamfast
Associate II
October 7, 2022
Question

If devicetree configures pinmux of MCO1 & MCO2 onto PI11 & PG2 both UBoot & kernel lock up on start-up.

  • October 7, 2022
  • 2 replies
  • 1023 views

We're using Ecosystem 2.1.0 still (I know!).

I'm using the CubeMX autogen code i.e.

rcc_pins_mx: rcc_mx-0 {
		u-boot,dm-pre-reloc;
		pins1 {
			u-boot,dm-pre-reloc;
			pinmux = <STM32_PINMUX('G', 2, AF1)>; /* RCC_MCO_2 */
			bias-disable;
			drive-push-pull;
			slew-rate = <1>;
		};
		pins2 {
			u-boot,dm-pre-reloc;
			pinmux = <STM32_PINMUX('I', 11, AF0)>; /* RCC_MCO_1 */
			bias-disable;
			drive-push-pull;
			slew-rate = <0>;
		};
	};
 
	rcc_sleep_pins_mx: rcc_sleep_mx-0 {
		u-boot,dm-pre-reloc;
		pins {
			u-boot,dm-pre-reloc;
			pinmux = <STM32_PINMUX('G', 2, ANALOG)>, /* RCC_MCO_2 */
					 <STM32_PINMUX('I', 11, ANALOG)>; /* RCC_MCO_1 */
		};
	};
 

If this is in U-Boot's devicetree, U-Boot locks up with no message on start-up.

If I take it out of U-Boot's devicetree but leave it in the kernel's, U-Boot starts up fine but the kernel locks up, again with no panic or other output.

This topic has been closed for replies.

2 replies

Olivier GALLIEN
ST Technical Moderator
October 27, 2022

Hi @Spamfast​ ,

I guess you are facing a known issue while configuring MCO pin on MP15 with release < 4.0

Please have a look to post

https://community.st.com/s/question/0D53W00001Co3JdSAJ/how-to-configure-device-trees-tfaubootkernel-to-output-the-mco2-clock-on-an-external-pin-of-the-stm32mp15x

And let me know if it help !

Olivier

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.
PatrickF
ST Employee
November 16, 2022

HI @Spamfast​ 

did you progress on your issue ?

Regards,

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent