From patchwork Fri Feb 1 13:09:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 157204 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp408622jaa; Fri, 1 Feb 2019 05:11:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IbqHI3m0dt1ReRhqOSqMdkVKj4FjCeOlx5Q4pfGw3uqk4gojjiZhwEgSy3mva9etwQs0Jsi X-Received: by 2002:a63:85c6:: with SMTP id u189mr2152021pgd.156.1549026670939; Fri, 01 Feb 2019 05:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549026670; cv=none; d=google.com; s=arc-20160816; b=C2JdPxlZmWqt/dPPor9uQe5KykqZ4QAblZhzoZbgNbOiXU3A+xWBnMWROAlKh19fvS EYFwM+ebjA+9buMr1vduNdxZ8htkKyQeKtydYmsnBRakClSlY1g14dEsEE3ep6I03PDC V7xUUFcWwVBYZ5tOh9qJ+ITsNBl8Mof2jcvhZlb/S0NzIs5OCPKlsNJYrt77qdWjzRIB 7YrBIY3qoG4BeAL0KKuwgdouXCR7i4YOVuTRGfFgGiupGfXW/lfVCLl08h6Ua3nqZSp5 sG6SIY7khIwbKoPUG3O+X9fyKghxrFAwOsHLsuObR0Xt4QBGkEaJDwYC+Bk+/B5AZIUn d/ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bIjMZWBApTZOoaJL6tl091AuE0dnp0afLV6yVMOATA4=; b=1I0QEe/gOAT7PXuKsDqQwDcnK5hGg5zREa7KeF+M1EnFzckwE1LUABg4X0OMnbYAph 9WL8LVtzBrR6IlSwKvXAdwoVY3oM/1O4bCfWrhZTdVkoYVkN+MjFyBqSAcJjah9USlxg XMJqllMrKLm13kuhJ334OZ4f1linSdtwSEL6juAZguGKb434jZZ/PA3lRpHMWvWOYx9G ZNmXtsFGIyCZk0DlF+elEwOTDC4YZJiXub7eshG7KBqGTxZc1EycXDo5JiGEMwt4bTXR GxorC9ALpEMu9qBrU/fYHUQ4+aXbOjd+DX9PlpBAbHUgEC8JTTb0QpR9OLWRf7CA03K1 TVbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XiHcgq1a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si7035636pgi.263.2019.02.01.05.11.09; Fri, 01 Feb 2019 05:11:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XiHcgq1a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729449AbfBANLH (ORCPT + 31 others); Fri, 1 Feb 2019 08:11:07 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40778 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbfBANLG (ORCPT ); Fri, 1 Feb 2019 08:11:06 -0500 Received: by mail-wr1-f65.google.com with SMTP id p4so7016363wrt.7 for ; Fri, 01 Feb 2019 05:11:05 -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=bIjMZWBApTZOoaJL6tl091AuE0dnp0afLV6yVMOATA4=; b=XiHcgq1aAFJuWzvkuXssoWFFSvUcQIfrZgJK2K07DZgY1KWgvVd4+CsGUyjeS6aysD 2iavZyZYneQKqLpKtUYY/2jKuR/9TU8fyPpjldyd0Z3zgys6KCvJtJ+axz3BBCzHdjNk tBSTQ45hpSUE5IeZc0Uh/FHKD71nfP+PnQkFs= 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=bIjMZWBApTZOoaJL6tl091AuE0dnp0afLV6yVMOATA4=; b=ZU5kLSCz875PqRWxkEkqiGr5D58+e56YFm/5G6YNHkBEQtZlBnD9EEnwyTc2IFVbKs G76T1yu95Pt1mxY8Y9oCS4xlCIciDRs3xS48aDLrIZz80prwK2/7j3M7jRDtwCNDQB16 eT+0OPnu6WWMfKFoPAOEkRvm/K4vdjukKxm4Vg6ri9qZnlIJwD9EQlJeNUkNn/E3bpQT k42Qv6UEtci5D/IjPYwApbnd8yxkam35Fz2mo5WlB+F3dccZZcqnw54ehRTQ/HeeT53E mSDtjWZs1RHo0CJ6SgQMG8nbi6uJWjNkhhIwqwmEbPg0W8pishHutiw+EUtLab45GvtH fAAg== X-Gm-Message-State: AJcUukeqzLOYVBOXHlcLCRPg7fRbo9jwFGDIMF5qpQniJbdTXSQ86iwM E3omyPH0Rn2+DnAniBtjLrHcxw== X-Received: by 2002:adf:f308:: with SMTP id i8mr36942302wro.219.1549026664301; Fri, 01 Feb 2019 05:11:04 -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 a12sm12563461wro.18.2019.02.01.05.11.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Feb 2019 05:11:03 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org, arnd@arndb.de Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, bkumar@qti.qualcomm.com, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla , Thierry Escande , Rob Herring Subject: [PATCH v5 1/5] misc: dt-bindings: Add Qualcomm Fastrpc bindings Date: Fri, 1 Feb 2019 13:09:21 +0000 Message-Id: <20190201130925.27066-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190201130925.27066-1-srinivas.kandagatla@linaro.org> References: <20190201130925.27066-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.20.1 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>; + }; + ... + }; + }; +};