tuning failed for SDR50

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

tuning failed for SDR50

994 Views
litzchee
Contributor I

I am using an iMX8qxp on my custom board and I am experiencing tuning failed error when inserting a SDR50 SD card. This issue does not happen when I insert a SDR104 card.

Here is the device tree configuration

usdhc2: mmc@5b020000 {
		interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
		reg = <0x5b020000 0x10000>;
		clocks = <&sdhc1_lpcg 1>,
			 <&sdhc1_lpcg 0>,
			 <&sdhc1_lpcg 2>;
		clock-names = "ipg", "per", "ahb";
		assigned-clocks = <&clk IMX_SC_R_SDHC_1 IMX_SC_PM_CLK_PER>;
		assigned-clock-rates = <200000000>;
		power-domains = <&pd IMX_SC_R_SDHC_1>;
		fsl,tuning-start-tap = <20>;
		fsl,tuning-step= <2>;
		status = "disabled";
	};

&usdhc2 {
	assigned-clocks = <&clk IMX_SC_R_SDHC_1 IMX_SC_PM_CLK_PER>;
	assigned-clock-rates = <200000000>;
	pinctrl-names = "default", "state_100mhz", "state_200mhz";
	pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
	pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
	pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
	bus-width = <4>;
	vmmc-supply = <&reg_usdhc2_vmmc>;
	cd-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_LOW>;
	wp-gpios = <&lsio_gpio4 21 GPIO_ACTIVE_HIGH>;
	status = "okay";
};

 

I am wondering if trace length has something to do with this error. This is because previously I have tried on another board also using iMX8, but the SD card slot is nearer to the processor. In this case, I did not encounter any tuning failure for both SDR50 and SDR104

If trace length is the issue, what parameters I can tweak? Thanks

0 Kudos
Reply
1 Reply

913 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

How about your usdhc2 hardware design? For the SD card design, for the IO power is 1.8V or 3.3V?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2135599%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Etuning%20failed%20for%20SDR50%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135599%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20an%20iMX8qxp%20on%20my%20custom%20board%20and%20I%20am%20experiencing%20tuning%20failed%20error%20when%20inserting%20a%20SDR50%20SD%20card.%20This%20issue%20does%20not%20happen%20when%20I%20insert%20a%20SDR104%20card.%3C%2FP%3E%3CP%3EHere%20is%20the%20device%20tree%20configuration%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3Eusdhc2%3A%20mmc%405b020000%20%7B%0A%09%09interrupts%20%3D%20%3CGIC_SPI%20233%3D%22%22%20irq_type_level_high%3D%22%22%3E%3B%0A%09%09reg%20%3D%20%26lt%3B0x5b020000%200x10000%26gt%3B%3B%0A%09%09clocks%20%3D%20%26lt%3B%26amp%3Bsdhc1_lpcg%201%26gt%3B%2C%0A%09%09%09%20%26lt%3B%26amp%3Bsdhc1_lpcg%200%26gt%3B%2C%0A%09%09%09%20%26lt%3B%26amp%3Bsdhc1_lpcg%202%26gt%3B%3B%0A%09%09clock-names%20%3D%20%22ipg%22%2C%20%22per%22%2C%20%22ahb%22%3B%0A%09%09assigned-clocks%20%3D%20%26lt%3B%26amp%3Bclk%20IMX_SC_R_SDHC_1%20IMX_SC_PM_CLK_PER%26gt%3B%3B%0A%09%09assigned-clock-rates%20%3D%20%26lt%3B200000000%26gt%3B%3B%0A%09%09power-domains%20%3D%20%26lt%3B%26amp%3Bpd%20IMX_SC_R_SDHC_1%26gt%3B%3B%0A%09%09fsl%2Ctuning-start-tap%20%3D%20%26lt%3B20%26gt%3B%3B%0A%09%09fsl%2Ctuning-step%3D%20%26lt%3B2%26gt%3B%3B%0A%09%09status%20%3D%20%22disabled%22%3B%0A%09%7D%3B%0A%0A%26amp%3Busdhc2%20%7B%0A%09assigned-clocks%20%3D%20%26lt%3B%26amp%3Bclk%20IMX_SC_R_SDHC_1%20IMX_SC_PM_CLK_PER%26gt%3B%3B%0A%09assigned-clock-rates%20%3D%20%26lt%3B200000000%26gt%3B%3B%0A%09pinctrl-names%20%3D%20%22default%22%2C%20%22state_100mhz%22%2C%20%22state_200mhz%22%3B%0A%09pinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_usdhc2%26gt%3B%2C%20%26lt%3B%26amp%3Bpinctrl_usdhc2_gpio%26gt%3B%3B%0A%09pinctrl-1%20%3D%20%26lt%3B%26amp%3Bpinctrl_usdhc2_100mhz%26gt%3B%2C%20%26lt%3B%26amp%3Bpinctrl_usdhc2_gpio%26gt%3B%3B%0A%09pinctrl-2%20%3D%20%26lt%3B%26amp%3Bpinctrl_usdhc2_200mhz%26gt%3B%2C%20%26lt%3B%26amp%3Bpinctrl_usdhc2_gpio%26gt%3B%3B%0A%09bus-width%20%3D%20%26lt%3B4%26gt%3B%3B%0A%09vmmc-supply%20%3D%20%26lt%3B%26amp%3Breg_usdhc2_vmmc%26gt%3B%3B%0A%09cd-gpios%20%3D%20%26lt%3B%26amp%3Blsio_gpio4%2022%20GPIO_ACTIVE_LOW%26gt%3B%3B%0A%09wp-gpios%20%3D%20%26lt%3B%26amp%3Blsio_gpio4%2021%20GPIO_ACTIVE_HIGH%26gt%3B%3B%0A%09status%20%3D%20%22okay%22%3B%0A%7D%3B%3C%2FGIC_SPI%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EI%20am%20wondering%20if%20trace%20length%20has%20something%20to%20do%20with%20this%20error.%20This%20is%20because%20previously%20I%20have%20tried%20on%20another%20board%20also%20using%20iMX8%2C%20but%20the%20SD%20card%20slot%20is%20nearer%20to%20the%20processor.%20In%20this%20case%2C%20I%20did%20not%20encounter%20any%20tuning%20failure%20for%20both%20SDR50%20and%20SDR104%3C%2FP%3E%3CP%3EIf%20trace%20length%20is%20the%20issue%2C%20what%20parameters%20I%20can%20tweak%3F%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2135599%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2141277%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20tuning%20failed%20for%20SDR50%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2141277%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20about%20your%20usdhc2%20hardware%20design%3F%20For%20the%20SD%20card%20design%2C%20for%20the%20IO%20power%20is%201.8V%20or%203.3V%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E