cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
147 Views
Registered: ‎03-07-2019

Not able to detect SPI flash mtd device in linux on Zynq 7000

Hi,

Hardware: Zynq-7000, Petalinux: v2019.1

We are using spi-1 interface to connect the AT45DB021D as MTD device.

The device tree additions are here:

&pinctrl0 {

pinctrl_spi1_default: spi1-default {
    mux {
       groups = "spi1_0_grp";
       function = "spi1";
   };

   conf {
      groups = "spi1_0_grp";
      slew-rate = <0>;
      io-standard = <1>;
  };

mux-cs {
groups = "spi1_0_ss0_grp";
function = "spi1_ss";
};

conf-cs {
groups = "spi1_0_ss0_grp";
slew-rate = <0>;
io-standard = <1>;
};

conf-tx {
pins = "MIO10", "MIO12";
slew-rate = <0>;
bias-disable;
low-power-disable;
io-standard = <1>;
};

conf-rx {
pins = "MIO11";
slew-rate = <0>;
bias-high-impedance;
low-power-disable;
io-standard = <1>;
};

conf-select {
pins = "MIO13";
slew-rate = <0>;
bias-disable;
low-power-disable;
io-standard = <1>;
};
};

};

&spi1 {
compatible = "xlnx,zynq-spi-r1p6", "cdns,spi-r1p6";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi1_default>;

spiflash@0 {
compatible = "atmel,at45db021d", "atmel,at45", "atmel,dataflash";
reg = <1>;
spi-max-frequency = <25000000>;
#address-cells = <1>;
#size-cells = <1>;
partition@test {
label = "spi-flash";
reg = <0x0 0x100000>;
     };
   };
};

Enabled SPI and MTD device support in kernel configuration:

 
0 Kudos
1 Reply
139 Views
Registered: ‎03-07-2019

Sorry, some information missed in the above post.

I am attaching the de-compiled device tree file here.

I have enabled SPI support and MTD device support in kernel configuration, and also support for AT45xx devices in the kernel configuration.

But not able to see the mtd device (/proc/mtd) partition after booting the kernel on the board.

Can anybody please point out the cause for the issue.

Thanks,

Vish

0 Kudos