From patchwork Sat Mar 25 13:21:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 74906 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp408441vqo; Sat, 25 Mar 2023 06:27:15 -0700 (PDT) X-Google-Smtp-Source: AK7set+CjR0g/9nrivSmsMvhFQfZrH+S3yAnhmyZiSdsRgccSGXuOq7e5lYFLxYufL0OBYGBu2ut X-Received: by 2002:a05:6a20:3949:b0:da:e9fa:9c29 with SMTP id r9-20020a056a20394900b000dae9fa9c29mr11218341pzg.26.1679750834912; Sat, 25 Mar 2023 06:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679750834; cv=none; d=google.com; s=arc-20160816; b=jfiUtV0oey6dXmarVVpZ5ZzECRgClXzgLbTjHimMiechgPh1xYg6mlPo/PhzCkVd34 HtgfR9nqCLPwEqEhlfcjHKgchhiE79xyndEO47ekeY1flnpb1W167Mf9ui19ACoj74sW aAErg1GYecj1TOHpnM4dL/I6cjaw2GrEa0JL0LBHMXuYAYda2yn9E5eY0Uhp0G2OOfll zYh70wRjZwyFPTMNKBaDkCpaJ1UVACTEPD3MyE5gBSSg2rKNRL6MSaoGaI6HDpjFhdM1 wBceBCtDpB+yYYOmx1bm5s7yQZZ9/dxxKUNo7ptCkecvGNpVjXnmxda/uxvkelRTqqgi U6gA== 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=bF9VsuGzSoYgIieRbDoIsSdRfKP285EwWx3I2yVBs9g=; b=Q8i0H83nJCuZjQ8GNxGlw8/67M78QImw3Kmtn4y4bmlATSUAG3cN9MCekazExhjdJL oKddOd2oK+xIgeMkEmbO8Y9YFpl8Liqo+svBjAxdjkeneLY4FcOop7H8/PJM+k8BrwPK wqOUNmcMezyFbpfydazKjwR+LolgN+KGl4iePczUPaxIxl4+qAdAVlTzhsHs1CU/Rvc+ hlqKc3bnYNzKXCRtYkOW3yhQK5lXAebAvKgn+M6QAtXANWanYHgs37Wt3WD+6K9dcRRC J2enIHuLHHk5hStjBFQjB7dZnmRnYDWPGD2zcNzHa4YeoiBeUTrsXA3gI6dx+neDR1E2 tXCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=0L+bubSx; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a636b05000000b004fc1f5e387esi24265481pgc.817.2023.03.25.06.27.02; Sat, 25 Mar 2023 06:27:14 -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=@dylanvanassche.be header.s=MBO0001 header.b=0L+bubSx; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbjCYNWR (ORCPT + 99 others); Sat, 25 Mar 2023 09:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231406AbjCYNWP (ORCPT ); Sat, 25 Mar 2023 09:22:15 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F8661422E; Sat, 25 Mar 2023 06:22:10 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PkKVh2vXdz9sTC; Sat, 25 Mar 2023 14:22:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679750524; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bF9VsuGzSoYgIieRbDoIsSdRfKP285EwWx3I2yVBs9g=; b=0L+bubSxdsh+WXrb3qbDJIL4NHPHUjgiEPm6js2diONIt3HaZMa8TjOFa5klnbqe7qAqfP kkutaBubL8CY79ZyGYKpiwui4ExLraYNFdstSgiWsiVGlHFd2PqB5CWy25wCfgofi3YNCJ rpHcH6QVhL0xM061zJrY46dFjP2PgqwQ1gDBXBceKSYY0G8uB0F8+dd9CUI/akd6Ybm4Je KKSfkFmbT0G/PVsHALNdpsiXG51c1QCx+b4XrB58IfHp+eZoRbbNlg0P/vXWuMkzp1TJpJ mye0KDog8HqeYsxr5gvHsBhHGTwIY9Sb+cWpkjLagwS5neu9WszrUptU3LVpNg== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH 1/2] dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible Date: Sat, 25 Mar 2023 14:21:16 +0100 Message-Id: <20230325132117.19733-2-me@dylanvanassche.be> In-Reply-To: <20230325132117.19733-1-me@dylanvanassche.be> References: <20230325132117.19733-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4PkKVh2vXdz9sTC X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1761346411654834520?= X-GMAIL-MSGID: =?utf-8?q?1761346411654834520?= SLPI DSP remoteproc on DSP is defined by the 'qcom,sdm845-slpi-pas' compatible in the qcom_q6v5_pas driver. Add this compatible to the devicetree bindings. Signed-off-by: Dylan Van Assche --- Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 643ee787a81f..175be01ecd1c 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -26,6 +26,7 @@ properties: - qcom,sdm660-adsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas + - qcom,sdm845-slpi-pas reg: maxItems: 1 @@ -63,6 +64,7 @@ allOf: - qcom,msm8998-adsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas + - qcom,sdm845-slpi-pas then: properties: clocks: @@ -104,6 +106,7 @@ allOf: - qcom,msm8998-slpi-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas + - qcom,sdm845-slpi-pas then: properties: interrupts: From patchwork Sat Mar 25 13:21:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 74914 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp420688vqo; Sat, 25 Mar 2023 06:53:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YDTKrr1VLIzqQGP/5vSEmdrdAlhfjtpEbO6WmVybOzxZh0/mgVi6B+u8hPrR/EzLLDNak8 X-Received: by 2002:a17:906:a117:b0:939:fb22:c4c7 with SMTP id t23-20020a170906a11700b00939fb22c4c7mr6903392ejy.43.1679752417494; Sat, 25 Mar 2023 06:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679752417; cv=none; d=google.com; s=arc-20160816; b=xBLs1XigtOZEAF8NoqFm5krDPccyepsqa4svO2O/FtyDq4OK3K3B1lF4llAIfKso6t HOpFeaPpt6bABafLs1nN9WMDmwXxHgm/CdRV/hUcCwHjAV0B0yNW64MOTBhx3YWHv15D lts8WGVwCPY1LBQije1iM0vuuSKpJV/kt695Z0SIEu1hLZYfKYd6FfxGABU5YXsi127K sYMhc7S9MSZ9POv3gLxnLsET8Hhblg3WPXi6KABCq7WaDjfZT8uU+Zyct346LqauzbEd S2Q70I/AYfXoMiJ9iTwnSvFKg9I37pjrsH16DgZcXIlzImOHeN7CVtf7OdYJJqznluvA apJg== 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=UYNhSu+2Wobyn2s4WHdqzJN3u63ahHSl1LNIJlpGGUg=; b=UbkLHt++7e/DNXOdg7mI6UqnORj7m/Q9CwMAESBeNinG+MdHFtPVAd1ElBg4UR7tjV JjZu064OxYPmjpWNV2s44FIrFENQMdsPFEJAvWxIvZZ+cU36BgrJ7/ClYo00mNtpfZRl PVaC/ymcAA45putqUu25ISQS7o5eE+V+BBZ4G26qW8zZgbF1eqq53RU/rLK1ZpJsBfNh ocSARiGYlzuC1l58n9/H5Ayaf4ThctmuKH4afz4BsNmHatWq7Qh1c9Z1DYAOnkRfSbZF UDipYRMvuoTrkPwDTTHQFbI+gWBEAF1/MrkMwdnMAXYrnjpWwDnIvrqQagW9PbFSP3RU HV0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=Rzyx7cns; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a1709064c4700b009332cc3b334si18524018ejw.59.2023.03.25.06.53.14; Sat, 25 Mar 2023 06:53:37 -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=@dylanvanassche.be header.s=MBO0001 header.b=Rzyx7cns; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231766AbjCYNWV (ORCPT + 99 others); Sat, 25 Mar 2023 09:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbjCYNWS (ORCPT ); Sat, 25 Mar 2023 09:22:18 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 903CA1420A; Sat, 25 Mar 2023 06:22:11 -0700 (PDT) Received: from smtp102.mailbox.org (unknown [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PkKVm1dnlz9sZ5; Sat, 25 Mar 2023 14:22:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679750528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UYNhSu+2Wobyn2s4WHdqzJN3u63ahHSl1LNIJlpGGUg=; b=Rzyx7cnsEbFP7SlNzw6ukZzDPuRQjOTuxz6t1f+ECAfdkGaNtEOXRhCcXrYQXoawGFvRZC j5GpOa+AsbCZISbEkIZS57Qg61czKXJr4bwMb29xU9glOMe6S98m/HXyZP/FVuzaWlsY+8 tzVEsoinrw8dHYIjexNZjVXXRTOqsAVQXFcZHBCBetQiyO1Btu/WTbsTkTmlaPh3NzS/Z8 Pwi9v44yKJDAN4NTLm0hBdLKf7jq1CqUvhMGqGqHllly9uYAVAAGjk8s/WOFCwPwhXSdTE /n7OZv6jQ/S/iXOdyGel7xn7lpPUb4eapTHgESUSUV8AqvXa+t3sAiV2faOM8Q== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH 2/2] remoteproc: qcom: pas: add SDM845 SLPI resource Date: Sat, 25 Mar 2023 14:21:17 +0100 Message-Id: <20230325132117.19733-3-me@dylanvanassche.be> In-Reply-To: <20230325132117.19733-1-me@dylanvanassche.be> References: <20230325132117.19733-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1761348070977692642?= X-GMAIL-MSGID: =?utf-8?q?1761348070977692642?= Add SLPI resources for the SDM845 Qualcomm SoC to the Qualcomm remoteproc q6v5_pas driver to define the default firmware name and GLink edge name. Signed-off-by: Dylan Van Assche --- drivers/remoteproc/qcom_q6v5_pas.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index c99a20542685..d82b6f4bced4 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1028,6 +1028,22 @@ static const struct adsp_data slpi_resource_init = { .ssctl_id = 0x16, }; +static const struct adsp_data sdm845_slpi_resource = { + .crash_reason_smem = 424, + .firmware_name = "slpi.mdt", + .pas_id = 12, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .load_state = "slpi", + .ssr_name = "dsps", + .sysmon_name = "slpi", + .ssctl_id = 0x16, +}; + static const struct adsp_data sm8150_slpi_resource = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -1201,6 +1217,7 @@ static const struct of_device_id adsp_of_match[] = { { .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}, + { .compatible = "qcom,sdm845-slpi-pas", .data = &sdm845_slpi_resource}, { .compatible = "qcom,sdx55-mpss-pas", .data = &sdx55_mpss_resource}, { .compatible = "qcom,sm6115-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sm6115-cdsp-pas", .data = &cdsp_resource_init},