AnsweredAssumed Answered

How to add a dedicated line for cd-gpios on usdhc1?

Question asked by Damien Huang on Mar 7, 2016
Latest reply on Mar 8, 2016 by Damien Huang


I would like to add a dedicated line as cd-gpios for usdhc1. The pin I connected was MX6QDL_PAD_GPIO_1, so I added

"MX6QDL_PAD_GPIO_1__SD1_CD_B 0x80000000" to structure imx6q-sabrelite in imx6qdl-sabrelite.dtsi file to config the MX6QDL_PAD_GPIO_1 pin for SD1_CD_B function.


But then how I should describe the cd-gpios pin for the usdhc1 device? I saw it all following the same pattern of "cd-gpios = <&gpiox pin level>"  for other usdhc device, but since in my situation the pin is a dedicated pin, so I can not follow the same pattern. Can someone help?



Alternatively, should I just add a line of "MX6QDL_PAD_GPIO_1__SD1_CD_B 0x17071" into structure usdhc1 in imx6qdl.dtsi file? just under the existing pin descriptions for usdhc1.