Re: loading NOR flash from DT
From: Sergei Shtylyov <hidden>
Date: 2007-10-17 20:23:11
Sebastian Siewior wrote:
quoted
quoted
I have here a MPC8544 DS board with NOR flash on it and Kumar's git tree. I'm trying to detect this flash with the physmap_of module. I added a nor_flash block (I used sequoia.dts as an example) into my device tree on the same level as soc8544 or memory (or between them). After modprobing physmap_of nothing happend. Then I tried to make a tree with plb -> opb -> ebc and finally nor_flash but still nothing changed. Is there a user space dependency or did I just edit my device tree the wrong way? Any hints are welcome :)Post your device tree please. I don't recall MPC8544 even having PLB, OPB, or EBC busses, so they likely aren't getting probed.
[...]
flash@fc000000 {
compatible = "amd,s29gl512n", "cfi-flash";
reg = <fc000000 4000000>;
bank-width = <2>;
#address-cells = <1>;
#size-cells = <1>;
fs@0 {
label = "fs";
reg = <0 f80000>;
};
firmware@f80000 {
label ="firmware";
reg = <f80000 80000>;
read-only;
};
This looks good, so the problem is it doesn't get registered by the
platform code as I've said.
WBR, Sergei