From patchwork Tue Jun 8 17:49:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12307815 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFBDFC47082 for ; Tue, 8 Jun 2021 17:50:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9BF49610E5 for ; Tue, 8 Jun 2021 17:50:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233875AbhFHRwm (ORCPT ); Tue, 8 Jun 2021 13:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233082AbhFHRwl (ORCPT ); Tue, 8 Jun 2021 13:52:41 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFBB5C061787 for ; Tue, 8 Jun 2021 10:50:32 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id 36-20020a9d0ba70000b02902e0a0a8fe36so21161325oth.8 for ; Tue, 08 Jun 2021 10:50:32 -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:mime-version :content-transfer-encoding; bh=RfxJ0B3CrJj0aGpmXt38E2admgu06MumRoXg1smpcJI=; b=PQasmvC6JpfO/qy8QSodizBlrcfnYV39OsA6aZToafmZpxEklj22rE7lZVClFPlQkX tTstjMJco52Qs/PCJnOjKpfWIExgp3Vnl33aK4rq+8wMtuX7gQJX8dn8xSET8IYovrIF 0B3bXQuMB3C1/cTKvaPx5W41lQ3IFa9n8I4hiFBc85JLLanMP8D4aH/ixRqu52WvuU8Q bj+9J22evK1y2ie5uD1UANthtmJa8bPIQhPftVad00g7BYbGpA1qE1g/HwEJosNpuWPK n5kGT5bfBnIpLWuHEOsOcS/Nl3fga/TWzd3qCsxIa7QYTC8wyIariqTNZKrzblC99Zbv MoSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RfxJ0B3CrJj0aGpmXt38E2admgu06MumRoXg1smpcJI=; b=GKlBiw0mSWot9vTe4kqoOZhergLkNagVI+lZ5wuQmm5PmL1cHfpMtyOpllH2flvO2r e47w1wQ6/k4TQnN5gN4P740uWLhTuuD/ZL7d7X+lg+96fgKyFXSAyj9GCpeuzkdcf0qp 4dsiWYCpMdtrCbVy2mf1cvdCs+YHbgAtGsdgiwuDUM5j3AvYi7MkFKoOeNY2RgCJRRdY 00ET5z67Z80WH+Gp78xat1VTqQTDHl2M8s/RsBwrgltijWpzbYao42PD1BNpNkOmsMa9 Ar/ZFRuwdD/YWiOhAJ/4JkVvETHHv15Y00FVkT83UzwYLgFNLwxbQKvGE8+OeVfQkCnF d8RA== X-Gm-Message-State: AOAM533U1tWLN972Lm0cLOjXDM6N+JYBY/mZerruKB3I2LxV4BWeWwBU 6qk1bsz288RHRywDs+KJe1yLdg== X-Google-Smtp-Source: ABdhPJzG4ddwYAsy0X/jhztKCSD/hl2swMUjGyGJ9b2UzaOpSYfiOL8y8c8roF/XGXkDAwFK+kOLbw== X-Received: by 2002:a9d:741a:: with SMTP id n26mr18737302otk.223.1623174632318; Tue, 08 Jun 2021 10:50:32 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id c11sm1663960oot.25.2021.06.08.10.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 10:50:31 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier , Rob Herring , Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: remoteproc: qcom: pas: Add SC8180X adsp, cdsp and mpss Date: Tue, 8 Jun 2021 10:49:43 -0700 Message-Id: <20210608174944.2045215-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Add compatibles for the Audio DSP, Compute DSP and Modem subsystem found in the Qualcomm SC8180x to the Peripheral Authentication Service remoteproc binding. Signed-off-by: Bjorn Andersson Acked-by: Rob Herring --- Changes since v1: - "Rebased" on yaml conversion .../devicetree/bindings/remoteproc/qcom,adsp.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 6c11812385ca..21a541859c7e 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -25,6 +25,9 @@ properties: - qcom,qcs404-cdsp-pas - qcom,qcs404-wcss-pas - qcom,sc7180-mpss-pas + - qcom,sc8180x-adsp-pas + - qcom,sc8180x-cdsp-pas + - qcom,sc8180x-mpss-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas - qcom,sdx55-mpss-pas @@ -143,6 +146,9 @@ allOf: - qcom,msm8998-adsp-pas - qcom,qcs404-adsp-pas - qcom,qcs404-wcss-pas + - qcom,sc8180x-adsp-pas + - qcom,sc8180x-cdsp-pas + - qcom,sc8180x-mpss-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas - qcom,sm8150-adsp-pas @@ -249,6 +255,8 @@ allOf: - qcom,qcs404-adsp-pas - qcom,qcs404-cdsp-pas - qcom,qcs404-wcss-pas + - qcom,sc8180x-adsp-pas + - qcom,sc8180x-cdsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas - qcom,sm8150-adsp-pas @@ -283,6 +291,7 @@ allOf: contains: enum: - qcom,sc7180-mpss-pas + - qcom,sc8180x-mpss-pas - qcom,sdx55-mpss-pas - qcom,sm8150-mpss-pas - qcom,sm8350-mpss-pas @@ -430,6 +439,8 @@ allOf: compatible: contains: enum: + - qcom,sc8180x-adsp-pas + - qcom,sc8180x-cdsp-pas - qcom,sm8150-slpi-pas - qcom,sm8250-adsp-pas - qcom,sm8250-slpi-pas From patchwork Tue Jun 8 17:49:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12307817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FE9FC4743D for ; Tue, 8 Jun 2021 17:51:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 112DB60C3E for ; Tue, 8 Jun 2021 17:51:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233699AbhFHRxk (ORCPT ); Tue, 8 Jun 2021 13:53:40 -0400 Received: from mail-oi1-f169.google.com ([209.85.167.169]:36743 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233949AbhFHRxk (ORCPT ); Tue, 8 Jun 2021 13:53:40 -0400 Received: by mail-oi1-f169.google.com with SMTP id a21so22387887oiw.3 for ; Tue, 08 Jun 2021 10:51:33 -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=X9zro4Vc1E9NQWs0dfxD3ilnXRKka3meacOTat93e/Y=; b=K9ygi+hSRK7UXZ19Xo44KiVUwDJnhFLTAs69hp1Z4ik3ftARsDB4JpRtUCZJIhkT0c dPi7ZCrY+2SXu28N6UMSARt8QRwLApfh7yJrvjl+bLeRxxSz7r+ROAs+WhDTI8UGMDKi Fy0u6FzbblQkcyMcdlScSLlRbX/XAp+dVdr3cFsHFSpY+gxACyQEzF68b4CTcRa4HXOX c2L8knwj5f6wlmmr6kJdZWDP3BW/HZyApzEYc9PSH4VhmfW80EePozxYGBlNRAemS0BZ V9EzWLY4F2V18rBWdRbdN7me4M+mWXNzJ3ZhSM+7kUVFYe8P7ox8VPf+gDcQU8wp4GxM fruQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X9zro4Vc1E9NQWs0dfxD3ilnXRKka3meacOTat93e/Y=; b=OtpFvpFTM2Ul3DQB1pdkfqLQnuQmqu6FJGoZVAnBkuD8DmV51tAcjZTwmjcgQLBcRL Mfh2HBq7sAjgrkrs3wTRYHiIBWFugxM2HyqwrhXOo0qRRwXdmRauG8nM9ja16hxZCH13 JKW4P/loa6R6bczY88tpkp0+aRCynZeGz72cBMNjSfGGwjcRBU3mDxAVrNLeMiiqWDrj n11+9uVW1jlF3wO3bkbLkhLZbY2QpgWLZqj4uwmNjY67HACj8vvzvwCWZeVpMXKqkWUd OrPVBSUPc4/l/g+z6LOCnK5ZMZYCH3ugdAefCVEbaf9oWmHPGZ8lsLHWHRAER6vemoCl ojDQ== X-Gm-Message-State: AOAM530Vv+BjWrpipDRj74k05IuTnuDlTMjLQOfSXbPYHO9ug2Y1DXhR /MEOExuQ5AqXcbe6hlku4I6PLWR8PHbP1Q== X-Google-Smtp-Source: ABdhPJzNckfpl5VR9Un+ieSDIHA9Iu5hEPnv+vkak/JRYxMrZDzCrTVIH3cFsi02xXFOCzELBdbEqQ== X-Received: by 2002:aca:340a:: with SMTP id b10mr3697818oia.95.1623174633383; Tue, 08 Jun 2021 10:50:33 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id c11sm1663960oot.25.2021.06.08.10.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 10:50:32 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier , Rob Herring , Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] remoteproc: qcom: pas: Add SC8180X adsp, cdsp and mpss Date: Tue, 8 Jun 2021 10:49:44 -0700 Message-Id: <20210608174944.2045215-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210608174944.2045215-1-bjorn.andersson@linaro.org> References: <20210608174944.2045215-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The Qualcomm SC8180X has the typical ADSP, CDSP and MPSS remote processors operated using the PAS interface, add support for these. Attempts to configuring mss.lvl is failing, so a new adsp_data is provided that skips this resource, for now. Signed-off-by: Bjorn Andersson Reviewed-by: Manivannan Sadhasivam --- Changes since v1: - None drivers/remoteproc/qcom_q6v5_pas.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index b921fc26cd04..a79bee901e9b 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -689,6 +689,25 @@ static const struct adsp_data mpss_resource_init = { .ssctl_id = 0x12, }; +static const struct adsp_data sc8180x_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .pas_id = 4, + .has_aggre2_clk = false, + .auto_boot = false, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "cx", + NULL + }, + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, +}; + static const struct adsp_data slpi_resource_init = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -811,6 +830,9 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init }, { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, + { .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,sdm845-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sdm845-cdsp-pas", .data = &cdsp_resource_init}, { .compatible = "qcom,sdx55-mpss-pas", .data = &sdx55_mpss_resource},