From patchwork Thu Jan 12 13:53:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dwivedi, Avaneesh Kumar (avani)" X-Patchwork-Id: 9513227 X-Patchwork-Delegate: agross@codeaurora.org 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 EC88160762 for ; Thu, 12 Jan 2017 13:54:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE6D9285A8 for ; Thu, 12 Jan 2017 13:54:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D333628609; Thu, 12 Jan 2017 13:54:01 +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=unavailable 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 80C6D286B9 for ; Thu, 12 Jan 2017 13:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750893AbdALNyA (ORCPT ); Thu, 12 Jan 2017 08:54:00 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:50218 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750854AbdALNyA (ORCPT ); Thu, 12 Jan 2017 08:54:00 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6CF71612F3; Thu, 12 Jan 2017 13:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1484229239; bh=bRyMdtrvQp5U/eWqhmxvQpaEbbNSSruUN8VPYYSx9bU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VjjSciBoIKAnGhlIOGcOyu7ol12WF/BSKjkQvWa2P68QQPB6rU+b56QZ8+T0koUY4 5DlK584uf2DP6nQeuhErv63BVV9qGq7H/gMhfb1dS+cE/jXJxeEYFfe3gc2qfja+4E lFAfKxwz7dYWYA0bOPUkVMHuIK0DyEelrsexQcsU= Received: from akdwived-linux.qualcomm.com (unknown [202.46.23.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akdwived@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5106E612CA; Thu, 12 Jan 2017 13:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1484229238; bh=bRyMdtrvQp5U/eWqhmxvQpaEbbNSSruUN8VPYYSx9bU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A9aoaB00VODAYAaScIoL3mFiQhRbNXTEj81S/PIAh8Jpm1LBYgGY3zFozFZJ3nJM2 RawLW4SLcmPvsLqrU5cAHUr+UiuGwDp3+3H5WZ54v9UpSyu+SUMLWoso1YMb9VR00q gDITke/kzUIAfLmEZMye+IhFFd3Xmaylm21x9vdc= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 5106E612CA Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=akdwived@codeaurora.org From: Avaneesh Kumar Dwivedi To: bjorn.andersson@linaro.org Cc: sboyd@codeaurora.org, agross@codeaurora.org, linux-arm-msm@vger.kernel.org, spjoshi@codeaurora.org, linux-remoteproc@vger.kernel.org, Avaneesh Kumar Dwivedi Subject: [RFC 2/3] dt-binding: remoteproc: Introduce DT binding for Qualcomm slpi subsystem. Date: Thu, 12 Jan 2017 19:23:36 +0530 Message-Id: <1484229217-23364-3-git-send-email-akdwived@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484229217-23364-1-git-send-email-akdwived@codeaurora.org> References: <1484229217-23364-1-git-send-email-akdwived@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 slpi core. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,slpi.txt | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,slpi.txt diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,slpi.txt b/Documentation/devicetree/bindings/remoteproc/qcom,slpi.txt new file mode 100644 index 0000000..51dc64f --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,slpi.txt @@ -0,0 +1,88 @@ +Qualcomm SLPI 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: + "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 and aggre2_noc clock to be held on behalf of the + booting slpi core + +- clock-names: + Usage: required + Value type: + Definition: must be "xo" and "aggre2_noc" + +- cx-supply: +- px-supply: + Usage: required + Value type: + Definition: reference to the regulators to be held on behalf of the + booting slpi core + +- memory-region: + Usage: required + Value type: + Definition: reference to the reserved-memory for the SLPI + +- qcom,smem-states: + Usage: required + Value type: + Definition: reference to the smem state for requesting the SLPI 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 +SLPI, as it is found on MSM8996 boards. + + adsp { + compatible = "qcom,msm8996-slpi-pil"; + + interrupts-extended = <&intc 0 390 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + clocks = <&rpmcc MSM8996_RPM_SMD_XO_CLK_SRC>, + <&rpmcc MSM8996_RPM_SMD_AGGR2_NOC_CLK>; + clock-names = "xo", + "aggre2"; + + vdd_cx-supply = <&pm8994_l26_corner>; + vdd_px-supply = <&pm8994_lvs2>; + + memory-region = <&slpi_region>; + + qcom,smem-states = <&slpi_smp2p_out 0>; + qcom,smem-state-names = "stop"; + };