From patchwork Mon Jun 20 21:28:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 70482 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1706375qgy; Mon, 20 Jun 2016 14:30:12 -0700 (PDT) X-Received: by 10.98.50.1 with SMTP id y1mr23672496pfy.120.1466458211223; Mon, 20 Jun 2016 14:30:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si35409878pfj.61.2016.06.20.14.30.10; Mon, 20 Jun 2016 14:30:11 -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 S932802AbcFTVaJ (ORCPT + 8 others); Mon, 20 Jun 2016 17:30:09 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33483 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753709AbcFTVaG (ORCPT ); Mon, 20 Jun 2016 17:30:06 -0400 Received: by mail-pa0-f43.google.com with SMTP id b13so54315852pat.0 for ; Mon, 20 Jun 2016 14:28:47 -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=THAr+L40fGeMlii+X/I49kJG4mmzXANSYUMDM5LdnrI=; b=F1cfToHU1ZvTaqg8b7BhlElePd8FAdBZCy0PbVTlv/MnSyip93ubf5645vReLAl1Se aVmzPuR6ls0r/1kGsgR51FVHR1v3JKrFALzRzGTNYmagV8L1MT6+x6+h596gAPVSpObb KnkWZ6nlBsb906mZ54z4/ZBRQFdBFk6ve9wBs= 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=THAr+L40fGeMlii+X/I49kJG4mmzXANSYUMDM5LdnrI=; b=TFhOxCimShVatWdzNgyC5vM1M/zUbR4hbGPUNg0I4pSrR36EEN3UQEGP2PK+Fpn/Zt TVDysOUc1ScXDwOrX3vLx0MfywTtfWqESqkiaNErk1ZMISJyX2o17wkEUVXNwIqSNzZk bAPG8LmGF63RiaS9Frq9hnx2NO+bijiIkuYkS56epyC1msEI1BN/O5QyT7p65AOax08a aTJp5nYOiQflQU6exTcmu2U83YO2pk0LVLIh7nP88yxl9nH2rGiQlxKoaU0hk4cpK9yV L7RlECPylTH2WGMLkEJOyPtHSI/VaCE2+ZyiO7TaVnWeYqVGvQ6Cprm0zDbivCO7kOsN sJAA== X-Gm-Message-State: ALyK8tKAa1ShunQdtC45nBbpa9WAJFcRctqpjz3NAiIdsaq5ijwvOhMUNMAi4UhD1MWUPt4c X-Received: by 10.66.86.103 with SMTP id o7mr2207875paz.5.1466458127015; Mon, 20 Jun 2016 14:28:47 -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 um1sm52674087pac.41.2016.06.20.14.28.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jun 2016 14:28:46 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring , Srinivas Kandagatla , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v3 2/2] dt-binding: remoteproc: Introduce Hexagon loader binding Date: Mon, 20 Jun 2016 14:28:42 -0700 Message-Id: <1466458122-12180-2-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1466458122-12180-1-git-send-email-bjorn.andersson@linaro.org> References: <1466458122-12180-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 This document defines the binding for a component that loads firmware and control the life cycle of a self-authenticating Qualcomm Hexagon core. Acked-by: Rob Herring Signed-off-by: Bjorn Andersson --- Changes since v2: - None Changes since v1: - Corrected reg-names in the example .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.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,q6v5.txt b/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt new file mode 100644 index 000000000000..5b198c7e007b --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt @@ -0,0 +1,138 @@ +Qualcomm Hexagon Peripheral Image Loader + +This document defines the binding for a component that loads and boots firmware +on the Qualcomm Hexagon core. + +- compatible: + Usage: required + Value type: + Definition: must be one of: + "qcom,q6v5-pil" + +- reg: + Usage: required + Value type: + Definition: must specify the base address and size of the qdsp6 and + rmb register blocks + +- reg-names: + Usage: required + Value type: + Definition: must be "q6dsp" and "rmb" + +- 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" + +- clocks: + Usage: required + Value type: + Definition: reference to the iface, bus and mem clocks to be held on + behalf of the booting of the Hexagon core + +- clock-names: + Usage: required + Value type: + Definition: must be "iface", "bus", "mem" + +- resets: + Usage: required + Value type: + Definition: reference to the reset-controller for the modem sub-system + +- reset-names: + Usage: required + Value type: + Definition: must be "mss_restart" + +- cx-supply: +- mss-supply: +- mx-supply: +- pll-supply: + Usage: required + Value type: + Definition: reference to the regulators to be held on behalf of the + booting of the Hexagon core + +- qcom,smem-states: + Usage: required + Value type: + Definition: reference to the smem state for requesting the Hexagon to + shut down + +- qcom,smem-state-names: + Usage: required + Value type: + Definition: must be "stop" + +- qcom,halt-regs: + Usage: required + Value type: + Definition: a phandle reference to a syscon representing TCSR followed + by the three offsets within syscon for q6, modem and nc + halt registers. + += SUBNODES: +The Hexagon node must contain two subnodes, named "mba" and "mpss" representing +the memory regions used by the Hexagon firmware. Each sub-node must contain: + +- memory-region: + Usage: required + Value type: + Definition: reference to the reserved-memory for the region + += EXAMPLE +The following example describes the resources needed to boot control the +Hexagon, as it is found on MSM8974 boards. + + modem-rproc@fc880000 { + compatible = "qcom,q6v5-pil"; + reg = <0xfc880000 0x100>, + <0xfc820000 0x020>; + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc 0 24 1>, + <&modem_smp2p_in 0 0>, + <&modem_smp2p_in 1 0>, + <&modem_smp2p_in 2 0>, + <&modem_smp2p_in 3 0>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + clocks = <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, + <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>; + clock-names = "iface", "bus", "mem"; + + qcom,halt-regs = <&tcsr_mutex_block 0x1180 0x1200 0x1280>; + + resets = <&gcc GCC_MSS_RESTART>; + reset-names = "mss_restart"; + + cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + mba { + memory-region = <&mba_region>; + }; + + mpss { + memory-region = <&mpss_region>; + }; + }; +