From patchwork Thu Oct 20 02:40:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 78378 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp560361qge; Wed, 19 Oct 2016 19:40:33 -0700 (PDT) X-Received: by 10.98.36.91 with SMTP id r88mr17061743pfj.10.1476931233809; Wed, 19 Oct 2016 19:40:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si39519762pgh.99.2016.10.19.19.40.33; Wed, 19 Oct 2016 19:40:33 -0700 (PDT) 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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757532AbcJTCkX (ORCPT + 10 others); Wed, 19 Oct 2016 22:40:23 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:36043 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757521AbcJTCkW (ORCPT ); Wed, 19 Oct 2016 22:40:22 -0400 Received: by mail-pf0-f170.google.com with SMTP id e6so26526556pfk.3 for ; Wed, 19 Oct 2016 19:40:22 -0700 (PDT) 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; bh=ZXlMV1OX4OchcYlq/mkMLi4jcy9ExTrJdxdaWZRNlGk=; b=cFL+O/yCIeZTCb5HIyKWgYefHaeP5Qny+NC1rCu2ePdoZP4PUKbYKRvG48WEdFWLnA /PxCcxowdQLKrCcB79KMSqyurW39GdKZnAD6yGOK/MUXvzz2UCkhwZ50PFBg+B5EQMSh VDQlHMUpJVxJkUgCsTSkJ01JfXx+1F0dOnY5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZXlMV1OX4OchcYlq/mkMLi4jcy9ExTrJdxdaWZRNlGk=; b=NsTMMOpCuSJnAsftW4gJ3QUfvXor23SegDfqNKlHkAQ/6Sm5iE61shZDjgX70vuWRJ 5zbkWG4yMAHzNugnkSWybvKX3po7X1v3g5+46tGY1H99J7+aIMqb7UH+G7nATLLJUWXX 9vs0/kb24SHMlg2iCgQbqGMpwIR8UEiNSmzMys+Fwq+Q6cpnSAgxfWzKSOVkvfe39ucD r2eWmcAqXmOtASp9aL4SW+d4Juge43l7UrBdJJXRG3ec2cJgZIF+b1YPSSiDaDgaZj2W wgoiFQ3P6/vy49mvKA0OhxhxXEHU8h0GeERanz4Fqh87ZXJrbkcT9bzi7fVruLLQYpCD k0LA== X-Gm-Message-State: AA6/9RlJZN+ATCA45aPb4tw4xI/elk1yQUGGYN1Zo7+SRGUcunVmFToywGwD+jxzxdMlAe4Y X-Received: by 10.98.32.82 with SMTP id g79mr16867429pfg.142.1476931221774; Wed, 19 Oct 2016 19:40:21 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id s85sm66780616pfi.17.2016.10.19.19.40.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 19:40:20 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson , Rob Herring , Mark Rutland Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Sarangdhar Joshi , linux-arm-msm@vger.kernel.org Subject: [PATCH 04/11] dt-binding: remoteproc: wcnss: Allow describing smd edge Date: Wed, 19 Oct 2016 19:40:05 -0700 Message-Id: <1476931212-1806-5-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1476931212-1806-1-git-send-email-bjorn.andersson@linaro.org> References: <1476931212-1806-1-git-send-email-bjorn.andersson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Allow the associated smd edge to be described within the wcnss remoteproc node. This creates a bond between the remoteproc and the associated smd channels and devices, showing the interaction between the two parts and provides both a natural reference to the other. Signed-off-by: Bjorn Andersson --- .../bindings/remoteproc/qcom,wcnss-pil.txt | 30 ++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt index 0d2361ebe3d7..d420f84ddfb0 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt @@ -60,8 +60,8 @@ on the Qualcomm WCNSS core. see ../reserved-memory/reserved-memory.txt = SUBNODES -A single subnode of the WCNSS PIL describes the attached rf module and its -resource dependencies. +A required subnode of the WCNSS PIL is used to describe the attached rf module +and its resource dependencies. It is described by the following properties: - compatible: Usage: required @@ -90,6 +90,11 @@ resource dependencies. Definition: reference to the regulators to be held on behalf of the booting of the WCNSS core + +The wcnss node can also have an subnode named "smd-edge" that describes the SMD +edge, channels and devices related to the WCNSS. +See ../soc/qcom/qcom,smd.txt for details on how to describe the SMD edge. + = EXAMPLE The following example describes the resources needed to boot control the WCNSS, with attached WCN3680, as it is commonly found on MSM8974 boards. @@ -129,4 +134,25 @@ pronto@fb204000 { vddpa-supply = <&pm8941_l19>; vdddig-supply = <&pm8941_s3>; }; + + smd-edge { + interrupts = <0 142 1>; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&pronto>; + + bt { + compatible = "qcom,wcnss-bt"; + }; + }; + }; };