From patchwork Fri Dec 7 16:35:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 153173 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp703555ljp; Fri, 7 Dec 2018 08:35:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vpalpi13UEpROsKX6IlNGcGEL3b0YLokBaU6/8TEgJcANRTEq6EvJsP0PEAQSkUIXqBMez X-Received: by 2002:a17:902:4025:: with SMTP id b34mr2793210pld.181.1544200525607; Fri, 07 Dec 2018 08:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544200525; cv=none; d=google.com; s=arc-20160816; b=fPMMBDfRrO0EHb+i2xlQKNUsB8WbGlWsUQEmIzpynEConlvUCxqpdYHZsd0c3hmob7 Po681bmgRA/KgrsLmkzxg4ftrLOWKAYrTzkY96nOxeAOvo2bO0Sk9F8kchhRekGdA8Kq AttdqQ21GLjG06OjNnpHKcAxWR75qUCHhVD2M/8DibIBioswzfnPaMD0wxFGzqz68ybX uUikeAf98bJ7tvmdWCq6E+ZtgeaBGTd3viNEjUBOTy71U84ki3AVMYpMlQmQ7FoerLR8 ynXpG7Jw2feOI2DM4pHSumKNA/UUAgKZJD9JZYfA128+opBoLFnESH9MkXJOrv9FvK9i BSXQ== 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=GjxMI89DvPAZnhOIEoj6bLz5gHp2ueDx3cr6cnwUctc=; b=L221z54FkaEy07BnBE1+dxqFEU5sMMPYVbOXH/47rZeNffTR7vi4XYE2QEkHAN4M8c SCCxERZkVwmtgPv4B5XacnVxvY2BGM0qn88cntaB7mlWd+EEexhsA5lm7h+40b/D8anh oj29TfmUBN+ym+DTiz0i67ZT4w7eYJx5wZ5oH5tm7uqIDIwt4nChD6SpCuFchxv9wwjc KqPAemstAQH7e+y9gdAU/7CD8kmdh9IDFeALiKxndsieIuUJNYxlZJpDgVnrq62L59wp mU4LK+pJdnoy176OHU18wCh7PfG+5Z/zpN7mySXYxF5zZt6GZeO1XutLRpOR5szCj2Mn EdzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZZG+dnTL; 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 14si2941246pgx.178.2018.12.07.08.35.25; Fri, 07 Dec 2018 08:35:25 -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=ZZG+dnTL; 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 S1726224AbeLGQfY (ORCPT + 31 others); Fri, 7 Dec 2018 11:35:24 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40757 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbeLGQfU (ORCPT ); Fri, 7 Dec 2018 11:35:20 -0500 Received: by mail-wr1-f67.google.com with SMTP id p4so4382161wrt.7 for ; Fri, 07 Dec 2018 08:35:19 -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=GjxMI89DvPAZnhOIEoj6bLz5gHp2ueDx3cr6cnwUctc=; b=ZZG+dnTLN/AgzqGWs+iivvi4u+Fcd6nN+bw6vH4XzZXdMC5os/JmEpF5iTS3EtMoGG T+kqZbc+eU3zb/hmFK1OhuxQ6liiPDcJLqytp1Q/Ob2MyCwKCd9aRDrD8AFTkLCvDAty /wEeq6nzCHmZJ0QothFu/HRZPBqcbHSaY0RL8= 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=GjxMI89DvPAZnhOIEoj6bLz5gHp2ueDx3cr6cnwUctc=; b=kc4d3RcQCWzYTWruMArRw24egmMsJ4vW5UHgzyo3zzqGQl1C09RIeeJ9dxcmH/ETCo 5STLkJYPIwvvO9Kymgzk400OEbK/0CDGra0XTefxVmxmGcts/sdB9JrIio+swwN+ko3i b6QZa4rJNyy7YlTcJQpdgi1C/dBGzrtpE8+eg4a+wdQDhIxXX48K0z/BCtCy/8OjQbeo ydxcAJ70U7SZAid07TJstmOOXSi7PgPmGW+We+efcKmgGeA2LEdE6RFjRDfqQd0x/EQs zl0H8CpilH/qZr8f5kKNXSgBfwiu7lu7P6Fd8dPk8EX3N9/iTvIEGJPDO5SltXw8K6Mx 4R7g== X-Gm-Message-State: AA+aEWZ3c3mELQYMtD1k2Cjih+ToU8wkpJBrv16tgtowFNujylDMnPBO EIxeyqU80ndO2Xy6lP5kDC6iRA== X-Received: by 2002:adf:ea11:: with SMTP id q17mr2307626wrm.328.1544200518646; Fri, 07 Dec 2018 08:35:18 -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 w6sm4268752wme.46.2018.12.07.08.35.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Dec 2018 08:35:18 -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: [PATCH v2 1/6] misc: dt-bindings: Add Qualcomm Fastrpc bindings Date: Fri, 7 Dec 2018 16:35:08 +0000 Message-Id: <20181207163513.16412-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181207163513.16412-1-srinivas.kandagatla@linaro.org> References: <20181207163513.16412-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 --- .../devicetree/bindings/misc/qcom,fastrpc.txt | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/qcom,fastrpc.txt -- 2.19.2 diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt b/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt new file mode 100644 index 000000000000..06e8c25839d5 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/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 available +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>; + }; + ... +};