devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/15] Armada 370/XP watchdog support
@ 2014-01-21  9:12 Ezequiel Garcia
       [not found] ` <1390295561-3466-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 64+ messages in thread
From: Ezequiel Garcia @ 2014-01-21  9:12 UTC (permalink / raw)
  To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Gregory Clement, Lior Amsalem, Tawfik Bayouk,
	Thomas Petazzoni, Jason Cooper, Sebastian Hesselbarth,
	Jason Gunthorpe, Andrew Lunn, Ezequiel Garcia

The second patchset to extend Orion watchdog driver adding support for
Armada 370/XP SoC.

On this series I've tried to address all the issues raised when the previous
patchset was submitted. See here [1] for the previous thread.

I suggest that you go through the above thread to get the full picture.
Anyway, long story short, the main two issues are the ones preventing
multiplatform building:

* Watchdog RSTOUT enable.

  While v1 enabled the RSTOUT at each machine initialization, Jason Gunthorpe
  later pointed out [2] that such enabling might lead to a spurious watchdog
  trigger, in the event of the watchdog expired event not being cleared.

  Therefore, the current patchset adds RSTOUT as a second address resource
  (or 'reg' entry in devicetree words) to allow different platforms specify
  the corresponding address of the register. This change allows to build the
  driver on multiplatforms builds as helps remove a mach-specific header.

  The drawback of this is that the DT backwards compatibility gets broken;
  this was timely discussed but no better solution was achieved or proposed.

* BRIDGE CAUSE clear removal

  The watchdog cause clear should be done by the bridge irqchip driver, so
  it's fine to remove it from the watchdog driver and instead request the
  interruption.

  However, there are still a few platforms (orion5x, and legacy
  kirkwood/dove) that doesn't have this bridge irqchip support enabled.
  On these platforms the bridge cause clear is simply *not* done.

  If we are paranoid about this, maybe we can simply add the clear on each
  mach-xxx/irq.c, together with the other irq is initialization.

The rest of the work is mostly the same as v1.

Patches 1-3 introduces the Atomic I/O API needed to access shared registers;
this patch has been properly discussed elsewhere and has been submitted to
the ARM patch tracker for its inclusion in v3.14.

Patches 2-3 uses the atomic I/O API on the clocksource and watchdog drivers.
The orion clocksource patch is submitted here because the register is shared
with the watchdog.

Patch 4 adds the interrupt handling as already explained above.
Patch 5-6 peform the already discussed RSTOUT and BRIDGE CAUSE changes and
allows multiplatform build.

Patches 7-10 extends the orion_wdt driver to support other SoCs.
Patch 11 adds the Armada 370/XP support.

Patches 12-13 updates the devicetree files, patch 14 allows to build
the driver on any Orion platform and finally patch 15 updates the
defconfig.

This series is based on v3.13-rc8 and has been tested on:

 * Kirkwood Openblocks A6
 * Armada 370 Reference Design

[1] http://comments.gmane.org/gmane.linux.ports.arm.kernel/263459
[2] http://permalink.gmane.org/gmane.linux.ports.arm.kernel/263544

Ezequiel Garcia (15):
  ARM: Introduce atomic MMIO modify
  clocksource: orion: Use atomic access for shared registers
  watchdog: orion: Use atomic access for shared registers
  watchdog: orion: Handle IRQ
  watchdog: orion: Make RSTOUT register a separate resource
  watchdog: orion: Remove unneeded BRIDGE_CAUSE clear
  watchdog: orion: Introduce an orion_watchdog device structure
  watchdog: orion: Introduce per-compatible of_device_id data
  watchdog: orion: Add per-compatible clock initialization
  watchdog: orion: Add per-compatible watchdog start implementation
  watchdog: orion: Add support for Armada 370 and Armada XP SoC
  ARM: mvebu: Enable Armada 370/XP watchdog in the devicetree
  ARM: kirkwood: Add RSTOUT 'reg' entry to devicetree
  watchdog: orion: Allow to build on any Orion platform
  ARM: mvebu: Enable watchdog support in defconfig

 .../devicetree/bindings/watchdog/marvel.txt        |   8 +-
 arch/arm/boot/dts/armada-370-xp.dtsi               |   4 +
 arch/arm/boot/dts/armada-370.dtsi                  |   5 +
 arch/arm/boot/dts/armada-xp.dtsi                   |   6 +
 arch/arm/boot/dts/kirkwood.dtsi                    |   2 +-
 arch/arm/configs/mvebu_defconfig                   |   2 +
 arch/arm/include/asm/io.h                          |   6 +
 arch/arm/kernel/io.c                               |  35 +++
 arch/arm/mach-dove/include/mach/bridge-regs.h      |   1 +
 arch/arm/mach-kirkwood/include/mach/bridge-regs.h  |   1 +
 arch/arm/mach-mv78xx0/include/mach/bridge-regs.h   |   1 +
 arch/arm/mach-orion5x/include/mach/bridge-regs.h   |   1 +
 arch/arm/plat-orion/common.c                       |  10 +-
 drivers/clocksource/time-orion.c                   |  28 +-
 drivers/watchdog/Kconfig                           |   2 +-
 drivers/watchdog/orion_wdt.c                       | 316 ++++++++++++++++-----
 16 files changed, 333 insertions(+), 95 deletions(-)

-- 
1.8.1.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 64+ messages in thread

end of thread, other threads:[~2014-01-23 21:15 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21  9:12 [PATCH v2 00/15] Armada 370/XP watchdog support Ezequiel Garcia
     [not found] ` <1390295561-3466-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21  9:12   ` [PATCH v2 01/15] ARM: Introduce atomic MMIO modify Ezequiel Garcia
2014-01-21  9:45     ` Arnd Bergmann
2014-01-21 10:46       ` Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 02/15] clocksource: orion: Use atomic access for shared registers Ezequiel Garcia
     [not found]     ` <1390295561-3466-3-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21  9:46       ` Arnd Bergmann
2014-01-21  9:58         ` Sebastian Hesselbarth
     [not found]           ` <52DE44B9.70308-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-21 10:54             ` Arnd Bergmann
2014-01-21 11:02               ` Andrew Lunn
2014-01-21  9:57       ` Daniel Lezcano
     [not found]         ` <52DE4491.2000505-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-01-21 10:53           ` Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 03/15] watchdog: " Ezequiel Garcia
     [not found]     ` <1390295561-3466-4-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21  9:19       ` Fabio Estevam
     [not found]         ` <CAOMZO5BKjpkjQGOOAQ5fwmxhg1SYTmTq4Y9tUCZaDSQiosGYyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-21  9:42           ` Ezequiel Garcia
2014-01-21  9:54       ` Arnd Bergmann
2014-01-21 10:13         ` Andrew Lunn
2014-01-21  9:12   ` [PATCH v2 04/15] watchdog: orion: Handle IRQ Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 05/15] watchdog: orion: Make RSTOUT register a separate resource Ezequiel Garcia
     [not found]     ` <1390295561-3466-6-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21 23:33       ` Jason Gunthorpe
2014-01-22  9:48         ` Arnd Bergmann
2014-01-22 16:21           ` Ezequiel Garcia
2014-01-22 18:01             ` Ezequiel Garcia
2014-01-22 18:14               ` Jason Gunthorpe
2014-01-22 18:21                 ` Arnd Bergmann
     [not found]                 ` <20140122181409.GV18269-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-01-22 18:29                   ` Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 06/15] watchdog: orion: Remove unneeded BRIDGE_CAUSE clear Ezequiel Garcia
     [not found]     ` <1390295561-3466-7-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21 23:35       ` Jason Gunthorpe
     [not found]         ` <20140121233537.GS18269-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-01-22 16:49           ` Ezequiel Garcia
2014-01-22 17:34             ` Jason Gunthorpe
     [not found]               ` <20140122173417.GT18269-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-01-22 17:45                 ` Ezequiel Garcia
2014-01-22 17:50                   ` Jason Gunthorpe
     [not found]                     ` <20140122175030.GU18269-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-01-22 18:03                       ` Ezequiel Garcia
2014-01-22 20:31                 ` Sebastian Hesselbarth
     [not found]                   ` <52E02AB6.7040104-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-22 20:52                     ` Jason Gunthorpe
     [not found]                       ` <20140122205213.GW18269-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-01-22 22:12                         ` Ezequiel Garcia
2014-01-22 22:31                           ` Jason Gunthorpe
     [not found]                             ` <20140122223117.GX18269-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-01-22 22:56                               ` Ezequiel Garcia
2014-01-23  0:03                               ` Sebastian Hesselbarth
     [not found]                                 ` <52E05C4E.9060709-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-23  0:19                                   ` Jason Gunthorpe
     [not found]                                     ` <20140123001934.GY18269-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-01-23  0:35                                       ` Sebastian Hesselbarth
2014-01-23 12:04                                       ` Ezequiel Garcia
2014-01-22 23:49                         ` Sebastian Hesselbarth
     [not found]                           ` <52E0591E.6030009-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-23 11:10                             ` Ezequiel Garcia
2014-01-23 11:54                               ` Ezequiel Garcia
2014-01-23 21:15                                 ` Sebastian Hesselbarth
2014-01-21  9:12   ` [PATCH v2 07/15] watchdog: orion: Introduce an orion_watchdog device structure Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 08/15] watchdog: orion: Introduce per-compatible of_device_id data Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 09/15] watchdog: orion: Add per-compatible clock initialization Ezequiel Garcia
     [not found]     ` <1390295561-3466-10-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21  9:18       ` Fabio Estevam
     [not found]         ` <CAOMZO5BDS8Dh1PR6SJv1CK5Pkq5mub-Hs7c4RhxUn7o5efnbKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-21  9:43           ` Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 10/15] watchdog: orion: Add per-compatible watchdog start implementation Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 11/15] watchdog: orion: Add support for Armada 370 and Armada XP SoC Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 12/15] ARM: mvebu: Enable Armada 370/XP watchdog in the devicetree Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 13/15] ARM: kirkwood: Add RSTOUT 'reg' entry to devicetree Ezequiel Garcia
2014-01-21  9:12   ` [PATCH v2 14/15] watchdog: orion: Allow to build on any Orion platform Ezequiel Garcia
     [not found]     ` <1390295561-3466-15-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21  9:41       ` Sebastian Hesselbarth
     [not found]         ` <52DE40BD.10700-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-21  9:45           ` Andrew Lunn
     [not found]             ` <20140121094501.GA13396-g2DYL2Zd6BY@public.gmane.org>
2014-01-21 10:04               ` Ezequiel Garcia
2014-01-21 11:06           ` Removing PLAT_ORION dependency from ARCH_MVEBU (Was Re: [PATCH v2 14/15] watchdog: orion: Allow to build on any Orion platform) Ezequiel Garcia
2014-01-21 11:44             ` Sebastian Hesselbarth
2014-01-21  9:12   ` [PATCH v2 15/15] ARM: mvebu: Enable watchdog support in defconfig Ezequiel Garcia
     [not found]     ` <1390295561-3466-16-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-21 12:47       ` Jason Cooper
     [not found]         ` <20140121124746.GZ29184-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2014-01-21 12:53           ` Andrew Lunn
     [not found]             ` <20140121125339.GH13396-g2DYL2Zd6BY@public.gmane.org>
2014-01-21 12:57               ` Jason Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).