From patchwork Thu Jan 24 15:24:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10779343 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 7F9AB91E for ; Thu, 24 Jan 2019 15:25:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EE043097B for ; Thu, 24 Jan 2019 15:25:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6323130B5F; Thu, 24 Jan 2019 15:25:53 +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 F3D833097B for ; Thu, 24 Jan 2019 15:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728652AbfAXPZv (ORCPT ); Thu, 24 Jan 2019 10:25:51 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35817 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728468AbfAXPZu (ORCPT ); Thu, 24 Jan 2019 10:25:50 -0500 Received: by mail-wr1-f67.google.com with SMTP id 96so6935769wrb.2 for ; Thu, 24 Jan 2019 07:25:49 -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=zctOFcXs6+EqsNvLDCpHPO7stwx5YTajBT2XWhNMNok=; b=W3Ir0IQgtO2Ghitoqi6wH/pihXTN7mFPyj9cXssgScb2EyhvgVSSElNFUEGA9vUGBd T/JhB2JKUNZFxAjaz6ExCBwIludxrX0eIDGEwC/BCBerFhzEqJVvHyOJkL3YXDvdXok5 h1rnsR8fIPzJVdeKDP9PubPVa9ShJOlEHcB0c= 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=zctOFcXs6+EqsNvLDCpHPO7stwx5YTajBT2XWhNMNok=; b=gDxbSY7Hu3F5aJ5c00EDCLomXqA6qMSaVVLkAkoK5iP4PfouS813/mkJ9B+6FK1CXH NzSH1FaVNgpZB6t6/ATIMW0eX/VYEw2x0E7S2b153pMvgvoCPo+RISBg2DNr9VJiMroS EkVmZ3UCjRaJGT/mKFf5BsA21hmJj37FVlCbVvRzqvmRcyMuMyV7O+/1/AJsIpQJgXb7 LdAPUDObY/j7ZB0qwa+UCQ6+wIr/4BgX9m5bsS2OM37wZ1adhgm/9dI0K/J7sm09zi8u tUQSdxYpcxNWhzyOxftvlePw/usJtrpDSJTaAPcHt4ubUKlPQS1WsGcevBs5Kn9f4IH6 3Beg== X-Gm-Message-State: AJcUukcGdfvKLMqSbMMCnOrOUO5wbb78fD8wiJPs9Z1fM2PGozO/Ww8h /DWaHEx0a0VH3ntjHrhafjs6bw== X-Google-Smtp-Source: ALg8bN5YhVPgUcgrIUpTUepLK4e0aFtEowaE99KzCfrYbnRJ7jYmQ4NfVmOZZhI7NnTuyoRfZTFFOw== X-Received: by 2002:adf:f390:: with SMTP id m16mr7377267wro.71.1548343548315; Thu, 24 Jan 2019 07:25:48 -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 z12sm80371157wrh.35.2019.01.24.07.25.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Jan 2019 07:25:47 -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, bkumar@qti.qualcomm.com, linux-arm-msm@vger.kernel.org, thierry.escande@linaro.org, Srinivas Kandagatla Subject: [PATCH v4 1/5] misc: dt-bindings: Add Qualcomm Fastrpc bindings Date: Thu, 24 Jan 2019 15:24:08 +0000 Message-Id: <20190124152412.10503-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190124152412.10503-1-srinivas.kandagatla@linaro.org> References: <20190124152412.10503-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. Co-developed-by: Thierry Escande Signed-off-by: Thierry Escande Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../devicetree/bindings/misc/qcom,fastrpc.txt | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/qcom,fastrpc.txt diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt b/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt new file mode 100644 index 000000000000..2a1827ab50d2 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt @@ -0,0 +1,78 @@ +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" + +- #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>; + }; + ... + }; + }; +};