Hi,
We are working on a IMX6 board where we have attached a sensor through SPI to ECSPI2. the chip select ECSPI2_SS1 we have choosen as EIM_LBA as per the reference manual.
This EIM_LBA corresponds to GPIO2_IO27 (GPIO59 ((2-1)*32+27)). From our application we are making this GPIO59 to high and low but it is not happening.
Where as we have cross checked it with another SPI (ECSPI1 with SS0) where ECSPI1_SS0 is taken as EIM_EB2 whose respective GPIO is GPIO2_IO30
which is GPIO62. When we are making GPIO62 high and low and probing at ECSPI1_SS0 we are getting the signal high and low as well.
What is problem with ECSPI2_SS1 (same is the problem with ECSPI2_SS0 also). what mistake we are doing
Hi,
in DTS file which is using imx6q-pinfun.h is defined as :
#define MX6QDL_PAD_EIM_LBA__EIM_LBA_B 0x108 0x41c 0x000 0x0 0x0
#define MX6QDL_PAD_EIM_LBA__IPU1_DI1_PIN17 0x108 0x41c 0x000 0x1 0x0
#define MX6QDL_PAD_EIM_LBA__ECSPI2_SS1 0x108 0x41c 0x820 0x2 0x0
#define MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x108 0x41c 0x820 0x2 0x0
#define MX6QDL_PAD_EIM_LBA__SRC_BOOT_CFG26 0x108 0x41c 0x000 0x7 0x0
In my dtsi/dts files if i use
MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1 then SD4_DAT1 should be linked to PWM3 _OUT
and if i use
MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 then it should be linked automatically to SD4_DATA1
or do we need to do some setting for linking of SD4_DAT1 (in software perspective)
from IMX6DQ reference manual:
By default mux mode of SD4_DAT1 is set to GPIO (GPIO2_IO29)
What should we do to get SD4_DAT1 to PWM3_OUT
Hello,
Please check if iomuxc section of ecspi2 is correctly describes the SS pin function as GPIO.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------