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: 74486 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1925077qga; Mon, 22 Aug 2016 22:57:54 -0700 (PDT) X-Received: by 10.66.255.42 with SMTP id an10mr50393975pad.57.1471931874625; Mon, 22 Aug 2016 22:57:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a68si2208417pfb.39.2016.08.22.22.57.54; Mon, 22 Aug 2016 22:57:54 -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 S932503AbcHWF5w (ORCPT + 8 others); Tue, 23 Aug 2016 01:57:52 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34260 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753181AbcHWF5u (ORCPT ); Tue, 23 Aug 2016 01:57:50 -0400 Received: by mail-pa0-f49.google.com with SMTP id fi15so44879445pac.1 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=W9n0HJeSX8sWHKsTg9rH17Gjzw3J5PZCek+oHimbZwCnWS4YvXz1RtuiHLVWCdUIzU W2yA82m7MqglzUOJIjfJY3bNLoD0QmdGH2P0pmV1opfVL67zidaT2l2GOPdO2P4C/mPN HEJ1NCJjDeg+Z+k8nlH/4eIoSqz9CusS0782FmKnIybBQQ3DdS8hHFQDfPSwgk7ei1ui FlIruAHl2IR3UNrEuAydmT/L2f28jhMRiFKlNdxAv8p54lU45sJu3szEbydHBGB341D/ 6UGU+Gm06NtsJo4+NjZbnv8rxjE+BLzAYuEtrGwVwALqMJuLZl8oIhjXALSSCSXAk2tt j6HQ== X-Gm-Message-State: AEkoouucXwHOxeguHoMWl+vpLknReYQKoZY+/Juyh9sIM07ua8HvhnZEaUDyhg3Ou4yEnJ8C 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 Cc: Andy Gross , Mark Rutland , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-soc@vger.kernel.org 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 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 --- 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 -- 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 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"; + };