Skip to content

Adding NPS400 drivers

Noam Camus linux-snps-arc lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 4 repliesIn review
  2. v43 patches 1 replySuperseded
  3. v33 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches1 replySuperseded
v12 patches0 repliesSuperseded

Changes in v5 from the cover letter

Clocksource, irqchip - Fix gracefull return.
replace call to panic() with pr_err() and proper return value.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3soc: Support for EZchip SoCinclude/soc/nps/common.h+150 -00 replies
2/3clocksource: Add NPS400 timers driverDocumentation/devicetree/bindings/timer/ezchip,nps400-timer.txt drivers/clocksource/Kconfig drivers/clocksource/Makefile +1 more+108 -01 reply
3/3irqchip: add nps Internal and external irqchipsDocumentation/devicetree/bindings/interrupt-controller/ezchip,nps400-ic.txt drivers/irqchip/Kconfig drivers/irqchip/Makefile +1 more+173 -02 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchVineet GuptaDaniel Lezcano
1/3
2/3A-b A-b
3/3

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

Read the v5 thread

Cover letter [PATCH v5 0/3] Adding NPS400 drivers

From: Noam Camus <[email protected]>

Change Log--
v5:
Clocksource, irqchip - Fix gracefull return.
replace call to panic() with pr_err() and proper return value.

v4:
clocksource -- Apply all Daniel comments (Thanks)
Handle gracefull return and also using clocksoure mmio driver at init

v3:
irqchip - Fix ARM build failure by adding missing include of linux/irq.h
clocksource -- Avoid 64bit arch's to build driver by adding new dependency !PHYS_ADDR_T_64BIT
This is since we use explicit io access of 32 bit. So for test coverage we allow not only build for ARC, but restrict it to 32 bit arch's.
irqchip - Apply all Thomas comments (Thank you)

v2:
Add header file include/soc/nps/common.h.
Now to build we do not depend on ARC subtree.

General summay:
Both drivers are now apart of previous basic patch set of new platform for ARC. The rest is now can be seen at ARC srctree:
https://git.kernel.org/cgit/linux/kernel/git/vgupta/arc.git/

Now ARC is supporting DT for clockevents and the interrupt controller ARC uses irq domain handling.

Compare to last version now clocksource driver do not include clockevent registration since NPS400 can use ARC generic driver.

Compare to last version now irqchip driver sets domain as default since it is the root domain. Also mapping of IPI is done in this driver.

Last thing is that drivers can be build cleanly for i386 (still runs only for ARC)
Note: in order to build we need to merge drivers into srctree which includes new header:
soc/nps/common.h
This header is part of patch set applied to ARC srctree.

Regards,
Noam Camus

Noam Camus (3):
soc: Support for EZchip SoC
clocksource: Add NPS400 timers driver
irqchip: add nps Internal and external irqchips

 .../interrupt-controller/ezchip,nps400-ic.txt      |   17 +++
 .../bindings/timer/ezchip,nps400-timer.txt         |   15 ++
 drivers/clocksource/Kconfig                        |   10 ++
 drivers/clocksource/Makefile                       |    1 +
 drivers/clocksource/timer-nps.c                    |   82 +++++++++++
 drivers/irqchip/Kconfig                            |    6 +
 drivers/irqchip/Makefile                           |    1 +
 drivers/irqchip/irq-eznps.c                        |  149 +++++++++++++++++++
 include/soc/nps/common.h                           |  150 ++++++++++++++++++++
 9 files changed, 431 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ezchip,nps400-ic.txt
 create mode 100644 Documentation/devicetree/bindings/timer/ezchip,nps400-timer.txt
 create mode 100644 drivers/clocksource/timer-nps.c
 create mode 100644 drivers/irqchip/irq-eznps.c
 create mode 100644 include/soc/nps/common.h