Dear Alejandrolozano-san,
Thank you for your support.
We tried to enable the native Chip select of the ECSPI module.
However, each pin was not changed to the SS signal.
If there is the setting that we overlook, would you tell me?
<set Registers>
- IOMUXC_SW_MUX_CTL_PAD_EIM_EB2_B
set value : 0x1(MUX_MODE:ECSPI1_SS0)
actual value : 0x5(MUX_MODE:GPIO2_IO30)
- IOMUXC_SW_MUX_CTL_PAD_KEY_COL2
set value : 0x0(MUX_MODE:ECSPI1_SS1)
actual value : 0x5(MUX_MODE:GPIO4_IO10)
- IOMUXC_SW_MUX_CTL_PAD_KEY_ROW2
set value : 0x0(MUX_MODE:ECSPI1_SS2)
actual value : 0x5(MUX_MODE:GPIO4_IO11)
We set the following in dtsi file.
[Setting in dtsi file]
============================================
&iomuxc {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hog_1>;
hog {
pinctrl_hog_1: hoggrp-1 {
fsl,pins = <
MX6QDL_PAD_EIM_EB2__ECSPI1_SS0 0x000170B0 /* out ECSPI1 SS0 */
MX6QDL_PAD_KEY_COL2__ECSPI1_SS1 0x000170B0 /* out ECSPI1 SS1 */
MX6QDL_PAD_KEY_ROW2__ECSPI1_SS2 0x0001A0B0 /* out ECSPI1 SS2 */
============================================
ecspi1 {
pinctrl_ecspi1: ecspi1_grp-1 {
fsl,pins = <
MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x0001A0B0
MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x0001A0B0
MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x0001A0B0
MX6QDL_PAD_EIM_EB2__ECSPI1_SS0 0x000170B0
MX6QDL_PAD_KEY_COL2__ECSPI1_SS1 0x000170B0
MX6QDL_PAD_KEY_ROW2__ECSPI1_SS2 0x0001A0B0
>;
};
============================================
&ecspi1 {
fsl,spi-num-chipselects = <3>;
cs-gpios = <0>,<0>,<0>; /* active level select is DON'T-CARE here */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
status = "okay";
============================================
Could you give me some advice?
Best Regards,
Yuuki