arm64: dts: allwinner: pine64: Add remaining UART aliases
Subsystems (2)
PATCH 1/1 arm64: dts: allwinner: pine64: Add remaining UART aliases
Enabling uart2 node currently leads to a /dev/ttyS1 device, with ttyS0..4 always present, causing confusion on the user's part.
dtc cannot resolve an overlay's &uart2 reference for strings, only for phandles, so it would need to hardcode the full node path.
Avoid this and enforce reliable numbering by adding serialX aliases for:
UART1 - on Wifi/BT connector
UART2 - on Pi-2 connector
UART3 - on Euler connector
UART4 - on Euler connector
--- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +4 -0
@@ -52,6 +52,10 @@ aliases { serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; }; chosen {
Signature · 1 line
2.10.2
Maxime Ripard
AppliedQuoted 6 lines · Andreas F?rber
Enabling uart2 node currently leads to a
/dev/ttyS1device, with ttyS0..4 always present, causing confusion on the user's part.dtc cannot resolve an overlay's &uart2 reference for strings, only for phandles, so it would need to hardcode the full node path.
Quoted 8 lines
Avoid this and enforce reliable numbering by adding serialX aliases for:
UART1 - on Wifi/BT connector
UART2 - on Pi-2 connector
UART3 - on Euler connector
UART4 - on Euler connectorSigned-off-by Andreas F?rber <[email protected]>
Applied, thanks
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170418/c26970a1/attachment.sig>