From patchwork Thu Mar 30 16:46:31 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: 77325 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1270822vqo; Thu, 30 Mar 2023 09:52:39 -0700 (PDT) X-Google-Smtp-Source: AKy350bnXXSmGutIy8RliDIa1vb2NzyH1obXnU+n88aNg8eWpb8MsloTxIO6LFNz/YQFhsGnzCpN X-Received: by 2002:a17:903:210d:b0:1a0:53b3:ee87 with SMTP id o13-20020a170903210d00b001a053b3ee87mr18443348ple.62.1680195159427; Thu, 30 Mar 2023 09:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680195159; cv=none; d=google.com; s=arc-20160816; b=y2CVGOAFY/Ot60Z0xd5v28qkxZ/A74EXccYmAaDzRJAyy1e1EF0P1YtjqUNKV1L8po AH1ggYdlV9HJVjiz2E9ltPcY2+bX835DLJxPkPkmnbgTolF4gMX/H8GYWNTKo0Grp4TQ bTRKVXlIrxxWcsbUltp9ZwuGSf0ATsNnbMfUbWtXUka5pg/LM5vi8jWsRfJdT5s+dv0I Y0ZxzwxsW019lr8QyDngBGWvXk5z7ufSzPwzn0oIG8b0DVo6YmOAhLvO4gbuaXBGn43v 4SdL7a/xD590wRqnowOIi6o9oABgNOxKGrWHx+zbXY+wf1peUd+Pi/tEfUi0DH/sP4pI trXg== 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=Dve8PXl844i71M18PxPNBWl3dR+prUxJL+7txYXI2rQ=; b=bppYAsA0naa+6qXVwr1hL2N56xqo1rraVDvPj5l7ini9rD188vFRW4S8eqKrzYYBim YUVK+zaYXUHX8bBUE/RVotqy3gfsJi2rZy1WshU78aN6IEu0e+1JeBxsAZTJDOO58equ f+3I8RVf5s3LTG3AhXhjr2+xL2If5d9PeqV6ZylGtpYz6/F4IrS0lfiXxLyR+zW7nQik ju1CXEc9Pr+GkxJtuwMSojUBUvRd92Fy46GPFbrtejsk2XFJQZsQDWaeoGnM2OX6kb4G I7CfdVIFWBwAzXe0yV6qbhT4kWZo75pw69Mub29vVjGqLef4DNKVHCCd/Gq8pNbws1dA 8czQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=SmdZ2IBv; 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 k9-20020a170902c40900b001a20333d702si19882942plk.291.2023.03.30.09.52.09; Thu, 30 Mar 2023 09:52:39 -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=SmdZ2IBv; 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 S232415AbjC3QrZ (ORCPT + 99 others); Thu, 30 Mar 2023 12:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232278AbjC3Qqx (ORCPT ); Thu, 30 Mar 2023 12:46:53 -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 26F0FCDDF; Thu, 30 Mar 2023 09:46:53 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [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-102.mailbox.org (Postfix) with ESMTPS id 4PnTpc1HGdz9sTC; Thu, 30 Mar 2023 18:46:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680194808; 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=Dve8PXl844i71M18PxPNBWl3dR+prUxJL+7txYXI2rQ=; b=SmdZ2IBvZYPY/4ZZao2qcoIF4XaCpLvUkymXfTb1dtDGSLzi5TO9NFm3LPwvji1329w9P+ dX1eHMbxtvcVd1r8vmDFA+R1vVOu8tknzkT68wsPwo0yzB/q4XukRyKXcjSlsgwHyUSFcG wgYt9DoZY9Bx8NolUYpNAeqFRCHDuzFZRp+z4M+O7TA3X1hsjW2yv/xRz05BbnPpx0hprm LsWe/lLx33cu40DGjWPUSJzdXOIm05vF+DehpcwoIfAmGg4Xqpfj/cogj3km7PVRqyZCKs GD/tS4dfE0POGBf2nC/Dp5n7k27DKHB6sJxD6pXsx2Qn4mlGcPgCuyoF5ftXmQ== 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 , Krzysztof Kozlowski Subject: [PATCH v3 1/3] dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible Date: Thu, 30 Mar 2023 18:46:31 +0200 Message-Id: <20230330164633.117335-2-me@dylanvanassche.be> In-Reply-To: <20230330164633.117335-1-me@dylanvanassche.be> References: <20230330164633.117335-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?1761812319141062373?= X-GMAIL-MSGID: =?utf-8?q?1761812319141062373?= 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 Reviewed-by: Krzysztof Kozlowski --- .../bindings/remoteproc/qcom,adsp.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 643ee787a81f..eb4a440a661a 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: @@ -157,6 +160,22 @@ allOf: required: - px-supply + - if: + properties: + compatible: + enum: + - qcom,sdm845-slpi-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + - if: properties: compatible: From patchwork Thu Mar 30 16:46:32 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: 77336 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp7267vqo; Thu, 30 Mar 2023 10:07:22 -0700 (PDT) X-Google-Smtp-Source: AK7set/rmtWammRcm5itgDqxiWGl+zpttduIWjxOFIxo5FDR8RRKBkR+mxLmqDbOOxfMhpxpRBJS X-Received: by 2002:a05:6a20:b916:b0:cd:fc47:ddbf with SMTP id fe22-20020a056a20b91600b000cdfc47ddbfmr19753288pzb.47.1680196041831; Thu, 30 Mar 2023 10:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680196041; cv=none; d=google.com; s=arc-20160816; b=zuoXylh3yb+3v6lo8U+HlYNrYygt/vJrvSj+xpiZWe5/4QK5Y6SdRVpT5SvUImqs2p wIJxgB70AZt/gYvT0bvuNeq9PD8b2iAlgSeTKVIW0I7/D5z+VC2/z8tHq8Tx36TdujK6 H74Av4NMW3Dvjc2VkFg9kr3XuenKdZJz8+B9nYTGSyqQxFxbJY6jesg5qqiEH3oovnup HZ3vF2HcFMH7nINihQ82AuZ9eg/fT3AmvRufExGm8+B8tZ2vwYJF9d5OWoyF+I62hqso n5jzMeHHM0+kfVPdsMIJ3kUJChx6PYnNIl+0PLJMFp+fifpMHLP5Pnjkh4OPDLbOI09r 9U4g== 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=uZ+dlsK3LvFYVmfHNb1x8vPNf5fkiddC6hOwcgvpDbs=; b=m6swvdZr+M/KsQbLR68bkMxkh/LZRoFDpySPNdfGStEpxiG1FM0BJY00hWHXPPNSfM /mpeZD+DxHRBz8CkoKBn7i/ujFMArzxouicb2tcQuylbsAHY7/MECK4JYpjfDxWop6ek AJduIK4bFdFcxrHIAF5KrO2YSi3cXRwH8X0v7Nz+uuRZHOCyS9oPSoFuz2uOGxt4Hsu2 GX318AoxPnnw8d8rQN5Nt0THtfYmGmQFUY4WjnHAh1Q9iQJYgq0ufd7xphejFwXTH4nR I+2SJeU80LC0GD/LsuXVG6Lxo88oWnXsAHi4ZfO+Lj4sY30EIl4rwIwTmt60VUl+3LSu JdbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=0LbtqX2C; 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 y9-20020a655b09000000b0050e60e36393si77605pgq.776.2023.03.30.10.06.59; Thu, 30 Mar 2023 10:07:21 -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=0LbtqX2C; 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 S232216AbjC3Qrf (ORCPT + 99 others); Thu, 30 Mar 2023 12:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232282AbjC3Qq6 (ORCPT ); Thu, 30 Mar 2023 12:46:58 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58BC2CDF5; Thu, 30 Mar 2023 09:46:57 -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-201.mailbox.org (Postfix) with ESMTPS id 4PnTph29Fzz9sfJ; Thu, 30 Mar 2023 18:46:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680194812; 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=uZ+dlsK3LvFYVmfHNb1x8vPNf5fkiddC6hOwcgvpDbs=; b=0LbtqX2CmtwpAb4aR1WTCa7KoLeatnZD8ka2ghbS2sUZif2G/THIq3j8GvEqidWbghUbsE r5XcBVTzYOb0Otg+JD7Jb5e880tNgK1zPqvCkckWgZE1DfkFqAMez6HmgQUXdo9xeCYAme ENCMaBYzbvkneAV0rj5sPPGDBjFntWxcQlVUaOihkWuo/StdOYm0exbZ8ZZKPrOk8s6CmG IqkiiXS4qtcImHDrd2XEo8qPODXkpP93/MU+zMdoOGyX8iSSL31vHrgdbw3gDuoBczgRyy XqTAh1OGsTIhwdqMvj7FiuBXJyWUqRMFHduH51Z9JsMG+IQBsrvo1AAEZhTcMA== 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 v3 2/3] remoteproc: qcom: pas: refactor SLPI remoteproc init Date: Thu, 30 Mar 2023 18:46:32 +0200 Message-Id: <20230330164633.117335-3-me@dylanvanassche.be> In-Reply-To: <20230330164633.117335-1-me@dylanvanassche.be> References: <20230330164633.117335-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?1761813245132674665?= X-GMAIL-MSGID: =?utf-8?q?1761813245132674665?= SLPI remoteproc initialization is the same for SDM845, SM8150, SM8250, SM8350 but is duplicated for each compatible. Refactor initialization structs for these 4 compatibles as a single struct. Signed-off-by: Dylan Van Assche Reviewed-by: Konrad Dybcio --- drivers/remoteproc/qcom_q6v5_pas.c | 48 +++++------------------------- 1 file changed, 8 insertions(+), 40 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index c99a20542685..b96020c93e58 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1014,7 +1014,7 @@ static const struct adsp_data sc8180x_mpss_resource = { .ssctl_id = 0x12, }; -static const struct adsp_data slpi_resource_init = { +static const struct adsp_data msm8996_slpi_resource_init = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", .pas_id = 12, @@ -1028,7 +1028,7 @@ static const struct adsp_data slpi_resource_init = { .ssctl_id = 0x16, }; -static const struct adsp_data sm8150_slpi_resource = { +static const struct adsp_data sdm845_slpi_resource_init = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", .pas_id = 12, @@ -1044,38 +1044,6 @@ static const struct adsp_data sm8150_slpi_resource = { .ssctl_id = 0x16, }; -static const struct adsp_data sm8250_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 sm8350_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 wcss_resource_init = { .crash_reason_smem = 421, .firmware_name = "wcnss.mdt", @@ -1184,9 +1152,9 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,msm8953-adsp-pil", .data = &msm8996_adsp_resource}, { .compatible = "qcom,msm8974-adsp-pil", .data = &adsp_resource_init}, { .compatible = "qcom,msm8996-adsp-pil", .data = &msm8996_adsp_resource}, - { .compatible = "qcom,msm8996-slpi-pil", .data = &slpi_resource_init}, + { .compatible = "qcom,msm8996-slpi-pil", .data = &msm8996_slpi_resource_init}, { .compatible = "qcom,msm8998-adsp-pas", .data = &msm8996_adsp_resource}, - { .compatible = "qcom,msm8998-slpi-pas", .data = &slpi_resource_init}, + { .compatible = "qcom,msm8998-slpi-pas", .data = &msm8996_slpi_resource_init}, { .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 }, @@ -1211,17 +1179,17 @@ static const struct of_device_id adsp_of_match[] = { { .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}, - { .compatible = "qcom,sm8150-slpi-pas", .data = &sm8150_slpi_resource}, + { .compatible = "qcom,sm8150-slpi-pas", .data = &sdm845_slpi_resource_init}, { .compatible = "qcom,sm8250-adsp-pas", .data = &sm8250_adsp_resource}, { .compatible = "qcom,sm8250-cdsp-pas", .data = &sm8250_cdsp_resource}, - { .compatible = "qcom,sm8250-slpi-pas", .data = &sm8250_slpi_resource}, + { .compatible = "qcom,sm8250-slpi-pas", .data = &sdm845_slpi_resource_init}, { .compatible = "qcom,sm8350-adsp-pas", .data = &sm8350_adsp_resource}, { .compatible = "qcom,sm8350-cdsp-pas", .data = &sm8350_cdsp_resource}, - { .compatible = "qcom,sm8350-slpi-pas", .data = &sm8350_slpi_resource}, + { .compatible = "qcom,sm8350-slpi-pas", .data = &sdm845_slpi_resource_init}, { .compatible = "qcom,sm8350-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sm8450-adsp-pas", .data = &sm8350_adsp_resource}, { .compatible = "qcom,sm8450-cdsp-pas", .data = &sm8350_cdsp_resource}, - { .compatible = "qcom,sm8450-slpi-pas", .data = &sm8350_slpi_resource}, + { .compatible = "qcom,sm8450-slpi-pas", .data = &sdm845_slpi_resource_init}, { .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}, From patchwork Thu Mar 30 16:46:33 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: 77331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5798vqo; Thu, 30 Mar 2023 10:05:18 -0700 (PDT) X-Google-Smtp-Source: AKy350bbaS0UgRTKmZJiIoRspZYIqIBnlB/fMSNRkXuoeU843DmpIEg+SxdfLqdqJDy/u/hajJTc X-Received: by 2002:aa7:d0d4:0:b0:501:da04:b09b with SMTP id u20-20020aa7d0d4000000b00501da04b09bmr23656814edo.10.1680195918513; Thu, 30 Mar 2023 10:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680195918; cv=none; d=google.com; s=arc-20160816; b=n2NZ1uHBHbfvjeKHDVnlDPR6kD5qxG78FG+pfHzlkvI2vs9x84q+lpNqEbdR9MZw3Z 3gO8xcsY2NswVflpH7ycYS8ycWEJYHKxFJxlTY/IOP84r1HTNf9oQw63oiQUhg+TPuSk CwZCmncx686rRKQZO1HDozSzxMWfarlbfteW4+xtKrYptfftGBqvGm84e4zhOq4Syzm7 1fEc1lqiyU8ycKdPcmpu+1gij4o3ZvdF+LsdZm5Xg9rvqfJ5N4ayqH9urqTpAgMQoLtB xzY7XLmIraY6gqFZPrK5nSmbZD3EcW5nMRuAfP0DeGxv6p9tqrlmckpsvgtZWNGBgE/b GY9w== 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=TSURVbtcY0YmmwnLZbqD+nMKuO2MCW9bx3mQ70Yn0Pc=; b=CeGi40GnnbTOyHuujhVCdb7OHyi6NBE6EiZfumVpD2CtNpOYm0ZdQ4mJ1VhBsuk0CY ZNyCGJVw3ssMHOUfzNFcSP2uTiKKn+CXy1zycXe2JISPWkSeO1sjjw6flJFQeLBGtFPE UJdcEc6X5cN9yZZHY88LVxVkK4oZ3mTJL/E02/klzYCoKuQWOCjIog5APtFyCgG22Pgx ho4M5B2cXOTY1O9yFQ+6Oh0toly7f/cC3r3ZlA9G1rrfjPjyvStnWO9Z6HOFjGZnQQQp lIH814xUwSlYd/L74PLniG4HO31tVl87umBgxifOy1CWhZHSdsP++JcnJD4a0i4RGiYD GXMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=zl8sYjmH; 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 kw20-20020a170907771400b009476cc92ff0si48556ejc.906.2023.03.30.10.04.27; Thu, 30 Mar 2023 10:05:18 -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=zl8sYjmH; 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 S232588AbjC3Qrb (ORCPT + 99 others); Thu, 30 Mar 2023 12:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232157AbjC3QrA (ORCPT ); Thu, 30 Mar 2023 12:47:00 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ACDCCDF5; Thu, 30 Mar 2023 09:46:59 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [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-201.mailbox.org (Postfix) with ESMTPS id 4PnTpk73zcz9scb; Thu, 30 Mar 2023 18:46:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680194815; 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=TSURVbtcY0YmmwnLZbqD+nMKuO2MCW9bx3mQ70Yn0Pc=; b=zl8sYjmHSL5yzHvw74tGSX7QbV7omG8tIGm+HQNfI+XgoIAYmQGppBeF/vwX99cHzd7SN3 RKL/3ZUjnkHpOHm5y48dDZzxX9szfgNoPD8q0yecoSho/z0UOvHg7T63sjqluihKaxRSuv swdnPPDdxUEQ1ZX0GIiiaq9nmnA3WAZ895/yAZMdbtwLzhiGE9/0+TVW6vSv5x3K6kyzSZ vhCg0M4tbiXAYeBkX0gLUtep5F2IL2JE4RpjY99RZgitQF8T0yNeB6VOHIjHsfecBIExls 8Mm3hisR9euZ78w7EnMGW1NqSFV2FeuG4xJKkdx724r/VIW3AtpsglDwHKu3Zw== 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 v3 3/3] remoteproc: qcom: pas: add SDM845 SLPI compatible Date: Thu, 30 Mar 2023 18:46:33 +0200 Message-Id: <20230330164633.117335-4-me@dylanvanassche.be> In-Reply-To: <20230330164633.117335-1-me@dylanvanassche.be> References: <20230330164633.117335-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?1761813115396210675?= X-GMAIL-MSGID: =?utf-8?q?1761813115396210675?= Add a compatible for the SDM845 SLPI to the Qualcomm remoteproc q6v5_pas driver. The SLPI is the same as in SM8150, SM8250, SM8350, and SM8450, so use the same resource in the driver. Signed-off-by: Dylan Van Assche Reviewed-by: Konrad Dybcio --- drivers/remoteproc/qcom_q6v5_pas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index b96020c93e58..f3a7ae503bd1 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1169,6 +1169,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_init}, { .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},