All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to read or write from system SPI flash memory.
@ 2019-02-13  8:54 AKASH G J
  2019-02-13 22:43 ` Andrew Jeffery
  0 siblings, 1 reply; 12+ messages in thread
From: AKASH G J @ 2019-02-13  8:54 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

Hi all,

We have a test board containing BMC Aspeed AST-2500. It contains BMC flash
memory, SPI1 flash memory and SPI2 flash memory. we are using zaius machine
configuration for building Linux. When I am trying to write to SPI1 flash
at address 30000000 using pflash tool, the modified data is not reflected
after reboot. Same with SPI2 flash. With pflash tool I am able to write
data permanently to BMC flash memory. The device tree for SPI devices is
following.

&fmc {
    status = "okay";

    flash@0 {
        status = "okay";
        label = "bmc";
        m25p,fast-read;
        spi-max-frequency = <50000000>;
#include "openbmc-flash-layout.dtsi"
    };
};

&spi1 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_spi1_default>;

    flash@0 {
        status = "okay";
        label = "pnor";
        m25p,fast-read;
        spi-max-frequency = <100000000>;
    };
};

&spi2 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_spi2ck_default
             &pinctrl_spi2cs0_default
             &pinctrl_spi2cs1_default
             &pinctrl_spi2miso_default
             &pinctrl_spi2mosi_default>;

    flash@0 {
        status = "okay";
    };
};

Please someone help to resolve the problem.


Thanks in advance.

Akash

[-- Attachment #2: Type: text/html, Size: 1783 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-02-21  0:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-13  8:54 Unable to read or write from system SPI flash memory AKASH G J
2019-02-13 22:43 ` Andrew Jeffery
2019-02-14  4:29   ` AKASH G J
2019-02-14 23:28     ` Andrew Jeffery
2019-02-15  5:33       ` AKASH G J
2019-02-18  2:45         ` Andrew Jeffery
2019-02-18  4:33           ` AKASH G J
2019-02-19  0:03             ` Andrew Jeffery
2019-02-19  4:22               ` AKASH G J
2019-02-19 23:22                 ` Andrew Jeffery
2019-02-20  4:31                   ` AKASH G J
2019-02-21  0:31                     ` Andrew Jeffery

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.