From patchwork Tue Sep 6 09:24:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 603454 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B435ECAAA1 for ; Tue, 6 Sep 2022 09:24:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230168AbiIFJYb (ORCPT ); Tue, 6 Sep 2022 05:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232007AbiIFJY1 (ORCPT ); Tue, 6 Sep 2022 05:24:27 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4EEECD9 for ; Tue, 6 Sep 2022 02:24:25 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id bq9so1579021wrb.4 for ; Tue, 06 Sep 2022 02:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=/9p6tPkpItrqvs+0dClALJqZr+x69C7J2yQNFYfdHJs=; b=JhcuGE1BVafvxTP0umn2UEIg+TF1/A4zA8GJN5ZzwdZbxrwiSdB1BA+60aHy4amrQu 1xDJHrP3trbEXbX6Z+CtikGX5iMcnJCV7QLpiUAdrrOP4QWmt2NLnxMeZTH3bwQk2r0p i8e8GWZW/GiZscpIs6Y8Cg7M6T3yurDWrL2UGRLIBtLCWyWOwzN1DBlKywi1p1TkWXVk D8JbwsR+ClA4HT/SQEq2ZipuC2vlY+/qrFeUxe2nojsRaUs1NzCin8ZtgPyWo0UWkQ9y 4V5TpfQgkY7QJxlY95i11tjSOg5q0WkFXHzDabRDVedvR7tFb4Z1HFMYc0ZV0tdK8IU3 0fAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=/9p6tPkpItrqvs+0dClALJqZr+x69C7J2yQNFYfdHJs=; b=NGA4Byq4KpedGScn382iwZD+Ny94P+Xj1yv8OBThyXxbnFwqWaX1UE7nfzSqo7LrOg WLf798NCVoUQnj5Dj7oDGrdZ/L49TAsXHSKWuUb+uxraw+A0wrYRAKrLFXF2svanJAku z4GG1NgfFW/djrqmDV0vOm06qy8co5fZ+VQL2qYMOYKVH4gQMI7OoSIryuhaEkTXAT2h jUgMNfg0cEXVHMgt0HRwuHs/ZoZV+DRtsAtPOsoHWKTDK184uc5kJ++25v/njMvaLgrg +9aTdqDTbh1/z5uHgchloYuwV72+2gKhm4tSkcKscC4d71NR3Sm83HitG/IAdjytkhzk n/eA== X-Gm-Message-State: ACgBeo1QqtsBTUzPlU8HLND5IifVrruXWz642MVsKlk7zPiihGICZv2v RJVNGGaOs56WwGrV9vvFl/J+BA== X-Google-Smtp-Source: AA6agR4FlgurWIrvqkXHOW2e1wSqPC0ZKP5EL4obYeB8DASelbVgkn8a2eeXyUca1m8rTLVROXaVxQ== X-Received: by 2002:a5d:648b:0:b0:222:cb51:a57 with SMTP id o11-20020a5d648b000000b00222cb510a57mr26739732wri.287.1662456264206; Tue, 06 Sep 2022 02:24:24 -0700 (PDT) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id x1-20020a5d6b41000000b002250c35826dsm11691236wrw.104.2022.09.06.02.24.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 02:24:23 -0700 (PDT) From: Abel Vesa To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-remoteproc@vger.kernel.org, David Heidelberg Subject: [PATCH v8 1/2] dt-bindings: misc: fastrpc convert bindings to yaml Date: Tue, 6 Sep 2022 12:24:14 +0300 Message-Id: <20220906092415.1989720-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. Co-developed-by: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla Co-developed-by: David Heidelberg Signed-off-by: David Heidelberg Signed-off-by: Abel Vesa --- 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 diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt b/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt deleted file mode 100644 index 5ec124b138a6..000000000000 --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt +++ /dev/null @@ -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: - Definition: must be "qcom,fastrpc" - -- label - Usage: required - Value type: - 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: - Definition: Property to specify that dsp domain is non-secure. - -- qcom,vmids: - Usage: optional - Value type: - Definition: Virtual machine IDs for remote processor. - -- #address-cells - Usage: required - Value type: - Definition: Must be 1 - -- #size-cells - Usage: required - Value type: - 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: - Definition: must be "qcom,fastrpc-compute-cb" - -- reg - Usage: required - Value type: - Definition: Context Bank ID. - -- qcom,nsessions: - Usage: Optional - Value type: - 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>; - }; - ... - }; - }; -}; diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml new file mode 100644 index 000000000000..7f43b37bb2e1 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/misc/qcom,fastrpc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm FastRPC Driver + +maintainers: + - Srinivas Kandagatla + +description: | + 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. + +properties: + compatible: + items: + - const: qcom,fastrpc + + label: + items: + enum: + - adsp + - mdsp + - sdsp + - cdsp + + qcom,glink-channels: + description: + A list of channels tied to this function, used for matching + the function to a set of virtual channels. + $ref: "/schemas/types.yaml#/definitions/string-array" + + qcom,non-secure-domain: + description: + Used to mark the current domain as non-secure. + type: boolean + + qcom,smd-channels: + description: + Channel name used for the RPM communication + $ref: "/schemas/types.yaml#/definitions/string-array" + + qcom,vmids: + description: + A list of DSP Virtual Machine IDs used for SCM memory assignment. + $ref: "/schemas/types.yaml#/definitions/uint32-array" + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + "(compute-)?cb@[0-9]*$": + type: object + + description: > + Each subnode of the Fastrpc represents compute context banks available on the dsp. + + properties: + compatible: + items: + - const: qcom,fastrpc-compute-cb + + reg: + maxItems: 1 + + qcom,nsession: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 1 + description: > + A value indicating how many sessions can share this context bank. + + required: + - compatible + - reg + +required: + - compatible + - label + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + #include + #include + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + label = "lpass"; + qcom,remote-pid = <2>; + + fastrpc { + compatible = "qcom,fastrpc"; + label = "adsp"; + qcom,smd-channels = "fastrpcsmd-apps-dsp"; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + }; + + compute-cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml index fa69f7b21eed..170b0601839a 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml @@ -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 From patchwork Tue Sep 6 09:24:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 603101 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2FE0ECAAA1 for ; Tue, 6 Sep 2022 09:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230248AbiIFJYd (ORCPT ); Tue, 6 Sep 2022 05:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232716AbiIFJY3 (ORCPT ); Tue, 6 Sep 2022 05:24:29 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CF34F6B for ; Tue, 6 Sep 2022 02:24:27 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id h1so6529643wmd.3 for ; Tue, 06 Sep 2022 02:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=zhumN5rKHl+rJS3E436tBIxP4QCYB+3VNNyoim6GayU=; b=yYjZ6G7dxVaQrqwsDtWyTqGwC0GyQSdDxJbH8PcJTSekji3/w9wtxA7AG60TYd6+vm ezB1IoJxlbmW21w+sgqqlMqsL1/3JwjGDobmfldnQVfgGJaqmSL6BW46RauHHufkg3+S MmMKIDlGMh9y8D1jxaxLrqOseURPced+5VZ1JkV8e2tjdjM7HRRK+3D36BjdVwCbjbJv TmZlF3OmxTxTyZlK6iIxb27AJC1V4G/iYJ88K8InacNPKrXXi8bc5ji0AcKnAwfgd+k+ 4MLEjWhL1o8GBnryg64WScL0qSMcqn8LkjlNg8jkdj9RP3C5hWhjoDQAsC3619S5g35q Wseg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=zhumN5rKHl+rJS3E436tBIxP4QCYB+3VNNyoim6GayU=; b=xGTr/TsVR3vfDb0bzviu6vqfd/h/prdj13w02h3elN8uLj5MbBabfECgyFsG00pobf jTuSwM2LNy7WW4EeaVQ0ZwLc5OYkoVZNJKrmvcsSVe+ALIF4KTs+GMcnQNEYoKesZ3cz gHp9pspQRR4iBz6sKTxCIzEqQWi2gWDZMbGXChjgJuBZ6RtME/lWg1Fwg2hz3usv3O6m dBPykAgJGwet5YONUH4JK0iI8A55/dX7YAP1VG/V2Sk9SFHgzRPQo0jBDvsq32s5wppz bCTGlIv/T9017vUi5gCCWhDLwpBGEK0k77fCbhkhHpEIjoWl6KvtKVDMmwMqxOhjgTKp GTJw== X-Gm-Message-State: ACgBeo2YLsRYRRFlMm63DOut+UaH/ie2IR4irTYBumdp3aYQZLY0igm6 qGEdu9ZRpbsCes61hmj++UQXaA== X-Google-Smtp-Source: AA6agR6eCeqyyMBjhzrEThYbzGzQUuqP9IQNZtGs2H09IxSYjfI0WNlD6qFILcKCDFkqtW9p3qae0w== X-Received: by 2002:a7b:cd11:0:b0:3a8:3f6c:9abf with SMTP id f17-20020a7bcd11000000b003a83f6c9abfmr13403700wmj.30.1662456265828; Tue, 06 Sep 2022 02:24:25 -0700 (PDT) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id x1-20020a5d6b41000000b002250c35826dsm11691236wrw.104.2022.09.06.02.24.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 02:24:25 -0700 (PDT) From: Abel Vesa To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-remoteproc@vger.kernel.org Subject: [PATCH v8 2/2] MAINTAINERS: Update fastrpc documentation file from txt to yaml Date: Tue, 6 Sep 2022 12:24:15 +0300 Message-Id: <20220906092415.1989720-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220906092415.1989720-1-abel.vesa@linaro.org> References: <20220906092415.1989720-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The documentation for fastrpc bingings is now YAML. So update the MAINTAINERS file. Signed-off-by: Abel Vesa --- Changes since v7: * no changes MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 96f47a7865d6..ad697195fc59 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16863,7 +16863,7 @@ M: Srinivas Kandagatla M: Amol Maheshwari L: linux-arm-msm@vger.kernel.org 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