Hi @Manuel_Salas ,
Thank you for your input.
I have tried your suggestion. I removed my entries of MRAM and added default entry as below.
&ecspi2 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "okay";
spidev1: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <500000>;
};
};
spidev test application log:
root@fusion:~/spidev-test# ./spidev -D /dev/spidev1.0 -s 30000000
spi mode: 0x0
bits per word: 8
max speed: 30000000 Hz (30000 KHz)
RX | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................................
I have enabled kernel logs for your reference.
Kernel Logs:
Jul 30 13:28:57 fusion kernel: [ 901.210267] spidev spi1.0: spi_imx_setup: mode 0, 8 bpw, 30000000 hz
Jul 30 13:28:57 fusion kernel: [ 901.210274] spidev spi1.0: setup mode 0, 8 bits/w, 30000000 Hz max --> 0
Jul 30 13:28:57 fusion kernel: [ 901.210486] spi_imx 30830000.spi: mx51_ecspi_clkdiv: fin: 80000000, fspi: 30000000, post: 0, pre: 2
Jul 30 13:28:57 fusion kernel: [ 901.210491] spi_imx 30830000.spi: mx51_ecspi_clkdiv: result frequency: 26666666 =>26.6MHz
Thanks,
Maulik