Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3585648imu; Fri, 30 Nov 2018 02:50:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vm+bsfZPj4RRNSLHxEk8UB4oQ6Z01zhqbi3zSrKoWLRHLQ0GqLVv8nbc75rUSJo6pH6GMm X-Received: by 2002:a17:902:1126:: with SMTP id d35mr4879933pla.1.1543575021074; Fri, 30 Nov 2018 02:50:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543575021; cv=none; d=google.com; s=arc-20160816; b=MNCeP6Qop3UMonKeTZCHx+tc4HKVgjEbPlnhrv8dQuN6OQpdknEBpdMoPpNyI06rQm TrqrZEgqsvEM5mEQY2FYHdjhblYLm1VrqYhxgXEaVwEGHl9I6+sPto9gtNaDur1h54VA j6J6b3T3XVMeRfplcGOJvPbTDe44rnWrfN1gI5gxEOsYZPdAwWpctMXnI+LYM6/3YjMz 2uRWLFeUsAF5RA+NtkGpxR6e+6CVKNjaYW4n5soo/bmAHY1mZwKrIBacWpRRETbGHwJB /0nmsSbiEXkDk5UxBS0L50nMwiFHUp2Kvw5irJL7UBBDoozgA8JJ2WuojUj7/MmtR3JY fP0g== 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=Ei9wodMMKEUf8uREZQ99tcWHbe5/ovjeMYcaudDsfBo1kYiCbCrvwHrsPS4vUMRM5d blGawaIUfL+0eHGOblTCn+LVJYjNoxINpVfojmoxVSwB0bTUDqap4uSvZZr6Rc9HlnJR +9j1T3Sv80dp4LG4PFnL/O3e2kICaH7mjxEoM67iIZ/qE9UJ2neKTVuxXJXYH2ad+kbC v8GfXztKRNSXLskQBN0HVtcl33c+0CwZPa9qk2sd3/jlIbg9sKM777WcnUzBUnWmLfFR cw5pxBjFl5To+wQZ7U5QDlmO+o4NpcD7km7afos5OGWybWdwu2XdZ73oSn7A8uDtyYRe cJMg== 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-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 p187-v6si5189408pfb.127.2018.11.30.02.50.06; Fri, 30 Nov 2018 02:50:21 -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=e+NzoRbt; 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 S1726944AbeK3V4y (ORCPT + 99 others); Fri, 30 Nov 2018 16:56:54 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37121 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbeK3V4w (ORCPT ); Fri, 30 Nov 2018 16:56:52 -0500 Received: by mail-wr1-f66.google.com with SMTP id j10so4816141wru.4 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=DERddJ66mFewWBsFZc/y+jBwok7Dv9DzBzUPdfMf9qT+GoS+4FVN2jIGQhm96iKPvg 96+iWVEERzMQgo8SNONNLPC0qCyHnqxPSOzqO3wX0qXg7Hwq0o6mDq2IfFzR7d5kEnuP qcvdkSXpUgOfDfSf/DXLFSwIdI3uIPNA3q3QZKmet6AP8bl74CIdI5ldl7GemQeldtA+ gtueh4B230QbOdAxqM7R5yNGtxxJH63buK8nhjiVWhT+5LkHZXwTZa8Apwfp+c9kA8h+ BQdXs52z+3sPrbhLr3IJ6x1f/NH7TatFbr09kfuQis/vQS+Gjop+4NJpkChBS50UKHTm Ul/g== X-Gm-Message-State: AA+aEWbwsx3XtJFagS/iFRNfJv9f0yjuHjJM35XiBPO0EVuc6aFkKm4+ hIL+wYm5ieA/oMYvO3MHLrRVaA== 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 Content-Transfer-Encoding: 8bit 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. 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>; + }; + ... +}; -- 2.19.2