From patchwork Fri Nov 30 10:46:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10706113 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CBF2F17D5 for ; Fri, 30 Nov 2018 10:48:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B82642F90E for ; Fri, 30 Nov 2018 10:48:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A93C22FE15; Fri, 30 Nov 2018 10:48:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 452F22F90E for ; Fri, 30 Nov 2018 10:48:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726857AbeK3V4x (ORCPT ); Fri, 30 Nov 2018 16:56:53 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39898 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbeK3V4w (ORCPT ); Fri, 30 Nov 2018 16:56:52 -0500 Received: by mail-wr1-f67.google.com with SMTP id t27so4816170wra.6 for ; Fri, 30 Nov 2018 02:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n8/Z9dGXIQOxPTs9TSRgVL7E99JpcJSyKVbjnodmw1M=; b=e+NzoRbtaS9ATfMaMiqTvO2BYg2lZwgDkM8ahZdR5jCBr+WiLRHQXpm7V5nXq+7RRJ 4bxPXYRwrh0B1nyYdS6XdTxYpigh+ZGhs48jLeVKZZnQE37nni692kwZMOxKoPq9h3jJ w3ghOd4dPKXeWjzYsXmfmcEPT6TcR1YgKqt4k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n8/Z9dGXIQOxPTs9TSRgVL7E99JpcJSyKVbjnodmw1M=; b=YET/wDwQccdjIGLoAYbd92+s635j92LGt7vVXIA//AYD+1NY/Almj5C/vmXMhGqMyk SOzmIXhlXdNxGjizZRgqExI4D1Otm+TPK3OZrcsC4Ey/bxZtiqVQz3fUe4TgzAemPa/e NZeI1BNRLjmwNcIH8y7NTKkcXJAmUt4BKkE2/Smo65dV5T9Lf/kmFzKFiV7on7+slxE1 U0fbdkALNlR/xvD5XgqkRsQxzgJorKJ7fr4bUmccygW7R7X6ydq5KknOah5c9q4dkAOr jZkeub40yZfrQWxECLBoNa6lAgMdSUpVTnb48hLWC3Jm7VgGvR+rlK/wKkBMPQgKIJI3 VATw== X-Gm-Message-State: AA+aEWY+frO0qErSDSyopuNdW8hyduwc9j6NMJDRFYjCmE0Tm5ShIChC TveYbXkzUShu38nQuu4HSn9GVQ== X-Google-Smtp-Source: AFSGD/W+aTaNfiHRTqJ1JLfnK+ndlc1EhNkImGI5YXms6cl5kO1wsrvrqUtVOB4ahBFBYwWLl0vCoQ== X-Received: by 2002:a5d:628a:: with SMTP id k10mr4340764wru.254.1543574878755; Fri, 30 Nov 2018 02:47:58 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id 18sm6964211wmm.32.2018.11.30.02.47.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Nov 2018 02:47:58 -0800 (PST) From: Srinivas Kandagatla To: robh+dt@kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, bkumar@qti.qualcomm.com, thierry.escande@linaro.org, Srinivas Kandagatla Subject: [RFC PATCH 1/6] char: dt-bindings: Add Qualcomm Fastrpc bindings Date: Fri, 30 Nov 2018 10:46:52 +0000 Message-Id: <20181130104657.14875-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181130104657.14875-1-srinivas.kandagatla@linaro.org> References: <20181130104657.14875-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The FastRPC driver 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. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/char/qcom,fastrpc.txt | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/char/qcom,fastrpc.txt diff --git a/Documentation/devicetree/bindings/char/qcom,fastrpc.txt b/Documentation/devicetree/bindings/char/qcom,fastrpc.txt new file mode 100644 index 000000000000..d5ff548960f3 --- /dev/null +++ b/Documentation/devicetree/bindings/char/qcom,fastrpc.txt @@ -0,0 +1,73 @@ +Qualcomm Technologies, Inc. FastRPC Driver + +The FastRPC driver 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" + +- reg + Usage: required + Value type: + Definition: DSP Processor ID. + Possible values are : + 0 - ADSP + 1 - MDSP + 2 - SDSP + 3 - CDSP + += COMPUTE BANKS +Each subnode of the Fastrpc node represents compute context banks avaiable +on the dsp. The name of the nodes are not important. The properties of these +nodes are defined by the individual bindings for the specific service +- All Compute context banks MUST contain the following property: + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,fastrpc-compute-cb" + +- reg + Usage: required + Value type: + Definition: Context Bank ID. + +- secured: + Usage: Optional + Value type: + Defination: Indicating context bank is secured + +- nsessions: + Usage: Optional + Value type: + Defination: A value indicating how many sessions can share this + context bank. Defaults to 'One' when this property + is not specified. + +Example: + +fastrpc { + compatible = "qcom,fastrpc"; + qcom,smd-channels = "fastrpcsmd-apps-dsp"; + reg = <0>; /* DOMAIN_ADSP */ + #address-cells = <1>; + #size-cells = <0>; + + cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + iommus = <&lpass_q6_smmu 1>; + }; + + cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + iommus = <&lpass_q6_smmu 2>; + }; + ... +};