[RFC 1/1] powerpc: legacy serial port use device tree cell-index property

Rob Herring robh+dt at kernel.org
Thu Dec 31 09:34:34 AEDT 2015


On Wed, Nov 25, 2015 at 12:46 PM, Curt Brune <curt at cumulusnetworks.com> wrote:
> Currently for PowerPC systems using device tree, the legacy serial
> ports are allocated in the order by which they are found in the device
> tree structure.
>
> This can cause problems in cases where the device tree nodes are
> sysnthesized by an external program (kexec for example), which may not
> preserve the original order of the device tree nodes.  This in turn
> can result in the serial console changing from ttyS0 to ttyS1
> unexpectedly.
>
> This patch uses the 'cell-index' property (if present) to map UART
> device tree nodes to legacy serial port number.  The cell-index
> property is widely used in all the Freescale .dts files for PowerPC.

If cell-index is already present in the dtbs, then this is okay.
Otherwise use aliases. cell-index is pretty much deprecated.

Rob


More information about the Linuxppc-dev mailing list