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: 9420665 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 2B10F60484 for ; Thu, 10 Nov 2016 05:50:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E00029290 for ; Thu, 10 Nov 2016 05:50:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F296A292BF; Thu, 10 Nov 2016 05:50:29 +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=ham 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 74BD029290 for ; Thu, 10 Nov 2016 05:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429AbcKJFuP (ORCPT ); Thu, 10 Nov 2016 00:50:15 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33308 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbcKJFuN (ORCPT ); Thu, 10 Nov 2016 00:50:13 -0500 Received: by mail-pf0-f176.google.com with SMTP id d2so140451158pfd.0 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=SVuc8liDIqkGXJ4eAlgIOoBtqi8aPzwWjnV+zla8e8VD5q6myTW9Yj6bnjCwcEwerJ jHVSr51nw5cMmSyDyVcexx0sS7blDeW0LiUhQwQywVJkcunc+TP1Br/x2FJgPK23+EXn wY96DSIncpMuDtBpkKuS00MMMUMptzrWs7HgVd69gCNjWsPOIeiA0AM4nQDqzoyEwpns TDn78AruIh2TZ7mV0Vlfxuh+hnHTwQPC7nnJMNz8dqfVxL5Y/RQoEJ227WBabHVSgf1o 2HM+BGLKA6RAI393Kd6d9sG2wpAVKL+8cF6YnSI7vIygJ40Vru2JD8X1oWYxRBehXDkF Fp6Q== X-Gm-Message-State: ABUngveTMe2tE1wd/W3ww0BlTRn6NhKbzK15AwW+lGVnmInDcn0ftkcoGwOqUYyA3J38cB1P 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-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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 Hexagon core. Cc: Sarangdhar Joshi Signed-off-by: Bjorn Andersson Acked-by: Rob Herring --- 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 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>; + }; + };