linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add HwSpinlock support for TI K3 AM64x SoCs
@ 2021-02-09 17:22 Suman Anna
  2021-02-09 17:22 ` [PATCH v2 1/2] dt-bindings: hwlock: Update OMAP HwSpinlock binding for " Suman Anna
  2021-02-09 17:22 ` [PATCH v2 2/2] hwspinlock: omap: Add support for K3 " Suman Anna
  0 siblings, 2 replies; 3+ messages in thread
From: Suman Anna @ 2021-02-09 17:22 UTC (permalink / raw)
  To: Bjorn Andersson, Rob Herring
  Cc: devicetree, linux-remoteproc, linux-arm-kernel, linux-omap, Suman Anna

Hi Bjorn,

The following is a minor revision of the series [1] that extends the OMAP
HwSpinlock driver for the IP on TI K3 AM64x SoCs. 

Only change is in patch 1 to drop the example in the dt-bindings patch.

regards
Suman

[1] https://patchwork.kernel.org/project/linux-arm-kernel/cover/20210125235653.24385-1-s-anna@ti.com/

Suman Anna (2):
  dt-bindings: hwlock: Update OMAP HwSpinlock binding for AM64x SoCs
  hwspinlock: omap: Add support for K3 AM64x SoCs

 .../devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml        | 1 +
 drivers/hwspinlock/omap_hwspinlock.c                          | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.29.2


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

* [PATCH v2 1/2] dt-bindings: hwlock: Update OMAP HwSpinlock binding for AM64x SoCs
  2021-02-09 17:22 [PATCH v2 0/2] Add HwSpinlock support for TI K3 AM64x SoCs Suman Anna
@ 2021-02-09 17:22 ` Suman Anna
  2021-02-09 17:22 ` [PATCH v2 2/2] hwspinlock: omap: Add support for K3 " Suman Anna
  1 sibling, 0 replies; 3+ messages in thread
From: Suman Anna @ 2021-02-09 17:22 UTC (permalink / raw)
  To: Bjorn Andersson, Rob Herring
  Cc: devicetree, linux-remoteproc, linux-arm-kernel, linux-omap, Suman Anna

Update the existing OMAP HwSpinlock binding to include the info for
AM64x SoCs. There are some minor IP integration differences between
the AM64x SoCs and the previous AM65x and J721E SoC families.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
v2:
 - Drop AM64x example as per Rob's comments
 - Update patch description accordingly
v1: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210125235653.24385-2-s-anna@ti.com/

 Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml
index ac35491a6f65..3c69dc78e6ee 100644
--- a/Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml
+++ b/Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml
@@ -14,6 +14,7 @@ properties:
     enum:
       - ti,omap4-hwspinlock  # for OMAP44xx, OMAP54xx, AM33xx, AM43xx, DRA7xx SoCs
       - ti,am654-hwspinlock  # for K3 AM65x, J721E and J7200 SoCs
+      - ti,am64-hwspinlock   # for K3 AM64x SoCs
 
   reg:
     maxItems: 1
-- 
2.29.2


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

* [PATCH v2 2/2] hwspinlock: omap: Add support for K3 AM64x SoCs
  2021-02-09 17:22 [PATCH v2 0/2] Add HwSpinlock support for TI K3 AM64x SoCs Suman Anna
  2021-02-09 17:22 ` [PATCH v2 1/2] dt-bindings: hwlock: Update OMAP HwSpinlock binding for " Suman Anna
@ 2021-02-09 17:22 ` Suman Anna
  1 sibling, 0 replies; 3+ messages in thread
From: Suman Anna @ 2021-02-09 17:22 UTC (permalink / raw)
  To: Bjorn Andersson, Rob Herring
  Cc: devicetree, linux-remoteproc, linux-arm-kernel, linux-omap, Suman Anna

The AM64x SoC contains a HwSpinlock IP instance in the MAIN domain,
and is a minor variant of the IP on the current TI K3 SoCs such as
AM64x, J721E or J7200 SoCs. The IP is not built with the K3 safety
feature in hardware, and has slightly different integration into
the overall SoC.

Add the support for this IP through a new compatible.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
v2: No changes

 drivers/hwspinlock/omap_hwspinlock.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/hwspinlock/omap_hwspinlock.c b/drivers/hwspinlock/omap_hwspinlock.c
index 3b05560456ea..65dbf1ae3aa7 100644
--- a/drivers/hwspinlock/omap_hwspinlock.c
+++ b/drivers/hwspinlock/omap_hwspinlock.c
@@ -2,11 +2,12 @@
 /*
  * OMAP hardware spinlock driver
  *
- * Copyright (C) 2010-2015 Texas Instruments Incorporated - http://www.ti.com
+ * Copyright (C) 2010-2021 Texas Instruments Incorporated - https://www.ti.com
  *
  * Contact: Simon Que <sque@ti.com>
  *          Hari Kanigeri <h-kanigeri2@ti.com>
  *          Ohad Ben-Cohen <ohad@wizery.com>
+ *          Suman Anna <s-anna@ti.com>
  */
 
 #include <linux/kernel.h>
@@ -165,6 +166,7 @@ static int omap_hwspinlock_remove(struct platform_device *pdev)
 static const struct of_device_id omap_hwspinlock_of_match[] = {
 	{ .compatible = "ti,omap4-hwspinlock", },
 	{ .compatible = "ti,am654-hwspinlock", },
+	{ .compatible = "ti,am64-hwspinlock", },
 	{ /* end */ },
 };
 MODULE_DEVICE_TABLE(of, omap_hwspinlock_of_match);
-- 
2.29.2


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

end of thread, other threads:[~2021-02-09 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 17:22 [PATCH v2 0/2] Add HwSpinlock support for TI K3 AM64x SoCs Suman Anna
2021-02-09 17:22 ` [PATCH v2 1/2] dt-bindings: hwlock: Update OMAP HwSpinlock binding for " Suman Anna
2021-02-09 17:22 ` [PATCH v2 2/2] hwspinlock: omap: Add support for K3 " Suman Anna

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