Skip to contentSkip to conversation

dt-bindings: mailbox: ti,message-manager: Convert to json schema

PATCH Superseded Nishanth Menon 2 participants 2 messages Apr 15, 2021

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: mailbox: ti,message-manager: Convert to json schema

Convert the ti,message-manager to yaml for better checks and documentation. Differences being mostly in the examples:
- I've dropped the example usage of mailbox client, it is better done in tisci node definition
- included header in example for buildable example

NOTE: The following checkpatch warning is generated since we do include the header in the example, but this is a false positive warning.
WARNING: DT binding docs and includes should be a separate patch. See:
Documentation/devicetree/bindings/submitting-patches.rst

---
Changes since v1:
- Fixed title in yaml (not driver)
- Commit message update to fix up a copy paste error (not secure-proxy).
- Subject line rewording to indicate json schema rather than yaml - more inline with patches elsewhere.

V1: https://lore.kernel.org/linux-arm-kernel/[email protected]/

 .../bindings/mailbox/ti,message-manager.txt   | 50 -------------
 .../bindings/mailbox/ti,message-manager.yaml  | 75 +++++++++++++++++++
 2 files changed, 75 insertions(+), 50 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mailbox/ti,message-manager.txt
 create mode 100644 Documentation/devicetree/bindings/mailbox/ti,message-manager.yaml
Documentation/devicetree/bindings/mailbox/ti,message-manager.txt deleted +0 -50
deleted file mode 100644
index ebf0e3710cee..000000000000
@@ -1,50 +0,0 @@
-Texas Instruments' Message Manager Driver
-========================================
-
-The Texas Instruments' Message Manager is a mailbox controller that has
-configurable queues selectable at SoC(System on Chip) integration. The Message
-manager is broken up into queues in different address regions that are called
-"proxies" - each instance is unidirectional and is instantiated at SoC
-integration level to indicate receive or transmit path.
-
-Message Manager Device Node:
-===========================
-Required properties:
---------------------
-- compatible:		Shall be: "ti,k2g-message-manager"
-- reg-names 		queue_proxy_region - Map the queue proxy region.
-			queue_state_debug_region - Map the queue state debug
-			region.
-- reg:			Contains the register map per reg-names.
-- #mbox-cells		Shall be 2. Contains the queue ID and proxy ID in that
-		        order referring to the transfer path.
-- interrupt-names:	Contains interrupt names matching the rx transfer path
-			for a given SoC. Receive interrupts shall be of the
-			format: "rx_<QID>".
-			For ti,k2g-message-manager, this shall contain:
-				"rx_005", "rx_057"
-- interrupts:		Contains the interrupt information corresponding to
-			interrupt-names property.
-
-Example(K2G):
-------------
-
-	msgmgr: msgmgr@2a00000 {
-		compatible = "ti,k2g-message-manager";
-		#mbox-cells = <2>;
-		reg-names = "queue_proxy_region", "queue_state_debug_region";
-		reg = <0x02a00000 0x400000>, <0x028c3400 0x400>;
-		interrupt-names = "rx_005", "rx_057";
-		interrupts = <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH>,
-			     <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
-	};
-
-	pmmc: pmmc {
-		[...]
-		mbox-names = "rx", "tx";
-		# RX queue ID is 5, proxy ID is 2
-		# TX queue ID is 0, proxy ID is 0
-		mboxes= <&msgmgr 5 2>,
-			<&msgmgr 0 0>;
-		[...]
-	};
Documentation/devicetree/bindings/mailbox/ti,message-manager.yaml new file +75 -0

75 lines not on this page · raw message

Signature · 1 line
2.31.0
maintainer Reviewed-by on v2 1/1
#1 lore raw

Re: [PATCH V2] dt-bindings: mailbox: ti, message-manager: Convert to json schema

Quoted 19 lines · Nishanth Menon

Convert the ti,message-manager to yaml for better checks and documentation. Differences being mostly in the examples:
- I've dropped the example usage of mailbox client, it is better done in tisci node definition
- included header in example for buildable example

NOTE: The following checkpatch warning is generated since we do include the header in the example, but this is a false positive warning.
WARNING: DT binding docs and includes should be a separate patch. See:
Documentation/devicetree/bindings/submitting-patches.rst

---
Changes since v1:
- Fixed title in yaml (not driver)
- Commit message update to fix up a copy paste error (not secure-proxy).
- Subject line rewording to indicate json schema rather than yaml - more inline with patches elsewhere.

Quoted 7 lines

V1: https://lore.kernel.org/linux-arm-kernel/[email protected]/

 .../bindings/mailbox/ti,message-manager.txt   | 50 -------------
 .../bindings/mailbox/ti,message-manager.yaml  | 75 +++++++++++++++++++
 2 files changed, 75 insertions(+), 50 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mailbox/ti,message-manager.txt
 create mode 100644 Documentation/devicetree/bindings/mailbox/ti,message-manager.yaml