devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add support for hwspinlock on A64 SoC
@ 2020-02-11 12:26 Nikolay Borisov
  2020-02-11 12:26 ` [PATCH v2 1/3] hwspinlock: sunxi: Implement support for Allwinner's " Nikolay Borisov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Nikolay Borisov @ 2020-02-11 12:26 UTC (permalink / raw)
  To: mripard, bjorn.andersson
  Cc: devicetree, wens, robh+dt, linux-arm-kernel, Nikolay Borisov

Here's v2 of hwspinlock support in A64 SoC. Main changes:

* Rewrote dt bindings in yaml
* Re-arranged hwspinlock node in dts to follow ascending address order
* Sorted includes alphabetically
* Minor style changes
* Use GENMASK/FIELD_GET to query number of locks from mmio register
* Separate hwspinlock_device from sun50i_hwspinlock. This enables to utilize
devm_add_action_or_reset, which results in cleaner error handling in the probe
function.
* Switched to device managed resources where applicable.


This was tested on a pine64 board. I loadeded/unloaded the driver checking the
state of clock/reset/sysstatus registers as well as trying lock/unlock operations
(using the devmem busybox utility).

Nikolay Borisov (3):
  hwspinlock: sunxi: Implement support for Allwinner's A64 SoC
  arm64: dts: allwinner: a64: Add hwspinlock node
  dt-bindings: hwlock: Document A64 hwspinlock bindings

 .../allwinner,sun50i-a64-hwspinlock.yaml      |  47 +++++
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi |   9 +
 drivers/hwspinlock/Kconfig                    |   9 +
 drivers/hwspinlock/Makefile                   |   1 +
 drivers/hwspinlock/sun50i_hwspinlock.c        | 163 ++++++++++++++++++
 5 files changed, 229 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml
 create mode 100644 drivers/hwspinlock/sun50i_hwspinlock.c

--
2.17.1


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

end of thread, other threads:[~2020-02-18 23:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 12:26 [PATCH v2 0/3] Add support for hwspinlock on A64 SoC Nikolay Borisov
2020-02-11 12:26 ` [PATCH v2 1/3] hwspinlock: sunxi: Implement support for Allwinner's " Nikolay Borisov
2020-02-11 12:26 ` [PATCH v2 2/3] arm64: dts: allwinner: a64: Add hwspinlock node Nikolay Borisov
2020-02-11 12:26 ` [PATCH v2 3/3] dt-bindings: hwlock: Document A64 hwspinlock bindings Nikolay Borisov
2020-02-12  2:00   ` Rob Herring
2020-02-12 10:45     ` Nikolay Borisov
2020-02-12 11:54   ` [PATCH v3] " Nikolay Borisov
2020-02-18 23:05     ` Rob Herring

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).