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: 693074 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3tDsbG5dMhz9t1b for ; Thu, 10 Nov 2016 16:50:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ZL1ydaZW"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752452AbcKJFuP (ORCPT ); Thu, 10 Nov 2016 00:50:15 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:34778 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674AbcKJFuN (ORCPT ); Thu, 10 Nov 2016 00:50:13 -0500 Received: by mail-pf0-f175.google.com with SMTP id n85so140208705pfi.1 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=dxaYF6oPzdeLl4niQHq+y85qaG4y3WPh8uW5OQqBbqqNg2m+jyqKp1ltIAZAFOd3tU 1n55tu+4ewj2Cj5tPS5M+yKuZrXW3e+tKl/ZM02eClBCe5LyGk/l8GJPvpEVRYaMYi6L uTDyLzI8c+d3AD6nWcYLWj0InLHpVtD09Otwxl/BIyoaTT0FBN36qrlkQaAABUVgLx4U EHrVk8JF2mbAoxLBWYif+hYPAQpLZ8Dy+Hcj3vejdnWyq/gGITagoRPJYI2OwI72mTPD of4P047VUyHa/OlC1t9IS4tDkLud+FOTcq6vBI9Pqs/CSMqw+rulwI4IguafSqSiwure XILw== X-Gm-Message-State: ABUngveA4rLYp0GmxTiPvqsdLP8bRDryJ7UfSFJi2SIzL0TMQcpux15fUkNTUNGit/MgCmjm 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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>; + }; + };