machine check in kernel for a mpc870 board

Shawn Jin shawnxjin at gmail.com
Thu Jul 1 08:25:57 EST 2010


Hi Scott,

> Does u-boot on your board put IMMR somewhere other than 0xff000000?  If so,
> you'll need to update the device tree to reflect this.

Thanks a lot. I think you got something here. Please bear with me.
This is the first dts file I'm creating. I have some question
regarding to dts first. BTW, My IMMR is at 0xfa200000.

How do I find the address, reg, and range for nodes like localbus,
soc, eth0, cpm, serial etc.? Do the addresses of localbus and soc
relate to IMMR? So my localbus and soc should be as follows?

        localbus at fa200100 {
                compatible = "fsl,mpc885-localbus", "fsl,pq1-localbus",
                             "simple-bus";
                #address-cells = <2>;
                #size-cells = <1>;
                reg = <0xfa200100 0x40>;

                ranges = <
                        0 0 0xfe000000 0x01000000    // I'm not sure about this?
                >;
        };

        soc at fa200000 {
                compatible = "fsl,mpc875-immr", "fsl,pq1-soc", "simple-bus";
                #address-cells = <1>;
                #size-cells = <1>;
                ranges = <0 0xfa200000 0x00004000>;

                // Temporary until code stops depending on it.
                device_type = "soc";

                // Temporary until get_immrbase() is fixed.
                reg = <0xfa200000 0x4000>;
        };

Thanks again,
-Shawn.


More information about the Linuxppc-dev mailing list