cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP135D u-boot _regulator_enable:169 regul usb33 set state failed with 0xffff0000

maxswjeon
Associate II

I am trying to create a new board based on STM32MP135D.

An error occurs while running u-boot on optee layer.

The log below is the log where error occurs. Full log is attached as file.

 

 

Hit any key to stop autoboot:  0
Boot over usb0!
D/TC:? 0 tee_ta_init_pseudo_ta_session:296 Lookup pseudo TA 1a8342cc-81a5-4512-99fe-9e2b3e37d626
D/TC:? 0 ldelf_load_ldelf:95 ldelf load address 0x40004000
D/LD:  ldelf:134 Loading TS 1a8342cc-81a5-4512-99fe-9e2b3e37d626
F/TC:? 0 trace_syscall:151 syscall #3 (syscall_get_property)
F/TC:? 0 trace_syscall:151 syscall #5 (syscall_open_ta_session)
D/TC:? 0 ldelf_syscall_open_bin:142 Lookup user TA ELF 1a8342cc-81a5-4512-99fe-9e2b3e37d626 (early TA)
D/TC:? 0 ldelf_syscall_open_bin:146 res=0
D/TC:? 0 stm32_hash_allocate:182 Using HASH 3
F/TC:? 0 trace_syscall:151 syscall #7 (syscall_invoke_ta_command)
F/TC:? 0 trace_syscall:151 syscall #11 (syscall_mask_cancellation)
F/TC:? 0 trace_syscall:151 syscall #7 (syscall_invoke_ta_command)
F/TC:? 0 trace_syscall:151 syscall #3 (syscall_get_property)
F/TC:? 0 trace_syscall:151 syscall #8 (syscall_check_access_rights)
F/TC:? 0 trace_syscall:151 syscall #8 (syscall_check_access_rights)
F/TC:? 0 trace_syscall:151 syscall #6 (syscall_close_ta_session)
F/TC:? 0 trace_syscall:151 syscall #3 (syscall_get_property)
D/LD:  ldelf:168 ELF (1a8342cc-81a5-4512-99fe-9e2b3e37d626) at 0x4008b000
F/TC:? 0 trace_syscall:151 syscall #8 (syscall_check_access_rights)
F/TC:? 0 trace_syscall:151 syscall #8 (syscall_check_access_rights)
F/TC:? 0 trace_syscall:151 syscall #3 (syscall_get_property)
F/TC:? 0 trace_syscall:151 syscall #8 (syscall_check_access_rights)
F/TC:? 0 trace_syscall:151 syscall #5 (syscall_open_ta_session)
D/TC:? 0 tee_ta_init_session_with_context:609 Re-open TA 94cf71ad-80e6-40b5-a7c6-3dc501eb2803
D/TC:? 0 stm32_bsec_find_otp_in_nvmem_layout:655 nvmem cfg0_otp = 0: 0 16
D/TC:? 0 stm32_bsec_find_otp_in_nvmem_layout:655 nvmem oem_enc_key = 9: 92 128
F/TC:? 0 plat_prng_add_jitter_entropy:72 0x48
DFU alt info setting: done
F/TC:? 0 bsec_pta_invoke_command:265 bsec.pta command 0 ptypes 0x61
F/TC:? 0 bsec_read_mem:80 Read shadow 1 val: 8801
F/TC:? 0 bsec_read_mem:141 Buffer orig 0xde6013a0, size 4
D/TC:? 0 tee_ta_init_session_with_context:609 Re-open TA a8cfe406-d4f5-4a2e-9f8d-a25dc754c099
F/TC:? 0 pta_scmi_invoke_command:275 SCMI command 0x3 ptypes 0x3
F/TC:? 0 pta_scmi_invoke_command:275 SCMI command 0x1 ptypes 0x1
D/TC:? 0 tee_ta_close_session:514 csess 0xde299708 id 4
D/TC:? 0 tee_ta_close_session:533 Destroy session
D/TC:? 0 tee_ta_init_session_with_context:609 Re-open TA a8cfe406-d4f5-4a2e-9f8d-a25dc754c099
F/TC:? 0 pta_scmi_invoke_command:275 SCMI command 0x3 ptypes 0x3
F/TC:? 0 pta_scmi_invoke_command:275 SCMI command 0x1 ptypes 0x1
F/TC:? 0 plat_scmi_voltd_set_config:194 (channel 0/domain 2) set config to 7
F/TC:? 0 _regulator_enable:151 usb33
F/TC:? 0 _regulator_enable:151 vdd_usb
F/TC:? 0 _regulator_enable:191 vdd_usb refcount: 1
E/TC:? 0 _regulator_enable:169 regul usb33 set state failed with 0xffff0000
F/TC:? 0 _regulator_disable:213 vdd_usb
F/TC:? 0 _regulator_disable:238 vdd_usb refcount:0
F/TC:? 0 plat_prng_add_jitter_entropy:72 0x73
D/TC:? 0 tee_ta_close_session:514 csess 0xde299708 id 4
D/TC:? 0 tee_ta_close_session:533 Destroy session

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
maxswjeon
Associate II

Self-answering this question.

 

Set phy-supply and phys. This is nessary.

&usbotg_hs{
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&usb_otg_hs_pins_mx>;
	pinctrl-1 = <&usb_otg_hs_sleep_pins_mx>;
	status = "okay";

	/* USER CODE BEGIN usbotg_hs */
	phys = <&usbphyc_port1 0>;
	u-boot,force-b-session-valid;
	dr_mode = "peripheral";
	usb-role-switch;
	role-switch-default-mode = "peripheral";

	/* USER CODE END usbotg_hs */
};

&usbphyc{
	status = "okay";

	/* USER CODE BEGIN usbphyc */
	/* USER CODE END usbphyc */
};

&usbphyc_port0{
	status = "okay";

	/* USER CODE BEGIN usbphyc_port0 */
	phy-supply = <&vdd_usb>;
	/* USER CODE END usbphyc_port0 */
};

&usbphyc_port1{
	status = "okay";

	/* USER CODE BEGIN usbphyc_port1 */
	phy-supply = <&vdd_usb>;
	/* USER CODE END usbphyc_port1 */
};

 

View solution in original post

1 REPLY 1
maxswjeon
Associate II

Self-answering this question.

 

Set phy-supply and phys. This is nessary.

&usbotg_hs{
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&usb_otg_hs_pins_mx>;
	pinctrl-1 = <&usb_otg_hs_sleep_pins_mx>;
	status = "okay";

	/* USER CODE BEGIN usbotg_hs */
	phys = <&usbphyc_port1 0>;
	u-boot,force-b-session-valid;
	dr_mode = "peripheral";
	usb-role-switch;
	role-switch-default-mode = "peripheral";

	/* USER CODE END usbotg_hs */
};

&usbphyc{
	status = "okay";

	/* USER CODE BEGIN usbphyc */
	/* USER CODE END usbphyc */
};

&usbphyc_port0{
	status = "okay";

	/* USER CODE BEGIN usbphyc_port0 */
	phy-supply = <&vdd_usb>;
	/* USER CODE END usbphyc_port0 */
};

&usbphyc_port1{
	status = "okay";

	/* USER CODE BEGIN usbphyc_port1 */
	phy-supply = <&vdd_usb>;
	/* USER CODE END usbphyc_port1 */
};