On 12/19/2012 11:15 PM, Laxman Dewangan wrote:On Wednesday 19 December 2012 10:30 PM, Stephen Warren wrote:Oh, I see. I guess the aliases make sense then.On 12/18/2012 11:31 PM, Laxman Dewangan wrote:Serial aliases are added because we want to get the port number likeAdd APB DMA requestor and serial aliases for serial controller.This patch seems to do two things:
There will be two serial driver i.e. 8250 based simple serial driver
and APB DMA based serial driver for higher baudrate and performace.
The simple serial driver get enabled with compatible nvidia,tegra20-uart
and APB DMA based driver will get enabled with compatible
nvidia,tegra20-hsuart.
1) Add a comment describing how to select the basic or DMA-based driver.
I can see why this is useful.
2) Add aliases for the serial ports. I have no idea why this is useful.
/dev/ttyTHS0, /d/ttyTHS2 etc. The uarta should be /dev/ttyTHS0 and
uartc should be /dev/ttyTHS2. The port number can be found using aliases
and of_alias_get_id() in driver file:
port_number = of_alias_get_id(np, "serial");
But, wouldn't you only add aliases for the specific UARTs that are in
use on a particular board (so put them in tegraNN-board.dts) rather than
all UARTs on Tegra (i.e. the current patch which puts them into
tegraNN.dtsi)?