Skip to content

RFC ARM: Basic Xilinx Support

Grant Likely linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am 20110502045207.24800.91172.stgit@ponder

Versions newest first

  1. v1 RFC Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm/dt: Add dt machine definitionarch/arm/include/asm/mach/arch.h+9 -00 replies
2/4of/address: Add of_find_matching_node_by_address helperdrivers/of/address.c include/linux/of_address.h+22 -00 replies
3/4dt/irq: add of_irq_domain_add_simple() helperdrivers/of/irq.c include/linux/of_irq.h+46 -00 replies
4/4ARM: Xilinx: Adding Xilinx board supportDocumentation/devicetree/bindings/arm/xilinx.txt arch/arm/Kconfig arch/arm/Makefile +21 more+947 -14 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] ARM: Basic Xilinx Support

Hi Russell,

Just for giggles, here is the Xilinx board support series reworked a bit to depend entirely on CONFIG_OF and not use any static device registrations other than what is needed to bootstrap the system, and adds as little code as possible in terms of new infrastructure. All told, the 4th patch adds less than 950 lines of code to the kernel, which is pretty darn good for a whole new subarch.

The zynq platform is a pretty ideal test case for this since the goal has been from day one to depend on CONFIG_OF. The previous series only used static device registrations because device tree on arm isn't yet in mainline. Plus, xilinx is already quite comfortable with how to use the device tree since their other two architectures (powerpc and microblaze) have depended on device tree for years now.

I'd like to get your thoughts on the reuse of plat-versatile for the struct clk implementation. I'm certainly not excited about creating yet another implementation, and versatile seems to be ideal to reuse.

The previous version of this board support has already been in linux-next for quite a while now. If you do decide to pick up device tree support for 2.6.40, then it would pretty low risk thing to queue up this board support also.

The 2nd and 3rd patches aren't actually part of the board support, but I included them here because they're needed to get the patch to apply. The whole series is based on top of both the irq_domain series I posted last week and the latest arm device tree support series.

g.

---

Grant Likely (4):
arm/dt: Add dt machine definition
of/address: Add of_find_matching_node_by_address helper dt/irq: add of_irq_domain_add_simple() helper
ARM: Xilinx: Adding Xilinx board support

 Documentation/devicetree/bindings/arm/xilinx.txt |    7 +
 arch/arm/Kconfig                                 |   14 +
 arch/arm/Makefile                                |    2 
 arch/arm/boot/dts/zynq-ep107.dts                 |   52 ++++
 arch/arm/include/asm/mach/arch.h                 |    9 +
 arch/arm/mach-zynq/Makefile                      |    6 
 arch/arm/mach-zynq/Makefile.boot                 |    3 
 arch/arm/mach-zynq/board_dt.c                    |   36 +++
 arch/arm/mach-zynq/common.c                      |  112 ++++++++
 arch/arm/mach-zynq/common.h                      |   29 ++
 arch/arm/mach-zynq/include/mach/clkdev.h         |   32 ++
 arch/arm/mach-zynq/include/mach/debug-macro.S    |   36 +++
 arch/arm/mach-zynq/include/mach/entry-macro.S    |   30 ++
 arch/arm/mach-zynq/include/mach/hardware.h       |   18 +
 arch/arm/mach-zynq/include/mach/io.h             |   33 ++
 arch/arm/mach-zynq/include/mach/irqs.h           |   21 ++
 arch/arm/mach-zynq/include/mach/memory.h         |   22 ++
 arch/arm/mach-zynq/include/mach/system.h         |   28 ++
 arch/arm/mach-zynq/include/mach/timex.h          |   23 ++
 arch/arm/mach-zynq/include/mach/uart.h           |   25 ++
 arch/arm/mach-zynq/include/mach/uncompress.h     |   51 ++++
 arch/arm/mach-zynq/include/mach/vmalloc.h        |   20 +
 arch/arm/mach-zynq/include/mach/zynq_soc.h       |   48 ++++
 arch/arm/mach-zynq/timer.c                       |  298 ++++++++++++++++++++++
 arch/arm/mm/Kconfig                              |    2 
 drivers/of/address.c                             |   18 +
 drivers/of/irq.c                                 |   44 +++
 include/linux/of_address.h                       |    4 
 include/linux/of_irq.h                           |    2 
 29 files changed, 1024 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/xilinx.txt
 create mode 100644 arch/arm/boot/dts/zynq-ep107.dts
 create mode 100644 arch/arm/mach-zynq/Makefile
 create mode 100644 arch/arm/mach-zynq/Makefile.boot
 create mode 100644 arch/arm/mach-zynq/board_dt.c
 create mode 100644 arch/arm/mach-zynq/common.c
 create mode 100644 arch/arm/mach-zynq/common.h
 create mode 100644 arch/arm/mach-zynq/include/mach/clkdev.h
 create mode 100644 arch/arm/mach-zynq/include/mach/debug-macro.S
 create mode 100644 arch/arm/mach-zynq/include/mach/entry-macro.S
 create mode 100644 arch/arm/mach-zynq/include/mach/hardware.h
 create mode 100644 arch/arm/mach-zynq/include/mach/io.h
 create mode 100644 arch/arm/mach-zynq/include/mach/irqs.h
 create mode 100644 arch/arm/mach-zynq/include/mach/memory.h
 create mode 100644 arch/arm/mach-zynq/include/mach/system.h
 create mode 100644 arch/arm/mach-zynq/include/mach/timex.h
 create mode 100644 arch/arm/mach-zynq/include/mach/uart.h
 create mode 100644 arch/arm/mach-zynq/include/mach/uncompress.h
 create mode 100644 arch/arm/mach-zynq/include/mach/vmalloc.h
 create mode 100644 arch/arm/mach-zynq/include/mach/zynq_soc.h
 create mode 100644 arch/arm/mach-zynq/timer.c
Signature · 1 line
Signature