loading NOR flash from DT
Sergei Shtylyov
sshtylyov at ru.mvista.com
Thu Oct 18 06:23:23 EST 2007
Sebastian Siewior wrote:
>>>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 at fc000000 {
> compatible = "amd,s29gl512n", "cfi-flash";
> reg = <fc000000 4000000>;
> bank-width = <2>;
> #address-cells = <1>;
> #size-cells = <1>;
> fs at 0 {
> label = "fs";
> reg = <0 f80000>;
> };
> firmware at 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
More information about the Linuxppc-embedded
mailing list