From patchwork Tue Aug 28 07:14:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10577931 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 135C714E1 for ; Tue, 28 Aug 2018 07:13:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E66BC29AB5 for ; Tue, 28 Aug 2018 07:13:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D857E28F6E; Tue, 28 Aug 2018 07:13:23 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 737BB27FA9 for ; Tue, 28 Aug 2018 07:13:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726995AbeH1LDh (ORCPT ); Tue, 28 Aug 2018 07:03:37 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:32977 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726979AbeH1LDh (ORCPT ); Tue, 28 Aug 2018 07:03:37 -0400 Received: by mail-pl1-f193.google.com with SMTP id 60-v6so355733ple.0 for ; Tue, 28 Aug 2018 00:13:22 -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; bh=73HPGL63Esv8GtHzIlNSJjuXKAKifPboU2ChJ9Oi9P8=; b=FG4pshZAM1r22VmHGpgqH+Wqy67J7uI8dv3GUpS+FWDSl1wWzKoYLzqQzWjm5f3WtF 0PL6FRAHi72gwx331WN5CUubwycmCMsX68fwUWsslIp8kp2B0N4If+UH2KYm+RNASkLW XWNSMfkDqgVoWpDkqOsgrL1dXhYecG7xqHxu4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=73HPGL63Esv8GtHzIlNSJjuXKAKifPboU2ChJ9Oi9P8=; b=Fr/wX5ZsAIJkc0MmOYVZDdZhlAq0GcBXEuNmcML5z/UA4ZyC61uP72YGtlLSIfQTlH kUabFDtD4hgM1rVZhx3nC0AmmcXY+DdfdLw+sLc4RBYwwrnus5XV2ExhMpiZelggxwvN 4zANlO45LQOSNErB/LABVBypcPhom7SVeqgbHa+xIS5+DMQHzi9oTwW/6mpLHdfuclmc +1Hchu6X+SNVn4+PH8UVNpeF2o8uhjBP+7Z2wbDWZWAalI6bIw3vQ4wvwERquDVnTFFI mERSThOYPB53T2GnKqsDS0xqEeExV40RNa58H5tyBRXDtJvmh/89mMW98QAf3bF4Hprj dkaQ== X-Gm-Message-State: APzg51AHyxf0V5eUpwYau8m8pk2HES0SAfK3Vueth5ASsrcboGV1GrJy 22wc+W7uSM/Mdu6c9Wzff8h8cSqbBOk= X-Google-Smtp-Source: ANB0VdZd3qpg7t3rIC2sG1CMHl6dzapvvnPledNhrcaFLrjpCTzEjmIGjXo9JUWoC5BGUyyGqZmpNg== X-Received: by 2002:a17:902:b68d:: with SMTP id c13-v6mr281913pls.167.1535440401999; Tue, 28 Aug 2018 00:13:21 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id f4-v6sm1143482pfj.46.2018.08.28.00.13.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 00:13:21 -0700 (PDT) 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 Subject: [PATCH] remoteproc: qcom: adsp: Add SDM845 ADSP and CDSP support Date: Tue, 28 Aug 2018 00:14:58 -0700 Message-Id: <20180828071458.26858-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.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 Add support for booting the Audio and Compute DSPs found in Qualcomm's SDM845 platform. As with the previous platforms the power rail handling needs to be updated once the appropriate support lands upstream. Signed-off-by: Bjorn Andersson Tested-by: Sibi Sankar --- .../devicetree/bindings/remoteproc/qcom,adsp.txt | 2 ++ drivers/remoteproc/qcom_q6v5_pas.c | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt index 728e4193f7a6..b7d058228185 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt @@ -10,6 +10,8 @@ on the Qualcomm ADSP Hexagon core. "qcom,msm8974-adsp-pil" "qcom,msm8996-adsp-pil" "qcom,msm8996-slpi-pil" + "qcom,sdm845-adsp-pas" + "qcom,sdm845-cdsp-pas" - interrupts-extended: Usage: required diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 2478ef3cd519..53eff2afda06 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -342,6 +342,16 @@ static const struct adsp_data adsp_resource_init = { .ssctl_id = 0x14, }; +static const struct adsp_data cdsp_resource_init = { + .crash_reason_smem = 601, + .firmware_name = "cdsp.mdt", + .pas_id = 18, + .has_aggre2_clk = false, + .ssr_name = "cdsp", + .sysmon_name = "cdsp", + .ssctl_id = 0x17, +}; + static const struct adsp_data slpi_resource_init = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -355,6 +365,8 @@ static const struct adsp_data slpi_resource_init = { static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,msm8974-adsp-pil", .data = &adsp_resource_init}, { .compatible = "qcom,msm8996-adsp-pil", .data = &adsp_resource_init}, { .compatible = "qcom,msm8996-slpi-pil", .data = &slpi_resource_init}, + { .compatible = "qcom,sdm845-adsp-pas", .data = &adsp_resource_init}, + { .compatible = "qcom,sdm845-cdsp-pas", .data = &cdsp_resource_init}, { }, };