Skip to contentSkip to conversation

dt-bindings: hwlock: omap: Convert binding to YAML

PATCH Applied Suman Anna 3 participants 3 messages Aug 28, 2020 – Oct 26, 2020

Subsystems (2)
lore
Share & tools
lore

Suman Anna

author
#0 lore raw

PATCH 1/1 dt-bindings: hwlock: omap: Convert binding to YAML

Convert the current OMAP hwspinlock binding from text format to YAML format/DT schema, and delete the legacy text binding file.

The new YAML binding conversion is a slightly updated version compared to the original. The legacy "ti,hwmods" property is now obsolete and is dropped altogether, and the K3 example is updated to showcase the actual dts node usage.

---
Hi Tony,

Only warning with dtbs_check is on dm816x. What's the plan for converting that platform to ti,sysc?

regards
Suman

 .../bindings/hwlock/omap-hwspinlock.txt       | 41 ----------
 .../bindings/hwlock/ti,omap-hwspinlock.yaml   | 76 +++++++++++++++++++
 2 files changed, 76 insertions(+), 41 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwlock/omap-hwspinlock.txt
 create mode 100644 Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml
Documentation/devicetree/bindings/hwlock/omap-hwspinlock.txt deleted +0 -41
deleted file mode 100644
index 8d365f89694c..000000000000
@@ -1,41 +0,0 @@
-TI HwSpinlock for OMAP and K3 based SoCs
-=========================================
-
-Required properties:
-- compatible:		Should be one of the following,
-			  "ti,omap4-hwspinlock" for
-				OMAP44xx, OMAP54xx, AM33xx, AM43xx, DRA7xx SoCs
-			  "ti,am654-hwspinlock" for
-				K3 AM65x and J721E SoCs
-- reg:			Contains the hwspinlock module register address space
-			(base address and length)
-- ti,hwmods:		Name of the hwmod associated with the hwspinlock device
-			(for OMAP architecture based SoCs only)
-- #hwlock-cells:	Should be 1. The OMAP hwspinlock users will use a
-			0-indexed relative hwlock number as the argument
-			specifier value for requesting a specific hwspinlock
-			within a hwspinlock bank.
-
-Please look at the generic hwlock binding for usage information for consumers,
-"Documentation/devicetree/bindings/hwlock/hwlock.txt"
-
-Example:
-
-1. OMAP4 SoCs
-hwspinlock: spinlock@4a0f6000 {
-	compatible = "ti,omap4-hwspinlock";
-	reg = <0x4a0f6000 0x1000>;
-	ti,hwmods = "spinlock";
-	#hwlock-cells = <1>;
-};
-
-2. AM65x SoCs and J721E SoCs
-&cbass_main {
-	cbass_main_navss: interconnect0 {
-		hwspinlock: spinlock@30e00000 {
-			compatible = "ti,am654-hwspinlock";
-			reg = <0x00 0x30e00000 0x00 0x1000>;
-			#hwlock-cells = <1>;
-		};
-	};
-};
Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml new file +76 -0

76 lines not on this page · raw message

Signature · 1 line
2.28.0
maintainer Applied
#1 lore raw
Quoted 15 lines · Suman Anna

Convert the current OMAP hwspinlock binding from text format to YAML format/DT schema, and delete the legacy text binding file.

The new YAML binding conversion is a slightly updated version compared to the original. The legacy "ti,hwmods" property is now obsolete and is dropped altogether, and the K3 example is updated to showcase the actual dts node usage.

---
Hi Tony,

Only warning with dtbs_check is on dm816x. What's the plan for converting that platform to ti,sysc?

Quoted 9 lines

regards
Suman

 .../bindings/hwlock/omap-hwspinlock.txt       | 41 ----------
 .../bindings/hwlock/ti,omap-hwspinlock.yaml   | 76 +++++++++++++++++++
 2 files changed, 76 insertions(+), 41 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwlock/omap-hwspinlock.txt
 create mode 100644 Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml

Applied, thanks!

#2 lore raw
In reply to Suman Anna
This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Hello:

This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Quoted 9 lines · On Thu, 27 Aug 2020 23:14:47 -0500 you wrote:

Convert the current OMAP hwspinlock binding from text format to YAML format/DT schema, and delete the legacy text binding file.

The new YAML binding conversion is a slightly updated version compared to the original. The legacy "ti,hwmods" property is now obsolete and is dropped altogether, and the K3 example is updated to showcase the actual dts node usage.

[...]

Here is the summary with links:
- dt-bindings: hwlock: omap: Convert binding to YAML

    https://git.kernel.org/andersson/remoteproc/c/d8db9dc34871

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html