hi
I used your patch for board imx7: https://www.arrow.com/en/products/pico-pi-imx7-amazon/technexion which is ecspi3. it can pass the compilation
and I modified the device tree as following in file imx7s.dtsi:
...
ecspi3: ecspi@30840000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
reg = <0x30840000 0x10000>;
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
fsl,spi-num-chipselects = <1>;
fsl,spi-slave-mode;
clocks = <&clks IMX7D_ECSPI3_ROOT_CLK>,
<&clks IMX7D_ECSPI3_ROOT_CLK>;
clock-names = "ipg", "per";
dmas = <&sdma 4 4 0>, <&sdma 5 4 0>;
dma-names = "rx", "tx";
status = "okay";
spidev@0 {
compatible = "spidev";
reg = <0>;
spi-max-frequency = <20000000>;
};
};
...
but the spi slave can not works well. I used the spidev-test/spidev_test.c at master · rm-hull/spidev-test · GitHub to test it.
I
cat /proc/interrupts | grep spi
52: 1 0 GPCV2 33 Edge 30840000.ecspi
only 1 interrupt happened. I think if input continuously, It should be many interrupts happened.
Did you make it work well?
what i missed?
thank you for your reply to : jin@fortresstechnology.com