From patchwork Sat Jan 7 12:08:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 40387 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1270681wrt; Sat, 7 Jan 2023 04:09:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXt8aier+tp+BCXat2Rjf2Tb8XHHBlBlEohS6gOjiRqywVoJqAuQqTtXdGMgG474Ubsl42C4 X-Received: by 2002:a17:90a:e513:b0:225:fb71:efc1 with SMTP id t19-20020a17090ae51300b00225fb71efc1mr41767219pjy.0.1673093387762; Sat, 07 Jan 2023 04:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673093387; cv=none; d=google.com; s=arc-20160816; b=kC1NC/qR1Pf0HVLV5oM2eUJkFxifaiVKQIMOJV7pTnMzKfO9sjjyoKzPQOrxl7uSO+ nnJSiWY+KiY/h+izNNIHfexDSLZnaNmYGiJvwnqHmWzdy6ZSkHVHQ1QndxQl6Yrp6rUr WVn4QAhMLq7TujGxZdFdmYxzJEFV136cH6TGs/attBF1OizVunumGpZck91Nlq/SysRJ ePWj9JKxa82/mfYklFSgT+BjmIG2xIC46y5Jw41uFRC3vKgzgZ2Zi0/+heO93X0TICW4 259kSZMHMkKWoMLz8Q4hjiwF6h9OSQJokOk5Nlb1cTHilPQPA5j6rN5AMqZ7y7mdyHUh u9yg== 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=XW7RLQwSsuJOklNws0vv7F30PK+Xw6g9m1ThmRDdI/Y=; b=YNxiFuT8/QgVh+bGrxO6DXax9ImTues04DyiSWyWS962cgzomuEqskxxdGxq7f7TiJ vjiMqfeltjocucIm2IxNxm1eFpo4wc+avWRrdxQ6Mc03cDWpnV6BjOuuQq3Sf7OI1xME G7y4sam7U/g5jg7aQe1PYJUdLc53Z8ofc0wbWeGglYJaGScFYseMh+dFUT5j6LeFUZHs MMJxtaowXCNHVUI20coDC9iHxN4a/Wx+2J9F6lOOCtOEWMmwianPTOFyKySz4fCo3VK9 dsHJlqymGjY61mvXvIEYF+SVknG8ci/E25VC3MpjeflRzmw/gavTdBIlEMNlsZnP9YIb ypmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=akuFM2gI; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6301c6000000b004ad05ddb1d3si2728222pgb.827.2023.01.07.04.09.35; Sat, 07 Jan 2023 04:09:47 -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=@linaro.org header.s=google header.b=akuFM2gI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231911AbjAGMIy (ORCPT + 99 others); Sat, 7 Jan 2023 07:08:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231706AbjAGMIo (ORCPT ); Sat, 7 Jan 2023 07:08:44 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E4F5C914 for ; Sat, 7 Jan 2023 04:08:43 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id q2so4070283ljp.6 for ; Sat, 07 Jan 2023 04:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XW7RLQwSsuJOklNws0vv7F30PK+Xw6g9m1ThmRDdI/Y=; b=akuFM2gIw7qAdEFk8SMz8dhvgq4NjaWtWXEhBNM0mWVr6cN+I+JP6h63Mbnnniuf1E UCPNjXlIbhlO5wpaP53Ico83zc7dnJgMzqp+f24GqJKU0+Bta6cSGSkdKlUq/tvlWmcS MtvXph84H2gK0iLWD0QvhDe7Gr4iQr5QhwSnuRyzRoR/LXoH+Eh3r2sfAkekDdvr6hQv AoSCB+zd1sk6c5h4aCQjrXe+dpW4YuHPG5WvggHzhQEWodtJWX0A3YqyuwabxzceSM74 kvJmf2BMWiE2yaHKbwRRDFfYft0t6qWVVoD+j1xSRHOhJNgkxjTVGPmgYf74FTs09hmS w2gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XW7RLQwSsuJOklNws0vv7F30PK+Xw6g9m1ThmRDdI/Y=; b=UbhMVTwHsdQtkZ2jYlKRAfW7fgRhfyxm5GIUk9Gp/fR7K/HQJj9g90ZRx3oxkA+DDI 47GGgzFg4EHjeLdMqDLh8TtF8I8hU2lj2NI2EUCurRqoMNDmZg16mr02UeW0SnYKBeV/ 4ysN95iXY8D/iO81rxJXTgm53JIFId7euMScwcQcGXFJjyOX4K5Ig0YR+J4jYzv76xSe wx9E+LdkoHAIly6QvpguwpsfAgZuREo7bsjN/blXlr8NDbH2FsmZX2+PTfLpuADrrAyv LQwDorBuxk30DsI9OIVvxWQHxzWK/78EGoZEzAjoTb2MC0uRTCMEcxj5ot1S6DSqvt1H xlSQ== X-Gm-Message-State: AFqh2kpsk/kkIMLsdjLyFwqGsz5QJrdVKTjUwwGSxBG4z+8AJbd6vgAx vo7Qc7xXcoL/ueANRE+H92AtJA== X-Received: by 2002:a2e:9385:0:b0:27f:fc5c:bf9c with SMTP id g5-20020a2e9385000000b0027ffc5cbf9cmr4590798ljh.26.1673093322339; Sat, 07 Jan 2023 04:08:42 -0800 (PST) Received: from localhost.localdomain (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id h14-20020a05651c124e00b0027fd474e7aasm340858ljh.74.2023.01.07.04.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 04:08:42 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] remoteproc: qcom: pas: Add SM6375 MPSS Date: Sat, 7 Jan 2023 13:08:38 +0100 Message-Id: <20230107120838.1903498-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230107120838.1903498-1-konrad.dybcio@linaro.org> References: <20230107120838.1903498-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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?1754365571790339120?= X-GMAIL-MSGID: =?utf-8?q?1754365571790339120?= Add a config for the MPSS present on SM6375. Signed-off-by: Konrad Dybcio --- v1 -> v2: - Drop now-removed has_aggre2_clk drivers/remoteproc/qcom_q6v5_pas.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index d8a4ecec8535..10eaef85816d 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -831,6 +831,21 @@ static const struct adsp_data slpi_resource_init = { .ssctl_id = 0x16, }; +static const struct adsp_data sm6375_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .pas_id = 4, + .minidump_id = 3, + .auto_boot = false, + .proxy_pd_names = (char*[]){ + "cx", + NULL + }, + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, +}; + static const struct adsp_data sm8150_slpi_resource = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -950,6 +965,7 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sm6350-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sm6375-adsp-pas", .data = &sm6350_adsp_resource}, { .compatible = "qcom,sm6375-cdsp-pas", .data = &sm8150_cdsp_resource}, + { .compatible = "qcom,sm6375-mpss-pas", .data = &sm6375_mpss_resource}, { .compatible = "qcom,sm8150-adsp-pas", .data = &sm8150_adsp_resource}, { .compatible = "qcom,sm8150-cdsp-pas", .data = &sm8150_cdsp_resource}, { .compatible = "qcom,sm8150-mpss-pas", .data = &mpss_resource_init},