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: 145299 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp850602ljw; Tue, 28 Aug 2018 00:13:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYwGAAqEfyUbMbumjEE6NDDJCT8fC8FCxQDWzTN15Zvvbwuu/MOrVgmFeDo/tbjHEnRSblR X-Received: by 2002:a63:ea0c:: with SMTP id c12-v6mr314834pgi.158.1535440403524; Tue, 28 Aug 2018 00:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535440403; cv=none; d=google.com; s=arc-20160816; b=OJ2k3E2tTEAniahLLtaLOgMufRfhDSLntb4+GIalIgtIbt7D79+XzsXM+GsM32D5Ix O9whVpjrNgFifs/KDO1u8yywgxtOOuvhq/KyXXvCPNf+ZIPvV7zv79qB4hDygoC24LQF NfI/ptpNqWeqT+PuTfS8Y4cOFaC3v3HhVoTP/ZOu0qgfjycTaWsYUFIe1T+3Vt68/qP4 5S52nl4C2pXme0B0btgojWn/6T+4g1lnPeAx/UCTchgoHBQ5wcpXxat5/OLZDvOzCUNL ReQ88qBtU4zap9E7KB7keKgdfNbETTLFLu7JVtQPiqRrVktjj7rko92OO8hDK0Tfut/I 3Ofg== 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:arc-authentication-results; bh=73HPGL63Esv8GtHzIlNSJjuXKAKifPboU2ChJ9Oi9P8=; b=tRKcoGEJXuznq1WHRFG6s+1aLJIhhqebxfYploxjQif+p468dw5kOHDRuo+mhbB8Hl Nzxmt/WCfHl/9E/8C+FbTD7kISqzlgAx4tdFUGeXOhN+f+yUfdZmcK0kw9HxjxHUpCBk DYyHb0biigU1wanXgYpd8iPVlGrcVFz4qn6mR2Ay4Gkp/XiDz2dKvxAucdI3rHoX2L3f paHOtcO1HtghzpWkNBK/T2eD5Rt+TbfNgM79w18CqWvLx76WLuSTVNL7t1BRWuHtaYFQ pGupOR7+LWyIOhzRrGz0GuA6TIuDk3hcFAQ5nVYrm3nt2XoogqWSoKunfYfY9Ea0MKkE 1Dbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FG4pshZA; 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 cc19-v6si335151plb.97.2018.08.28.00.13.23; Tue, 28 Aug 2018 00:13:23 -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=FG4pshZA; 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 S1726468AbeH1LDh (ORCPT + 6 others); Tue, 28 Aug 2018 07:03:37 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45467 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726995AbeH1LDh (ORCPT ); Tue, 28 Aug 2018 07:03:37 -0400 Received: by mail-pl1-f195.google.com with SMTP id j8-v6so329743pll.12 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=fLC7M8NQN/t5a2zaCzwDIb/KZpIlUbwCm7cVBwr8yYnP+InfpnQXJrCKhQwTFlBeUy FFouE/Ev7TWuUKEC8xAx7/3dxRHz2eI/U4akFcvi+YeIaN93/9XIQWrjvucyeRgK8Kff jnCT+wvq9PSaicauNccJAsAoskTV6bt1nqwlEMqSh7p6et/prx2OKQ8xNbllaLysPp9k EcOZ5JY0bIBuX0xYnT6ojpybjm4ZgZZFLVjgv3Dp/KC+aQkgjXCo/laQY5cgspaGwEtR JTmf7YGQzzSxGLycO1o9krwbap475UrwvevzsnbnLe99VIquR0Nu9LZSwi1A76Kch+Be 6Uhw== X-Gm-Message-State: APzg51AvBUTuCireyYgIP93CQBDLYoyycU6EhQUacU8TO0hzeOAOx+W2 JaApVN2+DE3WYnPbntSm6/cXXg== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../devicetree/bindings/remoteproc/qcom,adsp.txt | 2 ++ drivers/remoteproc/qcom_q6v5_pas.c | 12 ++++++++++++ 2 files changed, 14 insertions(+) -- 2.18.0 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}, { }, };