From patchwork Thu Jan 21 01:44:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 367800 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp226002jam; Wed, 20 Jan 2021 20:59:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzm+34O4w59J0pJ03Z+IA+RXLSuoeRGil4dkPt/+jghp+iUCcfLQuam9/GDt7H7MvEzsjRg X-Received: by 2002:a17:907:a052:: with SMTP id gz18mr800001ejc.15.1611205188705; Wed, 20 Jan 2021 20:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611205188; cv=none; d=google.com; s=arc-20160816; b=WDIunikyRPH8bv14eYk8GQ9YRf/Z2/Hsn0Dl6whqklnmfksH6eElr/PpxRShRmyf/G 4RPPMzvvZU0+aq1HY9PebOjuvy7rSLp4Lik/yvy6ZSh+jG4dlUKOOE8aUOvf7OixQwAz sQlT/TqZCih5sLguBo+ENO+24SGCBWhkS8J++AoiEnS2sTm3Rz+pxEjon95JrQDXUTXd U9RobKgOOs5rlSd17OYvXeH+dCat+Syfl68I0cZoaskIS+i3PXlb3FPRvqnjs9ILMFqM AccCmA1+1ZVAs5G723b05+PcySzZq/zolouqbfKGYfRFOEVE5uAP0NmouBPYmVIYA08S XjOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qp0XT0+UoBcR+Gi5dgLwWchPJkjtv/YFAjritEYTQg8=; b=iYmZETAq6C4djpu0gappDjyL5e8icnw0bw137aMs/5cLWQLlrN2wbBUo3Lx7/NRXz8 l51TAQZ1QLPrjKx79q6l/d78lKTVC6KtpMDi2UfjB38QUb4T+bxpz+z6gX7AW1hDFP5O Fu4ELOaG9ELmEUVM+DXj12bEk7RSEMSz6oZF1NppGAq9VDJAM+5XCw1yI/jVzBJnoJSt BqlqmwmKktXLo1Hvsa8sKzO4JRsazlj0+LlCI2stoWmexwtmgsEA0yaahRhLj/BbWX7d H3DSlTVvyCwjVY6U7LCdO9cHkJ0mJDxWyAge8Rk8AhhZecWNP3PZ1C8+/XHi6OW6sjmN wQQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gK1QE3kH; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j19si1761687edw.550.2021.01.20.20.59.48; Wed, 20 Jan 2021 20:59:48 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gK1QE3kH; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 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 S1728954AbhAUDwl (ORCPT + 6 others); Wed, 20 Jan 2021 22:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387696AbhAUBpr (ORCPT ); Wed, 20 Jan 2021 20:45:47 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BB4C061798 for ; Wed, 20 Jan 2021 17:44:46 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id x71so492561oia.9 for ; Wed, 20 Jan 2021 17:44:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qp0XT0+UoBcR+Gi5dgLwWchPJkjtv/YFAjritEYTQg8=; b=gK1QE3kHtp8QEIvI0opo00JntZ47JjasRnLUT4pcuhqDwfFeCVcjyBf3Frt1m6Jk/v 98JgcUKQdj1bA0tXXqAe2W1DzllqPVuIYS79GmNiLrUTJ1Xu+4LUbGUWh7dExLlJ/RVM TmGpPT6QeJI6UR58yvUTeUtDg3gN7dgmbKUxrrfIG9somTEHx6RVD0ihDZizxN8WTnYg S01HXxtnxrt6+rYo9NiC1S7RJbSTnfs7ESTQcZV6lCE2ztmQ+KJ2MNeer++R88jaPmlq Xdd1xd1PH7L9Y+qlbyclsNuGLU/nJ6oPlLrtoVW1uNzZ9xMSh43/55UHhx8N9KT4bae1 IxFQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qp0XT0+UoBcR+Gi5dgLwWchPJkjtv/YFAjritEYTQg8=; b=AfvqDVM/gnRFzpDfQw0Z2MVA+RkSLiBeFSVWrflncUaFy26ZGqxYsBzetEVZpZO+mZ NJ0ELF/HBvI+cC0Rrz/Ij2+/J5oxdgs2IprjJwqN/JVnT1+9QmXUjBGcqWxRwFiuaPlc iJeh6ZDxvRRiXEVDWKJl8riVvqkKtVR+E32MEu49BBaXpL89Ln4TYWj2QLsJBrZ3ycBm UeNFBvUjc+Pj/+hu8l9veZaIA0bMv4zsdKqIiUdB15DW5Dtganf3wpEafQmRrOTBvmy+ DxzmdOMZqt69cdVZQHXXmn6SMB64YGJvPeAnG+YYE1tooridfOZdwpvqO2eqkJH78AIJ /87Q== X-Gm-Message-State: AOAM532oHlcAp+irkYI2+W6G4c+NjxZsi1BaV4Bcn2NzByxNIeHPldNR Cs1ts0TfxLqhlxSa3jDTrNTH4g== X-Received: by 2002:aca:8c5:: with SMTP id 188mr4705027oii.46.1611193485882; Wed, 20 Jan 2021 17:44:45 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id x197sm758026ooa.27.2021.01.20.17.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 17:44:45 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier Cc: Rob Herring , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] remoteproc: qcom: pas: Add SC8180X adsp, cdsp and mpss Date: Wed, 20 Jan 2021 17:44:52 -0800 Message-Id: <20210121014452.1612594-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210121014452.1612594-1-bjorn.andersson@linaro.org> References: <20210121014452.1612594-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Qualcomm SC8180X has the typical ADSP, CDSP and MPSS remote processors operated using the PAS interface, add support for these. Attempts to configuring mss.lvl is failing, so a new adsp_data is provided that skips this resource, for now. Signed-off-by: Bjorn Andersson --- drivers/remoteproc/qcom_q6v5_pas.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) -- 2.29.2 diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index ee586226e438..1231980d268f 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -650,6 +650,25 @@ static const struct adsp_data mpss_resource_init = { .ssctl_id = 0x12, }; +static const struct adsp_data sc8180x_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .pas_id = 4, + .has_aggre2_clk = false, + .auto_boot = false, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "cx", + NULL + }, + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, +}; + static const struct adsp_data slpi_resource_init = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -736,6 +755,9 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init }, { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, + { .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource}, + { .compatible = "qcom,sc8180x-cdsp-pas", .data = &sm8150_cdsp_resource}, + { .compatible = "qcom,sc8180x-mpss-pas", .data = &sc8180x_mpss_resource}, { .compatible = "qcom,sdm845-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sdm845-cdsp-pas", .data = &cdsp_resource_init}, { .compatible = "qcom,sm8150-adsp-pas", .data = &sm8150_adsp_resource},