Hi,
I'm trying to get SPI_A (ecspi3) with multiple chip selects to work,
but only the predefined chip select (gpio5 25) seems to work.
Below my device tree:
Code
- &ecspi3 {
- #address-cells = <1>;
- #size-cells = <0>;
- fsl,spi-num-chipselects = <5>;
- num-cs = <5>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ecspi3 &pinctrl_ecspi3_cs>;
- cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>,
- <&gpio1 15 GPIO_ACTIVE_LOW>,
- <&gpio3 0 GPIO_ACTIVE_LOW>,
- <&gpio3 1 GPIO_ACTIVE_LOW>,
- <&gpio3 14 GPIO_ACTIVE_LOW>;
- status = "okay";
- dac@3 {
- compatible = "lltc,ltc2632-l12";
- reg = <3>;
- spi-max-frequency = <10000000>;
- };
- };
- [...]
- pinctrl_ecspi3_cs: ecspi3cs {
- fsl,pins = <
- MX8MP_IOMUXC_UART2_TXD__GPIO5_IO25 0x40000
- MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15 0x40000
- MX8MP_IOMUXC_NAND_ALE__GPIO3_IO00 0x40000
- MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01 0x40000
- MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14 0x40000
- >;
- };
I checked that no other node is using or muxing my pins