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: 147109 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2263235ljw; Thu, 20 Sep 2018 10:20:21 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda+zGo7yjSkgZpoDw2vh4qFdGcOu882I40ZHjoe0Tu2I1hFyLcUQeQy+w7i5YmQMrPFaYjE X-Received: by 2002:a17:902:7614:: with SMTP id k20-v6mr40328062pll.170.1537464021226; Thu, 20 Sep 2018 10:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537464021; cv=none; d=google.com; s=arc-20160816; b=liVQP+WtJpaDO4dveiyPAjyM8wLMuYQT2C7dXkaj4UudcHuttToMP5kLz78BGD7ogO nd1xREFq/uAESOvxujWL3/PQAX5hIZ2DTBpc774zFmuy88NVGm2a+pLulEEsaKYMK6NF 8Awmuyu167d5WSGgVGv5Rcxws8rqMpqqD1JDMqDpDdc+gGZt/9mIlHFiarm8iu08YMxT cBuM6wigR3fTPXD5PpeW96fZtWTt0qeD3bwy1IC5aPmzlZtDRWJ2d15a1Af1NAUtYUFl q2cppAz16VM8SH6x8oBT52qjs5cr66HGxxlUjevArBu0ELzUhWoXOlmefZGQi3j66tbQ 9sIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=NaOfTbA5BHfEo4zV49s3Hc2oVirXXIQsKVy7HL8tknw=; b=czMoAc1VF+wviLWTdZc4P58bo1w0db6GE3Gv+VgrNUInmPoaidZYOPSm6ojPh7lBMM 1xHtvjeKqNOYCDFvOOia026aylB1Tis4ymmT7Dv2vojxZkBebbSHvSnlCb54MXvJ196i Oa3Kui9B+YRtmViK9QHB1TzJ2CCm/NhE2jp1jaNeSKkBEU3wr1iliL7YHZ8sV6jO0X4r u9u0dU/Fp2bAqCpRcCMOfYJ3rcFMpKHz58uqqsgb9zNyD8HtzHDg6z7OMgWm3ynrP9hn 8pavzEbZIGf07E8mJnhRT2MLEDfvArNv+/9wbNGMUSxvhSXJJFkt4Toby0EpstGv8o8J /t/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QtwElgx6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si23542332pfi.256.2018.09.20.10.20.20; Thu, 20 Sep 2018 10:20:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QtwElgx6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731463AbeITXEt (ORCPT + 6 others); Thu, 20 Sep 2018 19:04:49 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45158 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731091AbeITXEs (ORCPT ); Thu, 20 Sep 2018 19:04:48 -0400 Received: by mail-pl1-f195.google.com with SMTP id j8-v6so4638318pll.12 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=IWrurPUwo0uhqcFTGMg0dngEW/B8qpsFXzNyrX11PR+Pg/ZkjkaSz8TAfSksMM+eZI A9hBOOL6Vpt7WFZXNMScs6N4e4YzoaVjMracorZDbUOTMVW3QY1gRCTwQGRuIe+ECm/f jjQB8a1t7ruqlhMKAz2GLjeCMU06ulT3/VXYEVXONP9BZ9xmPRUAEBn8AIfOx/wOPb6P fU0DNM6R+WNvE8RwQYbLdGLv+Z4IaEIdHVhJ39Eqk9FZS3rjZmqti9PWqJIdyRkWVFjV aBAK9ortpSQpNdZ9dTeSeaYGmxSjbNwHm4xIesFkhv4HMR4VLEncnqqjXfmZJVj5Air6 RBFw== X-Gm-Message-State: APzg51BG4O3xZ9ubjyNUmcC+swjjx7L1My8+D+KTcxOjbJBBczIikbjZ bOIQvlttKJf2NtyZM6ZDyXLqUw== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 2.18.0 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}, { },