From patchwork Tue Aug 23 05:57:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9294987 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 5F4D4607F0 for ; Tue, 23 Aug 2016 06:00:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FF5D28400 for ; Tue, 23 Aug 2016 06:00:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44742289E3; Tue, 23 Aug 2016 06:00:09 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C58E328400 for ; Tue, 23 Aug 2016 06:00:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bc4j0-0002HS-Q9; Tue, 23 Aug 2016 05:58:14 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bc4iw-0002GE-ML for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2016 05:58:11 +0000 Received: by mail-pa0-x233.google.com with SMTP id hb8so26291897pac.2 for ; Mon, 22 Aug 2016 22:57:49 -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; bh=PXm4HqXHdDSHcwyShhol5FA9OchZT9uxBI3i6roemao=; b=W2E5tfGZLww0JeFLMLhV44w/X9R5JOcvqzKCFBzlO5uEm2Jjt97tsPmlWTvsr3kr5Q CDL35nIbfXGmEVokDGjIS1aocEuswkFtB4YMjEkT5wueKmrDNMV2vL7cOlCUXr+WgQ7e 2gdkLbqfNtcdA4lmJLznINidsJH8zSga8rPQM= 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; bh=PXm4HqXHdDSHcwyShhol5FA9OchZT9uxBI3i6roemao=; b=MTQh9c9fV370SBtHrZ2nReKxqymvHE71lQSbRrgaN7dr8QMTj3P6dpJFZdh9Ns2ysZ kSUnt6zIl+hgz0PzyrgHa9oWvhT5gK0H2/TFBO3hb+6opCGx5lTeZple2cs7+lNyHX/M 7KNnHdNHxWZu1IXqMi31KA5AUV+6UINV2XXu6yi0Um5bA1M4EqlB7RnIXOhrbqNdpFMj NBhoroyMxtLDiuo64dsCiHSemoamf1LI4tG74Lu2HYFUXjfhsy4faVyjmnEVX/HGuNoC L8JZD2AcJumSXvBO8Ds5HNYfqj2SABPC4UjDpukGOSDBEsyjFYDkZPys0Y/y5uWgMvlW mToA== X-Gm-Message-State: AEkoouvdfR3YVhiUSIXRpd/OX4lYfHd43CXIa+UkQ3P8liOJXZnXaoFcXQQS4TMF+TDY/9+C X-Received: by 10.66.72.106 with SMTP id c10mr49408172pav.18.1471931869149; Mon, 22 Aug 2016 22:57:49 -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 uc1sm1994173pac.24.2016.08.22.22.57.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 22:57:48 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Ohad Ben-Cohen Subject: [PATCH v2 1/4] dt-binding: remoteproc: Introduce ADSP loader binding Date: Mon, 22 Aug 2016 22:57:43 -0700 Message-Id: <1471931866-3107-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_225810_817367_C2C7EB0F X-CRM114-Status: GOOD ( 14.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Andy Gross , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This document defines the binding for a component that loads firmware and control the life cycle of the Qualcomm ADSP core. Signed-off-by: Bjorn Andersson --- Changes since v1: - Added platform names to compatibility .../devicetree/bindings/remoteproc/qcom,adsp.txt | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt new file mode 100644 index 000000000000..3820151ce3e9 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt @@ -0,0 +1,70 @@ +Qualcomm ADSP Peripheral Image Loader + +This document defines the binding for a component that loads and boots firmware +on the Qualcomm ADSP core. + +- compatible: + Usage: required + Value type: + Definition: must be one of: + "qcom,msm8974-adsp-pil" + "qcom,msm8996-adsp-pil" + +- interrupts-extended: + Usage: required + Value type: + Definition: must list the watchdog, fatal IRQs ready, handover and + stop-ack IRQs + +- interrupt-names: + Usage: required + Value type: + Definition: must be "wdog", "fatal", "ready", "handover", "stop-ack" + +- cx-supply: + Usage: required + Value type: + Definition: reference to the regulator to be held on behalf of the + booting of the Hexagon core + +- memory-region: + Usage: required + Value type: + Definition: reference to the reserved-memory for the ADSP + +- qcom,smem-states: + Usage: required + Value type: + Definition: reference to the smem state for requesting the ADSP to + shut down + +- qcom,smem-state-names: + Usage: required + Value type: + Definition: must be "stop" + += EXAMPLE +The following example describes the resources needed to boot control the +ADSP, as it is found on MSM8974 boards. + + adsp { + compatible = "qcom,adsp-pil"; + + interrupts-extended = <&intc 0 162 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + cx-supply = <&pm8841_s2>; + + memory-region = <&adsp_region>; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + };