From patchwork Thu Sep 27 19:03:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10618471 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 A64C7175A for ; Thu, 27 Sep 2018 19:01:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83E1F2BA65 for ; Thu, 27 Sep 2018 19:01:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 743BD2BA71; Thu, 27 Sep 2018 19:01:18 +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 176552BA65 for ; Thu, 27 Sep 2018 19:01:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728608AbeI1BU6 (ORCPT ); Thu, 27 Sep 2018 21:20:58 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34526 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727731AbeI1BU6 (ORCPT ); Thu, 27 Sep 2018 21:20:58 -0400 Received: by mail-pg1-f195.google.com with SMTP id d19-v6so2636972pgv.1 for ; Thu, 27 Sep 2018 12:01:17 -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=/VF1TI5TGQ3LEbw72u8BbpO4IegdgRaxnJZQlZMRJUI=; b=Qz0TycdetPLav2S+Ksio52U7NrZPn6UIbEODF8wATLT1G4E5RMQb6CHUVac9IkviJl M+kRwfMcTIoaP9ygAYiBd/s93y4EnH7fnCi7Liwotj+jP1YY5ZUY7zGTdqgDC9FG3dsi +8AA3GDVieKtTQ5/NXrZDqEegUSv5NZRZphQ8= 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=/VF1TI5TGQ3LEbw72u8BbpO4IegdgRaxnJZQlZMRJUI=; b=o7lR+2HfHosrgU+J9FIksYcrD9BXGRgOEE3jOjkDH5UrjpolCsQvGyxBPG8qlSY7uu bNku0dzWFCgRnfsfKjAM9Try6Zc6S7MLbjeCRskCOys9BqeYJ4gIZg9/q7PaYffwoMPj YNGxGFFlKuFSF0RWL/8XDpO2q8QQZ9roR97ZU2WmqRO9ecRXr3X9nf7l0erIjSW1KBJd hbiiubvNMJ9Y0sjmj9UjYWRM+XVSCl3/xHDUxRGLArF+ZBUSQUaetNeHv3tUHHWi6VRT 9ZPgFZpWahuEpm17mQLHnPhSevw8zs/3tziRJ8sMqIoAdm4CYr4t4/AuzjAtYl4NMMyV So5w== X-Gm-Message-State: ABuFfogVc8swvG/fzYzE3aFetQLLqEqfjiJepFo+RS5fPT0jNTxt9BYT BIPCUZdxylk/fNoRlPIfOQ966w== X-Google-Smtp-Source: ACcGV60cc76xMBk1OL7O06mLldDmr5K2bxNO+gX1TWNHnCmcMkciJDfwTjmxV2Xo/1mbA6bp9yGdqA== X-Received: by 2002:a17:902:6e01:: with SMTP id u1-v6mr12696563plk.13.1538074876749; Thu, 27 Sep 2018 12:01:16 -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 k63-v6sm3433615pga.36.2018.09.27.12.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 12:01:16 -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, Sibi Sankar Subject: [PATCH v2] remoteproc: qcom: pas: Add QCS404 remoteprocs Date: Thu, 27 Sep 2018 12:03:46 -0700 Message-Id: <20180927190346.2984-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 compatibles for the three PAS based remote processors found in QCS404. Signed-off-by: Bjorn Andersson Reviewed-by: Sibi Sankar --- Changes since v1: - Fixed incorrect sysmon_name, as pointed out by Sibi. .../devicetree/bindings/remoteproc/qcom,adsp.txt | 3 +++ drivers/remoteproc/qcom_adsp_pil.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt index b7d058228185..9c0cff3a5ed8 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt @@ -10,6 +10,9 @@ on the Qualcomm ADSP Hexagon core. "qcom,msm8974-adsp-pil" "qcom,msm8996-adsp-pil" "qcom,msm8996-slpi-pil" + "qcom,qcs404-adsp-pas" + "qcom,qcs404-cdsp-pas" + "qcom,qcs404-wcss-pas" "qcom,sdm845-adsp-pas" "qcom,sdm845-cdsp-pas" diff --git a/drivers/remoteproc/qcom_adsp_pil.c b/drivers/remoteproc/qcom_adsp_pil.c index da2254ea1135..d5e58235e83a 100644 --- a/drivers/remoteproc/qcom_adsp_pil.c +++ b/drivers/remoteproc/qcom_adsp_pil.c @@ -362,10 +362,22 @@ static const struct adsp_data slpi_resource_init = { .ssctl_id = 0x16, }; +static const struct adsp_data wcss_resource_init = { + .crash_reason_smem = 421, + .firmware_name = "wcnss.mdt", + .pas_id = 6, + .ssr_name = "mpss", + .sysmon_name = "wcnss", + .ssctl_id = 0x12, +}; + 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,qcs404-adsp-pas", .data = &adsp_resource_init }, + { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init }, + { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, { .compatible = "qcom,sdm845-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sdm845-cdsp-pas", .data = &cdsp_resource_init}, { },