arm64: dts: add all hi6220 uart nodes
Subsystems (2)
PATCH v2 1/1 arm64: dts: add all hi6220 uart nodes
This patch adds all UART nodes for the Hi6220 SoC. Recently a board[1] has been developed to standardize UART access across all the 96boards consumer edition boards. To use this hardware on HiKey we must configure and enable UART3. However, to ensure backward compatibility we must keep UART0 enabled as well.
I have removed the hard coded clock index values in favor of using the ones already defined in include/dt-bindings/clock/hi6220-clock.h.
Since UART0 needs to be soldered, it has been suggested to use the UART3 as the default console.
This patch was boot tested on top of next-20150930, with both UART configurations.
[1] http://www.seeedstudio.com/depot/96Boards-UART-p-2525.html?ref=newInBazaar
---
In v2:
- Drop unused alias, and add comments. (Arnd, Rob)
- Switch default console to use UART3 with stdout-path. (Mark, Rob)
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 7 +++-- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 43 +++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +5 -2
@@ -17,11 +17,14 @@ compatible = "hisilicon,hi6220-hikey", "hisilicon,hi6220"; aliases { - serial0 = &uart0; + serial0 = &uart0; /* On board UART0 */ + serial1 = &uart1; /* BT UART */ + serial2 = &uart2; /* LS Expansion UART0 */ + serial3 = &uart3; /* LS Expansion UART1 */ }; chosen { - stdout-path = "serial0:115200n8"; + stdout-path = "serial3:115200n8"; }; memory at 0 {
arch/arm64/boot/dts/hisilicon/hi6220.dtsi +42 -1
56 lines not on this page · raw message
Signature · 1 line
2.1.4
Arnd Bergmann
AppliedPATCH v2 1/1 arm64: dts: add all hi6220 uart nodes
Quoted 12 lines · On Wednesday 30 September 2015 18:19:48 Tyler Baker wrote:
This patch adds all UART nodes for the Hi6220 SoC. Recently a board[1] has been developed to standardize UART access across all the 96boards consumer edition boards. To use this hardware on HiKey we must configure and enable UART3. However, to ensure backward compatibility we must keep UART0 enabled as well.
I have removed the hard coded clock index values in favor of using the ones already defined in
include/dt-bindings/clock/hi6220-clock.h.Since UART0 needs to be soldered, it has been suggested to use the UART3 as the default console.
Quoted 7 lines
This patch was boot tested on top of next-20150930, with both UART configurations.
[1] http://www.seeedstudio.com/depot/96Boards-UART-p-2525.html?ref=newInBazaar
Signed-off-by Tyler Baker <[email protected]>
Applied to next/dt, thanks!
Arnd