Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp355128pxr; Sun, 10 Apr 2022 17:18:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUWfRLHJxFwr36jpcEX8KgyfwmRn8Lrp0v5Hg/9lkDlvep1LFrzgd4umbPVN5i+69cjMxK X-Received: by 2002:aa7:d682:0:b0:419:3b78:e489 with SMTP id d2-20020aa7d682000000b004193b78e489mr30933141edr.372.1649636320519; Sun, 10 Apr 2022 17:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649636320; cv=none; d=google.com; s=arc-20160816; b=KnqbqKT1G4x5iXhKwuvxayuLqrZnYMc2jUB7FLGzjTpGb2qbfoZiZhgDB1ICLl4/xA OfZzGKDFkq3sLfm3umVfee65K9spbnSeV2tqoHLFIwZ7oNJMtJmywug4FkeB6cexIAp6 28D1yixfZoBzHZePIrRySqIRblGJB39fZ83N6auNg+//GU+CaTgyR2xfsFo8UMr6c1BZ /NI4KKFtbJLnB491t8vp70ILkyWMIgc1zwHHh+FEDrXf3aN/kf1Vab8R/p/aNv8Mdg2i wwPyr+WIjfy/IcwJJIoPK189mcWBfzElj9e4msD5RmyButI1bYPDEvp6reccIizevqPV fDlA== 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=Qt4fpeQsguypsoyfy3a9PkXQSuRKCXQubOJF0CE6T8I=; b=0WsQ0VdXKQVpsPchU92io5j5IpA0vWFwXQ/hGx5Eejq47F1lTI920mR8vH/1p3NAPA Z0gpoD6my8MGNTCP0Uc2621TV5fIbKOxkPYz1TiXsjYvbwKpyic5nJ3Q8VfUZG0P+tkC 92mN1URJBNUm2xUHNFj51S4f3fBsKseDLRS+KWNoYRFABo1KFVsiWpxQ82hzLftizYL9 7Uug1yRzgP5/lTLNhGluR0xa67U4F/TRrHGlWofgOLNojFV0VNuEODRM1akSoY5/tun3 N/cHqugX0ZoPVPVICGWVpwYd4cVMyNdxG5F0rnCVSRpIpyV9HFGQC9qxXkJ9xACF/zwM /keQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=umxXU2MV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020a17090690c100b006e86e6dd523si3973110ejw.99.2022.04.10.17.17.53; Sun, 10 Apr 2022 17:18:40 -0700 (PDT) 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=umxXU2MV; 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 S239951AbiDHWFd (ORCPT + 99 others); Fri, 8 Apr 2022 18:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235111AbiDHWF0 (ORCPT ); Fri, 8 Apr 2022 18:05:26 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94F0EE2F4B for ; Fri, 8 Apr 2022 15:03:21 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id k10so10263127oia.0 for ; Fri, 08 Apr 2022 15:03:21 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qt4fpeQsguypsoyfy3a9PkXQSuRKCXQubOJF0CE6T8I=; b=umxXU2MVecH0RMOa+fPnpVirA5rLgsKZR2ALu13dzJoB22JoUEuuXTYpuJPzfy9E7P YOXBWCfL/ysIobPcG2/9sgeo9Lx9B8uL+qSgNF8HLHoMb4xRMF9jcfy5+ODDgqK3iEHE qbCcExxoQ3xdSwXicL6blpFxZd+FqrrteSZsjDMi1wjmkMzdLJAnwyLYEAqese5trw2C Jha3aYNC4j87DdMy1g7r3KZE1LuQHcdIs3P8js5JtDvITHs5Ki/fmc/zlbi3sqBT/bZ0 W5Wa6AAfRJXSGfdye7M9jZKNqO+F6zaDk4Vdmypa9MNr2djOs8HPsDl6Yh87ZvPtoQZ2 2dzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qt4fpeQsguypsoyfy3a9PkXQSuRKCXQubOJF0CE6T8I=; b=rufzxf25N1DE0GHj/OQhk/GnNQ6hK68z+G1SuAsxFh2ppgj3IQ3oGzvwD/ArYIKUVu xeLR/MCA1289kG9e5CDS3kEc6FyUfZP7V+n+5TIowSC/z81r/ZUPTFg/TMxrz0E7j2ZB 7B4W3CjyMPmmT6snLnOtdRg+CTXUfASo9eiu7veKJjJXXWoTA68Kdai+lOZPZgBuCx2N sPHM+loVffl/oMuhi4r8QhJt0ayoXiIeaFfcWhbvBsJ47PiaonP7j7w6mQXujvQYN1hK wmDtGnuEa9wHEbuPmKMHRME9BAAXD84xzHEUkv+f6LhytdQji/Y4iK1IxQ4AZgfoc9R0 OdSw== X-Gm-Message-State: AOAM5308GEJKUEUtrguQhkjTlUa9QMTQHaruJ0Myn+IzTkoGSEmJAhvT 4GVUMXp71t54sPa2P4+7sp6Wtg== X-Received: by 2002:a05:6808:142:b0:2ec:aa67:e479 with SMTP id h2-20020a056808014200b002ecaa67e479mr841681oie.282.1649455400954; Fri, 08 Apr 2022 15:03:20 -0700 (PDT) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id d1-20020a056830138100b005cf2f29d89csm9212635otq.77.2022.04.08.15.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 15:03:20 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Mathieu Poirier Cc: Rob Herring , Krzysztof Kozlowski , 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 sc8280xp remoteprocs Date: Fri, 8 Apr 2022 15:05:39 -0700 Message-Id: <20220408220539.625301-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220408220539.625301-1-bjorn.andersson@linaro.org> References: <20220408220539.625301-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Among the subsystems in the Qualcomm sc8280xp platform we find an audio and two compute DSPs. Add support for controlling these using the peripheral authentication service (PAS) remoteproc driver. Signed-off-by: Bjorn Andersson --- drivers/remoteproc/qcom_q6v5_pas.c | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 1ae47cc153e5..06c6dc34f2e0 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -704,6 +704,36 @@ static const struct adsp_data sm8250_cdsp_resource = { .ssctl_id = 0x17, }; +static const struct adsp_data sc8280xp_nsp0_resource = { + .crash_reason_smem = 601, + .firmware_name = "cdsp.mdt", + .pas_id = 18, + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "nsp", + NULL + }, + .ssr_name = "cdsp0", + .sysmon_name = "cdsp", + .ssctl_id = 0x17, +}; + +static const struct adsp_data sc8280xp_nsp1_resource = { + .crash_reason_smem = 633, + .firmware_name = "cdsp.mdt", + .pas_id = 30, + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "nsp", + NULL + }, + .ssr_name = "cdsp1", + .sysmon_name = "cdsp1", + .ssctl_id = 0x20, +}; + static const struct adsp_data sm8350_cdsp_resource = { .crash_reason_smem = 601, .firmware_name = "cdsp.mdt", @@ -861,6 +891,9 @@ static const struct of_device_id adsp_of_match[] = { { .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,sc8280xp-adsp-pas", .data = &sm8250_adsp_resource}, + { .compatible = "qcom,sc8280xp-nsp0-pas", .data = &sc8280xp_nsp0_resource}, + { .compatible = "qcom,sc8280xp-nsp1-pas", .data = &sc8280xp_nsp1_resource}, { .compatible = "qcom,sdm660-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sdm845-adsp-pas", .data = &sdm845_adsp_resource_init}, { .compatible = "qcom,sdm845-cdsp-pas", .data = &sdm845_cdsp_resource_init}, -- 2.35.1