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: 74117 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2616605qga; Wed, 17 Aug 2016 10:28:40 -0700 (PDT) X-Received: by 10.66.43.7 with SMTP id s7mr436053pal.27.1471454920479; Wed, 17 Aug 2016 10:28:40 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c27si38581102pfk.274.2016.08.17.10.28.40; Wed, 17 Aug 2016 10:28:40 -0700 (PDT) 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; 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 dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753437AbcHQR2h (ORCPT + 27 others); Wed, 17 Aug 2016 13:28:37 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:35482 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752475AbcHQR2d (ORCPT ); Wed, 17 Aug 2016 13:28:33 -0400 Received: by mail-pf0-f178.google.com with SMTP id x72so39381977pfd.2 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=lXjDh3nAgfTGKoBBgOZp+ITujRcQoumrpJBJEN79wH47PPwKTNlxgzkC4PRqFKH8Ga El/yIzera5yGCoSh46JnbR8MlgGy+t2xp1U1ZSu9IqHDpcdRswVodAA/Jg6OB+to0MTF /dSBWbK6PLq3m8WCNqKr9efPUuJWtcNfay/PNTlOTdi/XSHwreJIPHNP9hoUhrcH5eOn WNQShECySJPt6Pta99s26sJPtrshd46fWRsrS5jtQPBKoQROYh+07zkQFFhhafQgWXKr uw5yB040w4GAss681NYkyE2gbG2wCSezGG6gh7ye8Qar6OBPfGwZeuLilYP08jVUsIht 5AtQ== X-Gm-Message-State: AEkoousgwTL8Ni4Sf56/LsI4YREAyQrjxLEF4vYs4IFTDzGXV0ZPSaWgutygskLRQMq7qgGR 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.5.0 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"; + };