Skip to contentSkip to conversation

of_serial vs legacy serial support with powerpc arch on 405

DISCUSSION John Linn 3 participants 4 messages Mar 11, 2008

lore
Share & tools
lore

John Linn

author
#0 lore raw

I've searched and found some threads, but it's still not clear to me. I'm working on 405 with powerpc and trying to get UART550 working.

I know that I need speed, freq, and reg-shift properties in the device tree and I have found patches for of_serial.c.

I still don't understand when to use of_serial.c (SERIAL_OF_PLATFORM) vs the legacy support for serial ports. Is there any docs that I'm not finding that I should read?

I don't see a way to configure in the legacy support, but I'm using SERIAL_OF and having problems. I don't see the console getting enabled even though it found the serial port driver.

Thanks,

John

#1 lore raw
Quoted 2 lines · On Tue, 11 Mar 2008 09:04:27 -0600 "John Linn" <[email protected]> wrote:

I've searched and found some threads, but it's still not clear to me. I'm working on 405 with powerpc and trying to get UART550 working.

Walnut works. So do Halakeau and Kilauea. Is your serial port significantly different from those?

Quoted 2 lines

I know that I need speed, freq, and reg-shift properties in the device tree and I have found patches for of_serial.c.

Patches for of_serial.c for what?

Quoted 3 lines

I still don't understand when to use of_serial.c (SERIAL_OF_PLATFORM) vs the legacy support for serial ports. Is there any docs that I'm not finding that I should read?

There are no docs. At one time, of_serial was declared as the one true serial driver, but these days either will do. The benefit of legacy_serial is that output is enabled earlier in the boot.

Quoted 3 lines

I don't see a way to configure in the legacy support, but I'm using SERIAL_OF and having problems. I don't see the console getting enabled even though it found the serial port driver.

You need to have CONFIG_PPC_UDBG_16550 set to bring in legacy_serial.

josh

#2 lore raw

Josh,

Specifically, we're trying to get console on of_serial, but there doesn't seem to be any code to register a console, except in legacy_serial? But legacy_serial doesn't implement the offsets necessary for the Xilinx uart16550 cores. Does it seem reasonable to add code to of_serial.c to register consoles, or is there something else we're missing here?

Steve

Quoted 2 lines

-----Original Message-----
From: =

linuxppc-dev-bounces+stephen.neuendorffer=3Dxilinx.com@ozlabs.org [mailto:linuxppc-dev-

Quoted 1 line

[email protected]] On Behalf Of =

Josh
Boyer

Quoted 4 lines

Sent: Tuesday, March 11, 2008 3:03 PM
To: John Linn
Cc: [email protected]
Subject: Re: of_serial vs legacy serial support with powerpc arch on

405

Quoted 5 lines

=20
On Tue, 11 Mar 2008 09:04:27 -0600
"John Linn" <[email protected]> wrote:
=20

Quoted 1 line

I've searched and found some threads, but it's still not clear to

me.

Quoted 6 lines
Quoted 1 line

I'm working on 405 with powerpc and trying to get UART550 working.

=20
Walnut works. So do Halakeau and Kilauea. Is your serial port significantly different from those?
=20

Quoted 1 line

I know that I need speed, freq, and reg-shift properties in the

device

Quoted 5 lines
Quoted 1 line

tree and I have found patches for of_serial.c.

=20
Patches for of_serial.c for what?
=20

Quoted 1 line

I still don't understand when to use of_serial.c

(SERIAL_OF_PLATFORM) vs

Quoted 4 lines
Quoted 2 lines

the legacy support for serial ports. Is there any docs that I'm not finding that I should read?

=20
There are no docs. At one time, of_serial was declared as the one

true

Quoted 5 lines

serial driver, but these days either will do. The benefit of legacy_serial is that output is enabled earlier in the boot. =20

Quoted 2 lines

I don't see a way to configure in the legacy support, but I'm using SERIAL_OF and having problems. I don't see the console getting

enabled

Quoted 9 lines
Quoted 1 line

even though it found the serial port driver.

=20
You need to have CONFIG_PPC_UDBG_16550 set to bring in legacy_serial. =20
josh
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

author
#3 lore raw
In reply to Josh Boyer

Thanks for the help Josh. I made some comments in-line.

-----Original Message-----
From: Josh Boyer [mailto:[email protected]]=20
Sent: Tuesday, March 11, 2008 4:03 PM
To: John Linn
Cc: [email protected]
Subject: Re: of_serial vs legacy serial support with powerpc arch on 405

Quoted 2 lines · On Tue, 11 Mar 2008 09:04:27 -0600 "John Linn" <[email protected]> wrote:

I've searched and found some threads, but it's still not clear to me. I'm working on 405 with powerpc and trying to get UART550 working.

Walnut works. So do Halakeau and Kilauea. Is your serial port significantly different from those?

Quoted 4 lines
Quoted 1 line

Requires a shift as the regs are farther apart.

I know that I need speed, freq, and reg-shift properties in the device tree and I have found patches for of_serial.c.

Patches for of_serial.c for what?

Quoted 2 lines
Quoted 2 lines

There was a patch to correct where the spd was assumed to be in the=20 device tree and it would bomb out if it wasn't. I was thinking there

was

Quoted 1 line
Quoted 1 line

a patch for the reg-shift value also.

=20

Quoted 1 line

I still don't understand when to use of_serial.c (SERIAL_OF_PLATFORM)

vs

Quoted 2 lines

the legacy support for serial ports. Is there any docs that I'm not finding that I should read?

There are no docs. At one time, of_serial was declared as the one true serial driver, but these days either will do. The benefit of legacy_serial is that output is enabled earlier in the boot.

Quoted 3 lines

I don't see a way to configure in the legacy support, but I'm using SERIAL_OF and having problems. I don't see the console getting enabled even though it found the serial port driver.

You need to have CONFIG_PPC_UDBG_16550 set to bring in legacy_serial.

Quoted 1 line
Quoted 1 line

Thanks got it working with some mods.

josh