From patchwork Mon Sep 5 09:53:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 603461 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 E9446C6FA89 for ; Mon, 5 Sep 2022 09:55:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237280AbiIEJzC (ORCPT ); Mon, 5 Sep 2022 05:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236514AbiIEJzA (ORCPT ); Mon, 5 Sep 2022 05:55:00 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F79413EB2 for ; Mon, 5 Sep 2022 02:54:57 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id t14so3318773wrx.8 for ; Mon, 05 Sep 2022 02:54:57 -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=bZF5w9xzj7lZChgIF/6nwP7MFLkNSnuZx9RimSg71+g=; b=AQFLNfl32NJkoDdTUY88Aj4+OfBskPvgs6DBhZpYwtbZzxtGps5VBHRFE0aqlvWGpC ULBALyuiRMYvHqckLayRvg3YHOY93nUwmgKodEVOYiqHWin5y2MtXMHwJ4W9AQavKkRe S0L7dQTtoKdfeuxQ/KLUGH6gWvoayCSPC95gMfiemr3ngYR6rpNMafyY8udIjUjOw7GL BRWJuE9P2wglcyTiUEpVWMo1xx2PzBADyb1PpGey+Fi4S62wFzOAoarngqQ9I4vVMjyr 8lLrqeU8dLnx9YhKUhfJiyUosJpqL53B93ji1n5X8xZh7GGI2ySPyXb1hPmsPHolAiZv XA+Q== 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=bZF5w9xzj7lZChgIF/6nwP7MFLkNSnuZx9RimSg71+g=; b=yLE1qz+rKbJLp5VG451LpyvpZSlKh4J86MQDJEpyHwmeBHRw2bBCZZuNl/FuDTf8KG ymX2Ob7xnwQW2/KjPKclZG/7VM6/QwgB+U3HT5KfsRcY4CnxDdTksCMm7bg9if53iMgz PH0i6xWKhdtd9U/cTTnLJWww19s0D2cSWYVhUpbzzGlhBb0uiVVz7jCWJzKHtOuGv5JX U8UXV0WnGyOlNRTIm5IkrUzXHEmRgf1Xj3/PfAJWyJ+VN2oBkErfr0n5I11dxKZ6Don1 HWb125xK3TIH5T+aOBDNLFTFBUEqEVhdHYUc/doaB6JUMFMheij1zrTnAc4C5b8L0mwa Dh/w== X-Gm-Message-State: ACgBeo1RYzfoGm5Ry4QB62QcSacE2i4SoW4hHEuttxSQJQNJyHmNhlqO hgJE8VauNMe2zgbYwJy6Nh0WPg== X-Google-Smtp-Source: AA6agR7WFBghrrcaK4xA5ytl2V7YKojFB7RtZCmYECOr5Na51jVyTsGvzpxHXQk2aO0NtOi7BfuQnQ== X-Received: by 2002:a05:6000:178d:b0:226:ffe8:72df with SMTP id e13-20020a056000178d00b00226ffe872dfmr8890594wrg.496.1662371696141; Mon, 05 Sep 2022 02:54:56 -0700 (PDT) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id t8-20020adfe108000000b00225213fd4a9sm8497264wrz.33.2022.09.05.02.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 02:54:55 -0700 (PDT) From: Abel Vesa To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , David Heidelberg Subject: [PATCH v5 1/2] dt-bindings: misc: fastrpc convert bindings to yaml Date: Mon, 5 Sep 2022 12:53:39 +0300 Message-Id: <20220905095340.902390-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@. Also add qcom,non-secure-domain, qcom,glink-channels and qcom,smd-channels missing properties to make sure dtbs_check doesn't fail right off the bat. 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 v4: * set global additionalProperties to false and removed the one for patternProperties * fixed compute-cb property to allow more than 9 nodes. * added missing qcom,glink-channels, qcom,non-secure-domain and qcom,smd-channels, without which the dtbs_check would fail .../bindings/misc/qcom,fastrpc.yaml | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml new file mode 100644 index 000000000000..3c11a3741994 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -0,0 +1,108 @@ +# 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" + + '#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: + - | + smd-edge { + label = "lpass"; + 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>; + }; + }; + }; From patchwork Mon Sep 5 09:53:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 602777 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 928BCECAAD5 for ; Mon, 5 Sep 2022 09:55:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235698AbiIEJzB (ORCPT ); Mon, 5 Sep 2022 05:55:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236998AbiIEJzA (ORCPT ); Mon, 5 Sep 2022 05:55:00 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2729A140B5 for ; Mon, 5 Sep 2022 02:54:59 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id az27so10602902wrb.6 for ; Mon, 05 Sep 2022 02:54:59 -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=VI4B7mmcq6Q3smkTsTKpCOJlZRwUBcOPUAzD1sYZxCE=; b=uUemCtDvHDLKP1I6EGmgT1uPan+SKTXyynQZVdmfBSsNPUcJFalRuDdgOVWVqwyQfK KbG0nX6UV80C2aJK991PEfSjVKG0+dPiN2wPs3/3snBCKTXUvyvCNPxZHh58rmDBkg8u cMHFirOuqPYDSHVHFO2N+YPvl0zWjpQLml0OGAvFzUHK9wg+sYvoEKmQowF53jKyN5H5 tLSAetRs0eY11XNOLFRVn4VT6D30keVVp7um+JTEbbnAly5aIK9d6rDeqFnZSExCVxGI OhYgeekwxA0M0bUvVWRrCEglDMvInS5dXhPiyzUDtIkSRykA/Beve6utQ4DX8T6jj+Zi JjMw== 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=VI4B7mmcq6Q3smkTsTKpCOJlZRwUBcOPUAzD1sYZxCE=; b=GuOhuyH6F6YDrqLutoVdqredw/d8PHwVV0gP/W3ygUtHgKTQLyhooiQTrQhF9zJ7Bz 0ulTQ02RLWl90YghO59AyxyJIjB5HEdl0HqA3yfuT2I69UHQi7hieJF1irV4ZG1MX3SC SClwlrf3K5xZtBBv4CS6zx+LLMLSg7BDC5vrmWWZuuxka568n2qv2YRSS85aCbMwmPcw wbKlTQ+Azrf3HpwsdEBgUzbzB/ETTdHbuzAswaRyXTMs/kG+I7YYRk5X5nAzzWHh/PPl aJ9SdLXHqomLN+g1uk1z12XV6vMKq8KOygMvX5PcopP47dcYjfohxihoJBzam5AhWxo/ U+1Q== X-Gm-Message-State: ACgBeo2RfA9xLA5qBgm4gj1xkazIOOHdxrQNEEOzrDm06Mw1V569aaSJ wA5yMp5bmaz77Bv8z222DEgxCg== X-Google-Smtp-Source: AA6agR6HqTWXO53iwYpqL64/OYpBnZOzYboOmwgNm8q4udBD9wVoGKZqqV7OA1+w+54XTjnUgfd7JA== X-Received: by 2002:a5d:4a4f:0:b0:228:c256:3db6 with SMTP id v15-20020a5d4a4f000000b00228c2563db6mr780537wrs.576.1662371697574; Mon, 05 Sep 2022 02:54:57 -0700 (PDT) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id t8-20020adfe108000000b00225213fd4a9sm8497264wrz.33.2022.09.05.02.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 02:54:56 -0700 (PDT) From: Abel Vesa To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH v5 2/2] MAINTAINERS: Update fastrpc documentation file from txt to yaml Date: Mon, 5 Sep 2022 12:53:40 +0300 Message-Id: <20220905095340.902390-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220905095340.902390-1-abel.vesa@linaro.org> References: <20220905095340.902390-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 --- 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