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: 147728 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2382502lji; Thu, 27 Sep 2018 12:01:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV634mNFqp4X9LrQCRDuyWzqg02tCu6NGmIob3oXyUy3DvO2gCRbsn1pmuYaY8pcQ0zrXava2 X-Received: by 2002:a17:902:464:: with SMTP id 91-v6mr12607931ple.125.1538074879753; Thu, 27 Sep 2018 12:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538074879; cv=none; d=google.com; s=arc-20160816; b=mUflXASaoUCoGz2DqVovB+zPr+2EY339fvfH8AHB7Szdd+26OfaFYxrZobmqzd0Of4 kmNRbJgLC2gfKFzpjyPiS2PuPXmw1xGxqnyOAH9A2DOaAVl8/pRKvLc1UJkexEDNtHOD eH0DhAV/oR2hZSi7BA0x/x3b301tKS1BQE+6pmffgsSjm3wrtgC40Iwvrq6qM0QTpAeC 53//g4iTgO382aFqUdlWUDaU8pGgDZfW+iV63hijCsgD6JmO+qqH3IZgPQDP39ucaSET e0/S7FYXXZ60uF7UQAVpzrjgbfeMu5tTPG+J+ZsqrjD1J+QKDpZijrwDu6OB174yZkFY z5Ag== 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=/VF1TI5TGQ3LEbw72u8BbpO4IegdgRaxnJZQlZMRJUI=; b=sWJu9X3+NCp/HBxYcMOzQROSMYbRhsW4yiaXa2t4SzmA3fWA5zNSNq0Y0RXLWOHtaq ZrCq3sSZ4t2aZTtP+VcT0LczX7CrnA+wD/vfAR8YnCkjY0JxvUBnse70GxWtyEYoJcAB MlR+p+x9/nML49qJLxmJD4RQurZTvxkC1nL//QnW63qPwdXpAel7W35TWbtkKIaiCZXr ZFa++JlNtDS+mpR2mT2B1MLkOpEbLrpBYIru4Bc5ox05xz4Wgxp4yuJeBDQG2cy8PId6 r34mO5/54A+/MhZ9dxq8MHu+HBezitEpl7NFuP18oTB43da0C2URWga6pCcBxppAGFzK +bew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qz0Tycde; 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 b9-v6si2690199pgl.446.2018.09.27.12.01.19; Thu, 27 Sep 2018 12:01:19 -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=Qz0Tycde; 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 S1727731AbeI1BU7 (ORCPT + 6 others); Thu, 27 Sep 2018 21:20:59 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40241 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728410AbeI1BU7 (ORCPT ); Thu, 27 Sep 2018 21:20:59 -0400 Received: by mail-pf1-f194.google.com with SMTP id s5-v6so2544783pfj.7 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=ggSKOhb99PDjkP3MxHkR07YGufkkRbcpVmrWLnKRKfP3cIedfRNhrXqGzZo4lLJ6BI /7uHUMepNI3ht33Gsla4W2lk5GhFmC+M3ySO9kiHj0wLJgTHsAkqTZdgWtgERXntbL7P pF+ILsd7nK5bQKC6YYfmBtjBHUdU8jyLnyfMk0lKzxLcEmoqJqVqr9uahO8Fyt5fiFL4 zysE7LBONhfoVplhHyLAn83F1mJ6wIe1uLKKCog41z2HUxBIZYq6CoAGsWQbphYmT5bD TrgK0AqjPQKEdiQaBYdaYIY+Fby4HMu3W1qvnXDUgbQxYX1MACm4r8IJFLxKsTqJAl3S wmrg== X-Gm-Message-State: ABuFfogFrn/JK1ytNomiYJPYWnrt9tWF3WgoUsB1QrqdjPVk+qgGwe1u 1/7GmDeXAesYCbEoqkHC7uO2Xg== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatibles for the three PAS based remote processors found in QCS404. Signed-off-by: Bjorn Andersson --- 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(+) -- 2.18.0 Reviewed-by: Sibi Sankar 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}, { },