440EP NOR Flash Mapping with DTS

Thomas Besemer thomas.besemer at gmail.com
Mon Jul 17 10:31:05 AEST 2017


I'm trying to map some NOR flash in via DTS on a Yosemite
style 440EP board. I've tried a few different things, below
showing my latest attempt.  During Kernel boot, it does not
appear to detect the device, as no messages are emitted.

Flash is Spansion S29GL256P, base address 0xFE000000.

DTS:

EBC0: ebc {
       compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
       dcr-reg = <0x012 0x002>;
       #address-cells = <2>;
       #size-cells = <1>;
       clock-frequency = <0>; /* Filled in by zImage */
       interrupts = <0x5 0x1>;
       interrupt-parent = <&UIC1>;

       nor_flash at FE0000000,0 {
               compatible = "amd,p29gl256p", "cfi-flash";
               #bank-width = <2>;
               reg = <0xFE000000 0x02000000>;
               #address-cells = <1>;
               #size-cells = <1>;
               partition at 0 {
                       label = "Kernel";
                       reg = <0x00000000 0x00180000>;
               };
               partition at 180000 {
                       label = "OS Filesystem";
                       reg = <0x00180000 0x01DE0000>;
               };
       };
};

DTS appears to parse:

# pwd
/proc/device-tree/plb/opb/ebc
# find nor_flash at FE0000000,0/
nor_flash at FE0000000,0/
nor_flash at FE0000000,0/compatible
nor_flash at FE0000000,0/partition at 0
nor_flash at FE0000000,0/partition at 0/label
nor_flash at FE0000000,0/partition at 0/reg
nor_flash at FE0000000,0/partition at 0/name
nor_flash at FE0000000,0/#address-cells
nor_flash at FE0000000,0/#bank-width
nor_flash at FE0000000,0/#size-cells
nor_flash at FE0000000,0/reg
nor_flash at FE0000000,0/partition at 180000
nor_flash at FE0000000,0/partition at 180000/label
nor_flash at FE0000000,0/partition at 180000/reg
nor_flash at FE0000000,0/partition at 180000/name
nor_flash at FE0000000,0/name

I'm sure this is some sort of syntax error on my part.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20170716/22a60623/attachment.html>


More information about the Linuxppc-dev mailing list