From patchwork Mon Feb 13 18:52:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 56468 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2515042wrn; Mon, 13 Feb 2023 10:57:43 -0800 (PST) X-Google-Smtp-Source: AK7set8gyFYY5+rw2YKLpZXvnNd/aRbojtcgq9vsUN2n79IoiaiV+K5NSJWKRoEbUAS6Ng3lm16x X-Received: by 2002:a17:906:6b08:b0:887:8f6:c1d7 with SMTP id q8-20020a1709066b0800b0088708f6c1d7mr24970744ejr.38.1676314663595; Mon, 13 Feb 2023 10:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314663; cv=none; d=google.com; s=arc-20160816; b=X+d5X7iCwv7T/85cVKa47b9rIf1N22UpmhGcfAWvznZD/SoHCBCr5794d/NdxzlZAt /Rcucg5th3jZ2slpC/5clW79XerTciSTEPblfKbk9MJXpKq7aW3hNSkBHKR4evbiMqh1 TIu3H6oKHsW6ufqp9i25mOVCcybUR1tTtAmzI1iaXvwzAj8dFxireQr23f6y+xkq26XN cO2eVWfvvZh1Kr8v0bhcgpPq9wfM2zeVZfFKDdmk44g6LLfi9XPAF9LSkK9dN1DF4XVK mydSL1ZHhiw9P1gBxUM/20CjzNYDw15/rCVYK+TF95eaRvUAAyX3JdafMi6Zc64DQw0g P3xA== 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=+CUVIAwAezq4xY9Qn5yjZA/WgqrKoAIA2eciWmZPWro=; b=BxR1zY3+VxvZF1XA9VxXwDU4YgxAdZkgaJr3cQCjk5CMJvxkv64GSWZdglbnStVcAc z9o8sDMCGRjr/wlAyLABGjE7Yq5Ax8enFaDEmOM/VLQjcPqGZ52GBP5Y2dW2SgGZyrRB b+sIlwCpES7p7fdJPKYFBhF/HL1JZ3aYHf3Bks831mw3sN7C7Wc8RLoX1yCw/mCjaZJ7 glxXQClQR//ZamWZcsBXMt8Nir9pa0p4OvZQhboa9Kf0+RHvsg/bvRnUEN4zbS30Jepb sLshNNTOhkh7cY1AH1NDBaI3CQnEJ5+RrNDWqeYjlQ7PDmIL4xTbfi1jlqIFl8zIDET9 rINw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NOToQNNf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a170906739300b0087bd2c8a4e0si16770897ejl.971.2023.02.13.10.57.20; Mon, 13 Feb 2023 10:57:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NOToQNNf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjBMSxs (ORCPT + 99 others); Mon, 13 Feb 2023 13:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjBMSxZ (ORCPT ); Mon, 13 Feb 2023 13:53:25 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25630126E5; Mon, 13 Feb 2023 10:53:23 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31DFR68p005995; Mon, 13 Feb 2023 18:53:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=+CUVIAwAezq4xY9Qn5yjZA/WgqrKoAIA2eciWmZPWro=; b=NOToQNNfa2kCb1/9vGxNlabYgZnTEjcoUpQgJHuSppCwHO0K+ZsgCkEixUUrQlEoi7Tn eu3HBuyn5lfklwmrSLS3Kci5rS9HTJdK0nuUK8N3MrSegQS9uTzAKVqhq1onXvGcnTxv ibkN3vQMr8QIVX5HBfnFV5X4aXCnlLPtq4FvYOiskYBNKewNUCZL00Lfp7gIBgClNDCX aa1qegJQ5v9W6gjC+FOg/L4SmcXvmQRiplZfUzQGYy1/uby2r6XK+Rpn3nW1tzPmCs1w C+5axSX2aBjPAoKsWgSHs8H5OmVn6qmtP28XnnwD8qeMe3JzIZ1k3lnbGuRHBfPyCXYJ ig== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3np3dew1tb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:19 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31DIrIOL030280 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 18:53:18 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 13 Feb 2023 10:53:18 -0800 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jassi Brar , Mathieu Poirier , Robert Marko , Guru Das Srinagesh CC: Konrad Dybcio , Manivannan Sadhasivam , Melody Olvera , , , , Subject: [PATCH 9/9] remoteproc: qcom_q6v5_pas: Add QDU1000/QRU1000 mpss compatible & data Date: Mon, 13 Feb 2023 10:52:18 -0800 Message-ID: <20230213185218.166520-10-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185218.166520-1-quic_molvera@quicinc.com> References: <20230213185218.166520-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: wAiQqZa25E3ojZa-bGsDCpid7k3hkxho X-Proofpoint-ORIG-GUID: wAiQqZa25E3ojZa-bGsDCpid7k3hkxho X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_12,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 clxscore=1015 adultscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130165 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757743324969347257?= X-GMAIL-MSGID: =?utf-8?q?1757743324969347257?= Add the compatible and data for the mpss found in the QDU1000 and QRU1000 SoCs. These platforms require the driver to complete a modem handshake using the RMB registers provided. Signed-off-by: Melody Olvera --- drivers/remoteproc/qcom_q6v5_pas.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 7a1f0f898032..1ef055b99b66 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -954,6 +954,28 @@ static const struct adsp_data msm8996_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data qdu1000_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .dtb_firmware_name = "modem_dtb.mdt", + .pas_id = 4, + .dtb_pas_id = 0x26, + .minidump_id = 3, + .has_aggre2_clk = false, + .auto_boot = false, + .decrypt_shutdown = true, + .proxy_pd_names = (char*[]) { + "cx", + "mss", + NULL + }, + .load_state = "modem", + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, + .region_assign_idx = 2, +}; + static const struct adsp_data cdsp_resource_init = { .crash_reason_smem = 601, .firmware_name = "cdsp.mdt", @@ -1273,6 +1295,7 @@ static const struct of_device_id adsp_of_match[] = { { .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,qdu1000-mpss-pas", .data = &qdu1000_mpss_resource }, { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sc7280-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource},