From patchwork Thu Nov 10 05:50:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 81601 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp562689qge; Wed, 9 Nov 2016 21:50:18 -0800 (PST) X-Received: by 10.99.1.23 with SMTP id 23mr33239641pgb.37.1478757018858; Wed, 09 Nov 2016 21:50:18 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si2600310paw.303.2016.11.09.21.50.18; Wed, 09 Nov 2016 21:50:18 -0800 (PST) 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 S1752646AbcKJFuP (ORCPT + 27 others); Thu, 10 Nov 2016 00:50:15 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34882 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751664AbcKJFuN (ORCPT ); Thu, 10 Nov 2016 00:50:13 -0500 Received: by mail-pf0-f179.google.com with SMTP id i88so139489391pfk.2 for ; Wed, 09 Nov 2016 21:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=9/qFIi3cAzQIJqibRK6+ywYESsQrcxlSfUusbzR/EvE=; b=ZL1ydaZWEHmTBEC/XB/V1zwSkRfyNaZ2xKFqGyBOH4rd7amwaw4Q+TZcPNt2spwKzn ErQfWKm/M84o2E0Pqtes26m3ZEO4TiJfaxGsSyym7QWIq3M3sqhc+U4DRfIMmz2o3r76 FGvq+P1PSFfOBoXwG/BCA9guk8RQS7BJe6cZw= 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=9/qFIi3cAzQIJqibRK6+ywYESsQrcxlSfUusbzR/EvE=; b=R7OJroX3FsDA4MphnAfN/14iW+3r8dqno3KHyCElidE7uSoFrT+C3Z8od+8V2Y6SHM RKVSLnmnsQB43r9tnOcyzED8L3SYvVMWVZ7xO/gPYHgukHzuVoF5PIWvdBRWQ4G0FvSw Wacb4H+8BxgAI/hQpJGFJ5rCh+UtmSxlTDMRrg5MpYw2L8GgoNurf+tiY5vFCVUFfW3N GwCqZp8aScmLbKDHgZRaef1EMG8hzXIglh9VzExfrKSJfSZmpDUObSMZhtgiAm2I2YN6 cz98S3rYQYKM+A2+iUsKEJUZbfxhx5Ko0jJS/WWdaesJgoUoD0tTqxF3zk8ABysUa28x cg/Q== X-Gm-Message-State: ABUngve2H5XHhqjSKYfZuOCooVpH+HxQgQOF2FEXnI0bdSFLYgKeRwdtZtMbqduI7RrmVCvn X-Received: by 10.99.4.213 with SMTP id 204mr32999128pge.77.1478757012789; Wed, 09 Nov 2016 21:50:12 -0800 (PST) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id vz6sm3455663pab.15.2016.11.09.21.50.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 21:50:11 -0800 (PST) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson , Rob Herring , Mark Rutland Cc: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Sarangdhar Joshi Subject: [PATCH] dt-binding: remoteproc: Introduce ADSP loader binding Date: Wed, 9 Nov 2016 21:50:09 -0800 Message-Id: <1478757009-11522-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 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 Hexagon core. Cc: Sarangdhar Joshi Signed-off-by: Bjorn Andersson --- Changes since v2: - Added the required "xo" clock, from Sarangdhar - Added smd-edge node - Corrected example Changes since v1: - Added platform names to compatible .../devicetree/bindings/remoteproc/qcom,adsp.txt | 98 ++++++++++++++++++++++ 1 file changed, 98 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..471946f2f080 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt @@ -0,0 +1,98 @@ +Qualcomm ADSP Peripheral Image Loader + +This document defines the binding for a component that loads and boots firmware +on the Qualcomm ADSP Hexagon 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" + +- clocks: + Usage: required + Value type: + Definition: reference to the xo clock to be held on behalf of the + booting Hexagon core + +- clock-names: + Usage: required + Value type: + Definition: must be "xo" + +- cx-supply: + Usage: required + Value type: + Definition: reference to the regulator to be held on behalf of the + booting 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" + + += SUBNODES +The adsp node may have an subnode named "smd-edge" that describes the SMD edge, +channels and devices related to the ADSP. See ../soc/qcom/qcom,smd.txt for +details on how to describe the SMD edge. + + += EXAMPLE +The following example describes the resources needed to boot control the +ADSP, as it is found on MSM8974 boards. + + adsp { + compatible = "qcom,msm8974-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"; + + clocks = <&rpmcc RPM_CXO_CLK>; + clock-names = "xo"; + + cx-supply = <&pm8841_s2>; + + memory-region = <&adsp_region>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + smd-edge { + interrupts = <0 156 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 8>; + qcom,smd-edge = <1>; + }; + };