dt-bindings: misc: fastrpc convert bindings to yaml
Subsystems (4)
PATCH v8 1/2 dt-bindings: misc: fastrpc convert bindings to yaml
Convert Qualcomm FastRPC bindings to yaml format, so that we could validate dt-entries correctly and any future additions can go into yaml format.
Use compute-cb@ subnodes instead of just cb@. Add qcom,glink-channels and qcom,smd-channels missing properties to make sure dtbs_check doesn't fail right off the bat. Correct the name of the parent node in the example from smd-edge to glink-edge.
Also change the file extension referenced in bindings remoteproc/qcom,glink-edge.yaml from txt to yaml.
---
Changes since v7:
* fixed file extension in glink-edge yaml, issue reported by Rob's bot, and changed the commit message to reflect that too.
* removed from commit message the mentioning of qcom,non-secure-domain, as suggested by Krzysztof.
* added the qcom,vmids in the yaml, which was there in the original txt file.
* mentioned in the commit message that the parent node name in the example is changed from smd-edge to glink-edge, since this is a change made compared to the original txt file
.../devicetree/bindings/misc/qcom,fastrpc.txt | 88 ------------- .../bindings/misc/qcom,fastrpc.yaml | 123 ++++++++++++++++++ .../bindings/remoteproc/qcom,glink-edge.yaml | 2 +- 3 files changed, 124 insertions(+), 89 deletions(-) delete mode 100644 Documentation/devicetree/bindings/misc/qcom,fastrpc.txt create mode 100644 Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
Documentation/devicetree/bindings/misc/qcom,fastrpc.txt deleted +0 -88
@@ -1,88 +0,0 @@ -Qualcomm Technologies, Inc. FastRPC Driver - -The FastRPC implements an IPC (Inter-Processor Communication) -mechanism that allows for clients to transparently make remote method -invocations across DSP and APPS boundaries. This enables developers -to offload tasks to the DSP and free up the application processor for -other tasks. - -- compatible: - Usage: required - Value type: <stringlist> - Definition: must be "qcom,fastrpc" - -- label - Usage: required - Value type: <string> - Definition: should specify the dsp domain name this fastrpc - corresponds to. must be one of this: "adsp", "mdsp", "sdsp", "cdsp" - -- qcom,non-secure-domain: - Usage: required - Value type: <boolean> - Definition: Property to specify that dsp domain is non-secure. - -- qcom,vmids: - Usage: optional - Value type: <u32 array> - Definition: Virtual machine IDs for remote processor. - -- #address-cells - Usage: required - Value type: <u32> - Definition: Must be 1 - -- #size-cells - Usage: required - Value type: <u32> - Definition: Must be 0 - -= COMPUTE BANKS -Each subnode of the Fastrpc represents compute context banks available -on the dsp. -- All Compute context banks MUST contain the following properties: - -- compatible: - Usage: required - Value type: <stringlist> - Definition: must be "qcom,fastrpc-compute-cb" - -- reg - Usage: required - Value type: <u32> - Definition: Context Bank ID. - -- qcom,nsessions: - Usage: Optional - Value type: <u32> - Defination: A value indicating how many sessions can share this - context bank. Defaults to 1 when this property - is not specified. - -Example: - -adsp-pil { - compatible = "qcom,msm8996-adsp-pil"; - ... - smd-edge { - label = "lpass"; - fastrpc { - compatible = "qcom,fastrpc"; - qcom,smd-channels = "fastrpcsmd-apps-dsp"; - label = "adsp"; - #address-cells = <1>; - #size-cells = <0>; - - cb@1 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <1>; - }; - - cb@2 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <2>; - }; - ... - }; - }; -};
Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml new file +123 -0
123 lines not on this page · raw message
Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml +1 -1
@@ -25,7 +25,7 @@ properties: fastrpc: type: object description: - See Documentation/devicetree/bindings/misc/qcom,fastrpc.txt + See Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml interrupts: maxItems: 1
Signature · 1 line
2.34.1
PATCH v8 2/2 MAINTAINERS: Update fastrpc documentation file from txt to yaml
The documentation for fastrpc bingings is now YAML. So update the MAINTAINERS file.
---
Changes since v7:
* no changes
MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -16863,7 +16863,7 @@ M: Srinivas Kandagatla <[email protected]> M: Amol Maheshwari <[email protected]> L: [email protected] S: Maintained -F: Documentation/devicetree/bindings/misc/qcom,fastrpc.txt +F: Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml F: drivers/misc/fastrpc.c F: include/uapi/misc/fastrpc.h
Signature · 1 line
2.34.1
Quoted 18 lines · Abel Vesa
Convert Qualcomm FastRPC bindings to yaml format, so that we could validate dt-entries correctly and any future additions can go into yaml format.
Use compute-cb@ subnodes instead of just cb@. Add qcom,glink-channels and qcom,smd-channels missing properties to make sure
dtbs_checkdoesn't fail right off the bat. Correct the name of the parent node in the example from smd-edge to glink-edge.Also change the file extension referenced in bindings
remoteproc/qcom,glink-edge.yamlfrom txt to yaml.Co-developed-by Srinivas Kandagatla <[email protected]>Signed-off-by Srinivas Kandagatla <[email protected]>Co-developed-by David Heidelberg <[email protected]>Signed-off-by David Heidelberg <[email protected]>Signed-off-by Abel Vesa <[email protected]>---
...
Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml properties: · line 28
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml +1
-1@@ -25,7 +25,7 @@ properties: fastrpc: type: object description: - See Documentation/devicetree/bindings/misc/qcom,fastrpc.txt + See Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
On a second thought, this should be a $ref now that is yaml.
Will resend.
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml +0
-0interrupts: maxItems: 1Signature · 1 line
2.34.1