From patchwork Wed Aug 17 17:27:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9286273 X-Patchwork-Delegate: agross@codeaurora.org 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 E275160839 for ; Wed, 17 Aug 2016 17:28:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D449328906 for ; Wed, 17 Aug 2016 17:28:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8D5E29602; Wed, 17 Aug 2016 17:28:43 +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 30B8D294A2 for ; Wed, 17 Aug 2016 17:28:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753430AbcHQR2h (ORCPT ); Wed, 17 Aug 2016 13:28:37 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:36399 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752652AbcHQR2d (ORCPT ); Wed, 17 Aug 2016 13:28:33 -0400 Received: by mail-pf0-f176.google.com with SMTP id h186so39290617pfg.3 for ; Wed, 17 Aug 2016 10:27:38 -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=7fNQ5AcO8U1dmFD1hbHZ3G7u+uJONNcYp/FjR6INOZw=; b=GOKioRBq0HicCLucWp7JFTtJ1x/Ch4mycBqMj+uzV5rt3RcWVC6kcAs3d+u1wZZ2l6 ZTVnBKU1EAniK2lcVWdzGlzSBqKzjtIh8m1UjlK+sYOIfY1FSjqMxcaQS6jXj/bNVGqr gYgejM9UHOmsz1ELOKCVuRWout/ArSl/FAxQs= 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=7fNQ5AcO8U1dmFD1hbHZ3G7u+uJONNcYp/FjR6INOZw=; b=Ev63Qcua7qasoI6xiNTRah2Z4T29I0YbJHck1lFc9ivgVOmZ3gym8ypaXtqII0KWoP fZZU/B1FMKA3p1m7mmkBVBRaFgKTRWrMGxiDVQEAMHiBUrynvDWaLG7TYAORuQ7JtCrY 10OQVIfrKEKKTAJl5F4dtogNjmP2AVl0FeZXzdfosyxHC+Koo8an8su3Nd6demCM+u31 shMrEAzorhz0KSZucNddBfuXNXXPEMvlZeJMtXHkhhtq+JG0Q6JS8SJDMJSs7ge/I7r7 c4lOszSN8CtyiqLNdyw3O6AndJdulCGgE9E4HW2flGAXI3j1x7/HK26pXfDzMLhFvOH/ /brA== X-Gm-Message-State: AEkoouvfGFVQKGB4EZ7/CevMiXqOEaPJBkFHL8tYiZHW5zl3kDGgWChmTN85vSJ0jR0c1Jo0 X-Received: by 10.98.200.29 with SMTP id z29mr76071991pff.143.1471454857847; Wed, 17 Aug 2016 10:27:37 -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 b90sm48625930pfc.29.2016.08.17.10.27.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Aug 2016 10:27:37 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Mark Rutland , Ohad Ben-Cohen , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH 2/2] dt-binding: remoteproc: Introduce ADSP loader binding Date: Wed, 17 Aug 2016 10:27:34 -0700 Message-Id: <1471454854-28302-2-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1471454854-28302-1-git-send-email-bjorn.andersson@linaro.org> References: <1471454854-28302-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 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 --- .../devicetree/bindings/remoteproc/qcom,adsp.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 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..077d9b6b9cd0 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt @@ -0,0 +1,69 @@ +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,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 1>, + <&adsp_smp2p_in 0 0>, + <&adsp_smp2p_in 1 0>, + <&adsp_smp2p_in 2 0>, + <&adsp_smp2p_in 3 0>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + cx-supply = <&pm8841_s2>; + + memory-region = <&adsp_region>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + };