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: 9385793 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 55B0C60487 for ; Thu, 20 Oct 2016 02:42:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 472DF2993D for ; Thu, 20 Oct 2016 02:42:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BF562998F; Thu, 20 Oct 2016 02:42:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBD412993D for ; Thu, 20 Oct 2016 02:42:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757239AbcJTCl6 (ORCPT ); Wed, 19 Oct 2016 22:41:58 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:35100 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757522AbcJTCkW (ORCPT ); Wed, 19 Oct 2016 22:40:22 -0400 Received: by mail-pf0-f170.google.com with SMTP id s8so26523131pfj.2 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=FUI3p/RBMOibAk6dxHojfyfUP9o8fMn0TBPzTXPzQ+VpOSlcggebLPAhMHygGbTlBy R7iOzD3GN0L1idVijnSWkjUnLiMjUSdYVt+pwwHAOQFsYdyOuJ3H/f4ABlofQNdyYLy6 RW5X9mGT2oRnhAHM7IhPKzXrOSyZVkPK8Vxvv1zEvi9fIDgTRjtQM7GhM0C6TqeoAqZt lbI78GE9M2e904SAPHjNXVLFZ7SrQPiaR3/Bwq5CJ0ClePV8W4wfeUguLX+7EjEUPw2N jPlAY0zUGg2wqGmEuer7QTo0x7iDw0HnlqRF68iZEnTgWbz35hD/mF4bVxc3PfrcojVx 15iQ== X-Gm-Message-State: AA6/9Rknw3A0MZyV+w59JL3NSj/N8Vjcd0fwg7LUxhb+j11X/oGR0K85va3+ZHqE7iqFF6x1 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-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Rob Herring --- .../bindings/remoteproc/qcom,wcnss-pil.txt | 30 ++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) 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"; + }; + }; + }; };