cancel
Showing results for 
Search instead for 
Did you mean: 

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

Spamfast
Associate II

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.

2 REPLIES 2
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
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

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 'Accept as Solution' on the reply which solved your issue or answered your question.