Hi Chavira,
the time slice looks verry good and I would like to have the same result. Is it possible to say which slice is CS, MOSI, MISO and CLK?
I changed a little in the device tree and I'm relative sure that the behaviour is the same, but the result not. Here are the tree settings.
gpio5:gpio@30240000 {
compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
reg = <0x30240000 0x10000>;
interrupts = <0x00 0x48 0x04 0x00 0x49 0x04>;
clocks = <0x02 0xe3>;
gpio-controller;
#gpio-cells = <0x02>;
interrupt-controller;
#interrupt-cells = <0x02>;
gpio-ranges = <0x14 0x00 0x77 0x1e>;
phandle = <0x24>;
};
ecspi2grp {
fsl,pins = <0x204 0x46c 0x00 0x00 0x00 0x82 0x208 0x470 0x00 0x00 0x00 0x82 0x20c 0x474 0x00 0x00 0x00 0x82>;
phandle = <0x28>;
};
ecspi2_cs:ecspi2csgrp {
fsl,pins = <0x210 0x478 0x000 0x5 0x0 0x40000
>;
};
spi@30830000 {
compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
/*compatible = "fsl,imx8mm-ecspi\0fsl,imx51-ecspi";*/
#address-cells = <0x01>;
#size-cells = <0x00>;
reg = <0x30830000 0x10000>;
interrupts = <0x00 0x20 0x04>;
clocks = <0x02 0xa0 0x02 0xa0>;
clock-names = "ipg", "per";
dmas = <0x21 0x02 0x07 0x01 0x21 0x03 0x07 0x02>;
dma-names = "rx\0tx";
status = "okay";
pinctrl-names = "default";
fsl,spi-num-chipselects = <1>;
pinctrl-0 = <0x28 &ecspi2_cs 0x2a>;
cs-gpios = <&gpio5 0x0d 0x01>;
/*num-cs = <0x01>;*/
lan9253@0 {
compatible = "lan9253";
spi-max-frequency = <0x1312d00>;
reg = <0x00>;
};
};
Best regards,
Alex