Skip to content

m68k: coldfire: proof-of-concept devicetree

Greg Ungerer linux-m68k 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13serial: mcf: convert to use proper platform resourcesarch/m68k/coldfire/device.c arch/m68k/include/asm/mcfuart.h drivers/tty/serial/mcf.c+218 -640 replies
2/13serial: mcf: add devicetree supportdrivers/tty/serial/mcf.c+12 -00 replies
3/13net: fec: add device tree support for ColdFire FECDocumentation/devicetree/bindings/net/fsl,fec.yaml drivers/net/ethernet/freescale/fec_main.c+6 -02 replies
4/13m68k: coldfire: enable common clock frameworkarch/m68k/Kconfig.cpu arch/m68k/coldfire/clk.c+7 -30 replies
5/13m68k: coldfire: support devicetree binding for intc-simrarch/m68k/coldfire/intc-simr.c+52 -90 replies
6/13m68k: coldfire: support devicetree binding for intc controllerarch/m68k/coldfire/intc.c+43 -70 replies
7/13m68k: coldfire: support devicetree binding for intc-2 controllerarch/m68k/coldfire/intc-2.c+49 -100 replies
8/13m68k: coldfire: add devicetree for mcf5208-evb platformarch/m68k/boot/dts/Makefile arch/m68k/boot/dts/mcf5208evb.dts+61 -00 replies
9/13m68k: coldfire: add devicetree for mcf5475-evb platformarch/m68k/boot/dts/Makefile arch/m68k/boot/dts/mcf5475evb.dts+56 -04 replies
10/13m68k: implement an embedded devicetree for nonmmuarch/m68k/Kconfig.devices arch/m68k/kernel/Makefile arch/m68k/kernel/embedded_dtb.S +2 more+73 -02 replies
11/13m68k: implement an embedded devicetree for mm targetsarch/m68k/kernel/setup_mm.c arch/m68k/kernel/vmlinux-std.lds+43 -00 replies
12/13m68k: coldfire: disable platform device tree entriesarch/m68k/coldfire/device.c+4 -00 replies
13/13m68k: coldfire: enable devicetree usearch/m68k/Kconfig arch/m68k/Kconfig.cpu+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] m68k: coldfire: proof-of-concept devicetree

Proof of Concept only - not for merging.

The following patch set is a minimal conversion of two ColdFire platforms from using the legacy style platform device configuration to using a devicetree. The two platform types supported here are one each of a full MMU target (M5475EVB) and nommu (M5208EVB).

It takes a few short cuts (that is hacks) to prove it is possible and show how it can be done. The problems and more work required include:

. proper conversion to use clock framework
. proper resource setup for interrupt controllers
. conversion of more ColdFire peripherals to use devicetree . cleanup of changes for sending to appropriate lists/maintainers

---
 arch/m68k/Kconfig.cpu                                |    1 
 arch/m68k/boot/dts/Makefile                          |    1 
 arch/m68k/coldfire/device.c                          |    4 
 b/Documentation/devicetree/bindings/net/fsl,fec.yaml |    1 
 b/arch/m68k/Kconfig                                  |    2 
 b/arch/m68k/Kconfig.cpu                              |    2 
 b/arch/m68k/Kconfig.devices                          |   11 
 b/arch/m68k/boot/dts/Makefile                        |    4 
 b/arch/m68k/boot/dts/mcf5208evb.dts                  |   57 ++++
 b/arch/m68k/boot/dts/mcf5475evb.dts                  |   55 ++++
 b/arch/m68k/coldfire/clk.c                           |    8 
 b/arch/m68k/coldfire/device.c                        |  221 ++++++++++++++++---
 b/arch/m68k/coldfire/intc-2.c                        |   59 ++++-
 b/arch/m68k/coldfire/intc-simr.c                     |   61 ++++-
 b/arch/m68k/coldfire/intc.c                          |   50 +++-
 b/arch/m68k/include/asm/mcfuart.h                    |   12 -
 b/arch/m68k/kernel/Makefile                          |    1 
 b/arch/m68k/kernel/embedded_dtb.S                    |   19 +
 b/arch/m68k/kernel/setup_mm.c                        |   33 ++
 b/arch/m68k/kernel/setup_no.c                        |   33 ++
 b/arch/m68k/kernel/vmlinux-nommu.lds                 |    9 
 b/arch/m68k/kernel/vmlinux-std.lds                   |   10 
 b/drivers/net/ethernet/freescale/fec_main.c          |    5 
 b/drivers/tty/serial/mcf.c                           |   49 ++--
 drivers/tty/serial/mcf.c                             |   12 +
 25 files changed, 627 insertions(+), 93 deletions(-)