Skip to content

DT early console initialization

Rob Herring linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6of: align RESERVEDMEM_OF_DECLARE function callbacks to other callbacksdrivers/of/of_reserved_mem.c include/linux/of_reserved_mem.h+3 -31 reply
2/6of: consolidate linker section OF match table declarationsdrivers/clocksource/clksrc-of.c drivers/irqchip/irqchip.h include/linux/clk-provider.h +3 more+32 -381 reply
3/6serial: earlycon: add DT supportdrivers/tty/serial/earlycon.c include/asm-generic/vmlinux.lds.h include/linux/serial_core.h+36 -10 replies
4/6of/fdt: add FDT address translation supportdrivers/of/Makefile drivers/of/fdt_address.c include/linux/of_fdt.h+244 -00 replies
5/6of/fdt: add FDT serial scanning for earlycondrivers/of/fdt.c+56 -00 replies
6/6tty/serial: pl011: add DT based earlycon supportdrivers/tty/serial/amba-pl011.c+1 -00 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarek SzyprowskiGrant Likely
SeriesA-b
1/6A-b
2/6A-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] DT early console initialization

From: Rob Herring <[email protected]>

This series adds support for early serial console initialization using DT. This enables determining the serial port type and address using the FDT and allows enabling the console before platform specific initialization runs. I've tested this on arm64. ARM support is dependent on adding fixmap support.

Currently, the earlycon is only enabled if "earlycon" is present on the kernel command line. The FDT needs to have /chosen/stdout-path set to the path of the serial port.

This series is dependent on generic earlycon[1], libfdt support[2], and vmlinux.lds.h clean-ups[3]. The first 2 are in linux-next already. A git branch is available here:

git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git earlycon-dt

Rob

[1] https://lkml.org/lkml/2014/4/18/573
[2] https://lkml.org/lkml/2014/4/22/1202
[3] https://lkml.org/lkml/2014/3/27/285

Rob Herring (6):
of: align RESERVEDMEM_OF_DECLARE function callbacks to other callbacks
of: consolidate linker section OF match table declarations
serial: earlycon: add DT support
of/fdt: add FDT address translation support
of/fdt: add FDT serial scanning for earlycon
tty/serial: pl011: add DT based earlycon support

 drivers/clocksource/clksrc-of.c   |   2 +-
 drivers/irqchip/irqchip.h         |   7 +-
 drivers/of/Makefile               |   2 +
 drivers/of/fdt.c                  |  56 +++++++++
 drivers/of/fdt_address.c          | 241 ++++++++++++++++++++++++++++++++++++++
 drivers/of/of_reserved_mem.c      |   2 +-
 drivers/tty/serial/amba-pl011.c   |   1 +
 drivers/tty/serial/earlycon.c     |  27 +++++
 include/asm-generic/vmlinux.lds.h |   4 +-
 include/linux/clk-provider.h      |   5 +-
 include/linux/clocksource.h       |  16 +--
 include/linux/of.h                |  22 ++++
 include/linux/of_fdt.h            |   1 +
 include/linux/of_reserved_mem.h   |  22 +---
 include/linux/serial_core.h       |   6 +
 15 files changed, 372 insertions(+), 42 deletions(-)
 create mode 100644 drivers/of/fdt_address.c
Signature · 1 line
1.9.1