On Tue, Feb 24, 2009 at 10:31:37AM +1100, Dushara Jayasinghe wrote:
> Hi,
> 
> I'm working on the kernel version Linux-2.6.29-rc5 with U-Boot 
> 1.2.0-g88e21e7b-dirty.
> 
> Does the flash node HAVE to be within a localbus node or can it reside within 
> the soc node? I've been basing my work on mpc834x_mds.dts
> And hence haven't defined a localbus node.
> 

I'm also working on a custom board based on MPC8349EMDS, and have based
my dts off of mpc834x_mds.dts. I've added the localbus node with my
chipselects and flash. It works, but there are no guarantees of
correctness.

I've appended the important portion below, just in case it helps.
Ira

        local...@e0005000 {
                #address-cells = <2>;
                #size-cells = <1>;
                compatible = "fsl,mpc8349-elbc", "fsl,elbc", "simple-bus";
                reg = <0xe0005000 0x1000>;
                interrupts = <77 0x8>;
                interrupt-parent = <&ipic>;

                // CS0 and CS1 -- probably wrong...
                ranges = <0x0 0x0 0xfc000000 0x04000000
                          0x1 0x0 0xf0000000 0x00004000>;

                fl...@0,0 {
                        #address-cells = <1>;
                        #size-cells = <1>;
                        compatible = "cfi-flash";
                        reg = <0x0 0x0 0x04000000>;
                        bank-width = <2>;
                        device-width = <1>;

                        u-b...@0 {
                                reg = <0x0 0x40000>;
                        };

                        u-boot-...@60000 {
                                reg = <0x60000 0x20000>;
                        };

                        sys-f...@3de0000 {
                                reg = <0x3de0000 0x220000>;
                        };
                };
        };

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to