From patchwork Wed Nov 16 10:20:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 20877 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62086wru; Wed, 16 Nov 2022 02:22:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf5F2MteoYincBzPJCOvjIX2MMefKRd4qmE3ytRdu7lIqTq2knsjMK9BPqPLH/SMBe02vr+n X-Received: by 2002:a17:906:2f11:b0:78d:cc87:b1d7 with SMTP id v17-20020a1709062f1100b0078dcc87b1d7mr17488336eji.543.1668594142126; Wed, 16 Nov 2022 02:22:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668594142; cv=none; d=google.com; s=arc-20160816; b=ttagEJEFfcyTARJqekbJTUy92WsHJBh+WvST0ifWCCv+nCNh0KzXnHPZF54ZHwksnX Z/yUg/l4Md+qmv60hShSyTjQMsDiQ0flj/334BejL4OwNO5MYjjG1+rhQVcbIsjPv8S5 uNk/ZP0yNBoGaPoVcT/A4AlWv2ugzbQW8NTzijMd14LYQcGkc0uhefhWgH1GQgr14OQ1 64RYqsybgBwiutShyZC6FtgGlkKN6dYqrwveXJZ1A8uaOR7fWcDxbSXBVZQJzQkRrFkV p1Zw+vVR0U6Fiq3O8BJtmPKsNpiGUf7MQoujOHV1XTNkY8ob92z8JUZK74X18cMMMUXU uvHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=ibv+5YEHVAYxDSspsvnfANXTqnasTlWYJgau3UGpbZg=; b=qeknZzxh98bV5gru8CbOO5OvXej76bD0vF1DQpykvGsi0S3RUYQtUjBiffOZnP6QTV z8nuCjrwL+/MBdTNN87a+pUJ9TF4/MvNPBaExDS0Kd+A51VUZkPBz2XNZ1iYLkMc2vBe Mmn4o/SJmJdhsOq3jIf62rc6yahkhhnSJA7kHCYCUHVy6KcK6gpnFXM6EseSZBJyog/E 4j9VOpZUYc6nIjSfrBGnnvmSqQJ/WWHKT/gIAbfd5SwnGuL6DrfStV0P/xuDhABOi9Fa RSg2SLKy8vTTyHs9qRyaRlNKM3Es+5jmBqDIm8i620p+7grlRgkPLYaUM0HvXsEO1g5z a1Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqwKO0I4; 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 qw32-20020a1709066a2000b0078cc4a8a956si12952226ejc.881.2022.11.16.02.21.58; Wed, 16 Nov 2022 02:22:22 -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=oqwKO0I4; 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 S237203AbiKPKUk (ORCPT + 99 others); Wed, 16 Nov 2022 05:20:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233389AbiKPKUe (ORCPT ); Wed, 16 Nov 2022 05:20:34 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F8372126B for ; Wed, 16 Nov 2022 02:20:11 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso2776734wmb.0 for ; Wed, 16 Nov 2022 02:20:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ibv+5YEHVAYxDSspsvnfANXTqnasTlWYJgau3UGpbZg=; b=oqwKO0I4oUXU/WX3HEjhUkL3jbBmIiKg/61u7OXDVcOxweWRas/AE/BwkSrn/jpxdg UI5PEwwWlHkBh6grH+IYllAJBT51uRmLx68VUqiKXVjezJEfvOf/EZbzmKPxgIDnRiRs 4ZJQSBLkDX3p5VjaDbR1HM9eT/jAgRQSt8Tg5rJvTFNDRcCAdKjMkGzoSQNjdBrkPHs7 8UB24gSxoLXdgy/StL/IWW8R43CeOe61zvZy0hC06POFhZjYhKkKZBGUYJTdt+EuXEn5 yXoGZWRKL7bed5AbgsnSGCQ36nf6WBV72EcnlIFyiU3u3rGrc3+n7asKEtQwWik6IxeU uARA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ibv+5YEHVAYxDSspsvnfANXTqnasTlWYJgau3UGpbZg=; b=ZRytqw5Vg/W7S1u5J9MH7eYEpLt34MBtOU4uqmOBMC4PKahknONs+Z+/KSZ8qedkuO 1A8/pgaXNgv0zkcu2Ad4asDZQ+6i2BOQO7GffZLCMjsUKODf6usFmpD27nHkwf5GQXaT XWbBcOOV4Yz4xDJM29fyGgUroc17/Se8vf4UYtl0MR3XrvMyXWFScptSsFxkextBOOOR QjPi4Y35PLaq2EBf0ywNw6HqcX+MB0S4iRgZQL7BACBq3WS14Ba8WFFv2AkUAIm47HCi +SgvP+wRNfOISbCsWqsdZ0OrwV4omW1fS8whEw6IQrXfl1V+MpLM8F5MiXZdUPnzOlPj BPUw== X-Gm-Message-State: ANoB5plTuFd1AaYOA39AjlydN85b+D8EaQR3EJ0sDK11LPW7sCfe4op4 XPA0u9zyhOi1GwTbQw4CPaoNLA== X-Received: by 2002:a7b:c04d:0:b0:3cf:a8a5:63ab with SMTP id u13-20020a7bc04d000000b003cfa8a563abmr1608489wmc.101.1668594010071; Wed, 16 Nov 2022 02:20:10 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id l18-20020a05600c4f1200b003c6f3f6675bsm1709900wmq.26.2022.11.16.02.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:20:09 -0800 (PST) From: Neil Armstrong Date: Wed, 16 Nov 2022 11:20:07 +0100 Subject: [PATCH 4/4] remoteproc: qcom_q6v5_pas: add sm8550 adsp, cdsp & mpss compatible & data MIME-Version: 1.0 Message-Id: <20221114-narmstrong-sm8550-upstream-remoteproc-v1-4-104c34cb3b91@linaro.org> References: <20221114-narmstrong-sm8550-upstream-remoteproc-v1-0-104c34cb3b91@linaro.org> In-Reply-To: <20221114-narmstrong-sm8550-upstream-remoteproc-v1-0-104c34cb3b91@linaro.org> To: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Andy Gross , Manivannan Sadhasivam , Amol Maheshwari , Srinivas Kandagatla , Rob Herring , Mathieu Poirier Cc: devicetree@vger.kernel.org, Abel Vesa , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.10.1 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=unavailable 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?1749647770793640864?= X-GMAIL-MSGID: =?utf-8?q?1749647770793640864?= This adds the compatible & data for the aDSP, cDSP and MPSS found in the SM8550 SoC. This platform requires the "Devicetree" firmware to be loaded along the main firmware. Signed-off-by: Neil Armstrong --- drivers/remoteproc/qcom_q6v5_pas.c | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index e79a5fcbc986..15e740815da0 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1054,6 +1054,68 @@ static const struct adsp_data sm8450_mpss_resource = { .ssctl_id = 0x12, }; +static const struct adsp_data sm8550_adsp_resource = { + .crash_reason_smem = 423, + .firmware_name = "adsp.mdt", + .dtb_firmware_name = "adsp_dtb.mdt", + .pas_id = 1, + .dtb_pas_id = 0x24, + .minidump_id = 5, + .has_aggre2_clk = false, + .auto_boot = false, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .load_state = "adsp", + .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; + +static const struct adsp_data sm8550_cdsp_resource = { + .crash_reason_smem = 601, + .firmware_name = "cdsp.mdt", + .dtb_firmware_name = "cdsp_dtb.mdt", + .pas_id = 18, + .dtb_pas_id = 0x25, + .minidump_id = 7, + .has_aggre2_clk = false, + .auto_boot = false, + .proxy_pd_names = (char*[]){ + "cx", + "mxc", + "nsp", + NULL + }, + .load_state = "cdsp", + .ssr_name = "cdsp", + .sysmon_name = "cdsp", + .ssctl_id = 0x17, +}; + +static const struct adsp_data sm8550_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, +}; + static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,msm8226-adsp-pil", .data = &adsp_resource_init}, { .compatible = "qcom,msm8974-adsp-pil", .data = &adsp_resource_init}, @@ -1094,6 +1156,9 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sm8450-cdsp-pas", .data = &sm8350_cdsp_resource}, { .compatible = "qcom,sm8450-slpi-pas", .data = &sm8350_slpi_resource}, { .compatible = "qcom,sm8450-mpss-pas", .data = &sm8450_mpss_resource}, + { .compatible = "qcom,sm8550-adsp-pas", .data = &sm8550_adsp_resource}, + { .compatible = "qcom,sm8550-cdsp-pas", .data = &sm8550_cdsp_resource}, + { .compatible = "qcom,sm8550-mpss-pas", .data = &sm8550_mpss_resource}, { }, }; MODULE_DEVICE_TABLE(of, adsp_of_match);