Help with device tree binding for SMC serial
Rune Torgersen
runet at innovsys.com
Thu Jan 10 10:07:23 EST 2008
> From: Scott Wood [mailto:scottwood at freescale.com]
> Rune Torgersen wrote:
> >> From: Scott Wood
> >> Don't forget to exclude the SMC parameter RAM from the muram
> >> data area
> >> in /soc/cpm/muram/data/reg. If you have an older device
> tree binding
> >> that has no /soc/cpm/muram node, but instead has two resources in
> >> /soc/cpm/reg, you need to move to head-of-tree to get this to work.
> >
> > Did that, now we get e checkstop resert. Time to hook up the
> > BDI-2000....
> > Is there a way to have the bootwrapper use the u-boot
> serial for a while
> > (like a early srial port) for debugging?
>
> If you mean calling into u-boot for a console, no, there's no
> code for that.
>
> What do your cpm and muram nodes look like?
cpm at 119c0 {
#address-cells = <1>;
#size-cells = <1>;
#interrupt-cells = <2>;
compatible = "fsl,mpc8280-cpm", "fsl,cpm2";
reg = <119c0 30>;
ranges;
muram at 0 {
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0 10000>;
data at 0 {
compatible = "fsl,cpm-muram-data";
reg = <100 1f00 9800 800>;
};
};
brg at 119f0 {
compatible = "fsl,mpc8280-brg",
"fsl,cpm2-brg",
"fsl,cpm-brg";
reg = <119f0 10 115f0 10>;
};
serial at 11a80 {
device_type = "serial";
compatible = "fsl,mpc8280-smc-uart",
"fsl,cpm2-smc-uart";
reg = <11a80 10 0 40>; // <base_address
length parameter_ram_address length>
interrupts = <4 8>; // Interrupt from
table 4.3 of mpc8280rm, interrupt is level or edge
interrupt-parent = <&PIC>;
fsl,cpm-brg = <7>;
fsl,cpm-command = <1d000000>; // Page and
Sub-block code of the CPCR
};
};
and chosen node (not sure if needed)
chosen {
linux,stdout-path = "/soc/cpm/serial at 11a80";
bootargs = "console=ttyS0,115200";
};
More information about the Linuxppc-dev
mailing list