From patchwork Thu Sep 20 17:22:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10608249 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 DCA716CB for ; Thu, 20 Sep 2018 17:20:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C386E2E208 for ; Thu, 20 Sep 2018 17:20:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B72572E290; Thu, 20 Sep 2018 17:20:25 +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=-5.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_DBL_ABUSE_MALW 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 58AEB2DDA7 for ; Thu, 20 Sep 2018 17:20:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731520AbeITXEt (ORCPT ); Thu, 20 Sep 2018 19:04:49 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38558 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731448AbeITXEs (ORCPT ); Thu, 20 Sep 2018 19:04:48 -0400 Received: by mail-pl1-f193.google.com with SMTP id u11-v6so4660998plq.5 for ; Thu, 20 Sep 2018 10:20:19 -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=NaOfTbA5BHfEo4zV49s3Hc2oVirXXIQsKVy7HL8tknw=; b=QtwElgx6osfgEjtI8U932YUq8N3vjzkQMPnrcxBefrPbBaUVKCBeYCb+a/vPEd5OON dGno6CudZaRmM/ZBvTLAAZE+7GrZKpLbq8ct9xDMYiKixHOLNCllYw+c9Ax4jWUwcyuY A4TEQJgCadVIAqsqNMVARqTk8R8zCt2/LrKOk= 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=NaOfTbA5BHfEo4zV49s3Hc2oVirXXIQsKVy7HL8tknw=; b=WX3PPeNjvyPwkFT6QREU0rynh4l+ybC2a9o53Qz15rHEP8cKLTz9bK6oSherc7Si32 8xZRz3c/4W18Ure9bKgCC3WBS7hgtBnYOQ8DDP5R1hoEwDcY7Pzp9qqkWAz3+FJBkJW2 Gb5y5jSq0Q3nUW0sjvC2i/w760ljGixIlj3W9tPBkBcymTejkQbU790DShNvWERbA6/f /qT8bW5jZCXejqkdTwHUDi4f9G111OadbyfAtpmRDKNjgih6+M1ft11JNrs7RnSfMqoX nqKKE38YEb9iqhHHGAezjPjBN5q8/AozFUUVGv54gu0+pfB1VqDmZrYLOqlEpjUUkKyk EAKw== X-Gm-Message-State: APzg51Dv4dY3POlzUS+QJ1ZXew8mBfW8/7kJG7yHj3we/S4ZSPyT/G4o p3sTeesgBKJGE5+c2/LGMK5FLA== X-Google-Smtp-Source: ANB0Vdaxp6bZSVApsbO/Q344nyoakXnno+U45uLTio1o00Wm2NeM1araWmgrAYwLQJnC0E52GDFz6g== X-Received: by 2002:a17:902:7e09:: with SMTP id b9-v6mr40080518plm.221.1537464019170; Thu, 20 Sep 2018 10:20:19 -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 c28-v6sm8059228pgn.65.2018.09.20.10.20.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:20:18 -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: pas: Add QCS404 remoteprocs Date: Thu, 20 Sep 2018 10:22:37 -0700 Message-Id: <20180920172237.30965-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 From: Govind Singh Add compatibles for the three PAS based remote processors found in QCS404. Signed-off-by: Govind Singh [bjorn: Added adsp and cdsp to the patch] Signed-off-by: Bjorn Andersson --- .../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..fcbb816a9698 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 = "wlan", + .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}, { },