[ELDK] MPC52xx PSC1 serial port not working in linux denx 3.1

Yeo Keewee yeokiwi at gmail.com
Sat Oct 6 09:27:54 CEST 2012


Hi all,

I have a customized board based on lite5200b eval board. For this board,
PSC0 and PSC1 are configured to be UARTs.
I have configured the PSC1 in the device tree as followed:

		serial at 2000 {		// PSC1
			device_type = "serial";
			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
			port-number = <0>;  // Logical port assignment
			cell-index = <0>;
			reg = <2000 100>;
			interrupts = <2 1 0>;
			interrupt-parent = <&mpc5200_pic>;

		serial at 2200 {		// PSC2
			device_type = "serial";
			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
			port-number = <1>;  // Logical port assignment
			cell-index = <1>;
			reg = <2200 100>;
			interrupts = <2 2 0>;
			interrupt-parent = <&mpc5200_pic>;

I have also created the node /dev/ttyPSC0 and /dev/ttyPSC1. However,I
failed to read and write to ttyPSC1. But, I can open ttyPSC0 and read and
write to it though.
When I do a "cat /proc/interrupts", I got the following:

129:      832   MPC52xx Peripherals Level        mpc52xx_psc_uart
130:          10   MPC52xx Peripherals Level
133:          0   MPC52xx Peripherals Level        mpc52xx-fec_ctrl
134:          0   MPC52xx Peripherals Level        ohci_hcd:usb1
135:      16127   MPC52xx Peripherals Level        mpc52xx_ata

Under the interrupt 130, the mpc52xx_psc_uart is missing. Is there anything
wrong?
I can open the port ttyPSC1 successfully but unable to perform read and
write.

I am using ELDK4.2, uboot 2010 version and denx linux 3.1.

Any clues? Thanks

Regards
Kee Wee


More information about the eldk mailing list