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: 152509 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3502424ljp; Fri, 30 Nov 2018 02:48:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/U460gfujSkx7JnjEFxHZJn7g0rncvHUhHhRAhuPZO5YV1qLxRxKXyk1wYlEmS2IrCihIPK X-Received: by 2002:a63:f241:: with SMTP id d1mr4445270pgk.2.1543574883818; Fri, 30 Nov 2018 02:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543574883; cv=none; d=google.com; s=arc-20160816; b=Q1f5hNVJs301I8wHb9+dFQWzKaZ9i0JubajE4TmCij2pKV1Vj/lx/hWGyMXSDYnf30 E/KcwMzKVZv6VvexUnnkHDJfxHX3mnDf1sfKheHddHQzrMl+jBiGA6Bf9Sg3NgSjN/SC jMcCI/G0/jfongjrHF8E6oCLzi7o0NirRmzimPNNJdz/FF0UWm5cvHD8t+pjPYXK5sHZ rWwhNA2f8jvWbQzCRaZgei1RAQUK+XHNdgJqXI8g9cjuTY+HiotmIhM4njkodT4kKAUY X+oDBGVzuf1wfFjbxsleL+A8/kDh9qAYzWOCUzovjDv5T3KkVwrtYBq4ZaQjjHH5QRRQ Fq/w== 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=n8/Z9dGXIQOxPTs9TSRgVL7E99JpcJSyKVbjnodmw1M=; b=bPdPOZGePC8+pAYUtaiA+XvKdklQB43TbuZrJdCpjyHa5Q3+UYoDp5YbPQnfm33F3G rsPUHkOjuTPPY2hg4Y/1I8i+WEtLlhVMlaaawgASVYJUDEUDmd2jwZMKenmhRCtL27Ro KS254GI5nOmbnc7qJWvIwraKWrTksLonoVVc089OBOBewU0+BIC83uZxy4Hni2q0ZW0t BGNnfjFtaJp1Hv4N8bzDuNG1GGcHeJQQXzKZJfDG3jEohu25nSXpkoNvY2bVgFttYp9E UO0NdcH+Vn/sPwLeg65pgxI7imhL0DkssZZZT+Ii9ALWIXtx0Q81cIAmq9kf4aq4XQBe IxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e+NzoRbt; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 n1si5177831pfh.96.2018.11.30.02.48.02; Fri, 30 Nov 2018 02:48:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=e+NzoRbt; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726857AbeK3V4x (ORCPT + 15 others); 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-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 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 -- 2.19.2 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>; + }; + ... +};