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: 456031 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 D6FD1C4743E 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 BB12860C3E for ; Tue, 8 Jun 2021 17:51:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233952AbhFHRxm (ORCPT ); Tue, 8 Jun 2021 13:53:42 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:35765 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233958AbhFHRxl (ORCPT ); Tue, 8 Jun 2021 13:53:41 -0400 Received: by mail-ot1-f44.google.com with SMTP id 69-20020a9d0a4b0000b02902ed42f141e1so21181644otg.2 for ; Tue, 08 Jun 2021 10:51: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=o81IJNQoCAe30ZYu3PCDocLP41WMLzUQRgm4geizjzAHJAJWKIBCWLg9o3ZolVjR1n C5QE9IfECK8B1RlLEJGZdOVUfovTW9KOYpqh5md/g0YgT8/jdQZATulwajOk5WHkNSZQ amoHjwAXHy8IdH06uOmRV1C1D/6isZ/PIyZvo9vxXNO+bnZ99B4zoG1BCmD31Y9iJ4Mx KZtxnsY7j4aiQXEHXD7W6brkLo8Dprv4Tjjb1W26Wxes//pWIcflJudog7tnMKW6BvNW yOfcSYU/y5YnV068a6LSn8wi8jGuaZBlk3ONiKCKEGz3s+6jAXs0GiTnd80VFpWb2CNd RoBg== X-Gm-Message-State: AOAM531g01ouKfReqfssXOjOeqk3A1E140Oys6MR6JUKkV9HfexxhyMH CeBDMFOHoox2AbcT0GLzrLe/OA== 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: devicetree@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: 455779 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3965469jae; Tue, 8 Jun 2021 10:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRfH6N6AnWDvYasyrlqTxXFKXnF5t5n/gykKsUtn4YyEOedkFNdgPqYg6bcvaK27WH6kBK X-Received: by 2002:a17:906:8482:: with SMTP id m2mr24486725ejx.314.1623174695664; Tue, 08 Jun 2021 10:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623174695; cv=none; d=google.com; s=arc-20160816; b=b7F0ZQgzA8ScvE/RfeSarwEPyOHZLwmnomStqY0jpMjhOXDvm9RdYCTSHH9LA1bSH/ s2VDPFP0OwqVgf28QM5Y4HIxYlxNHfO0vPKp9KDG+hR2ugsYK3pTBkyDUoJ3A3eneEBu uv6kwhPphO4wulN9Z94LSn2xyrw9RFyqCLnNLCvaBQMPG47sKwXnBemPgqfR8zjpmEs3 eW6hjaEbFxwt4mH+k3K8EkL3StgZggVgGsD90zXKOj/Mw7QwoMgYl7U54Wl2HCSWh5wg IlUa4IxbJDFNfQ129U2dvLtO9g0ZHmCWR5ctR7VcKxAoaotUhVPdfzOkkn2kxtvjUUFR BnDQ== 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=X9zro4Vc1E9NQWs0dfxD3ilnXRKka3meacOTat93e/Y=; b=09C2cO/0VP9lFDhEBwu0bvx/ouSvUe0KlNkv5XEmuJXJWB7RTZYs66X2KdT2iOo/zE LP5ETU3elGIgc2zZ+MhqIi6A1JcMQdr3+5IuFQYWdNIxyYGJEicT+vS/Plvt7Prsg2uV IxmLL+as+/BzC4SMGsPJHMrMrvO7DE4AuvRwf2lIMCji8RqxnTrckVMZ8Wwj1j1vmkXh RHHSlmL9ZTTKUjukQjzKAOytegASiwUDfinYSSWjArG2ZEgQ0+gdThULB0j1CayV57/z RSskVucegttUDZ6UTroTGdarmDo2xLRaUfDzzTR4iPjs6vjPRNqOdiaVJEFL9YRBwfx6 xswg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K9ygi+hS; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si297849ejo.403.2021.06.08.10.51.35; Tue, 08 Jun 2021 10:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K9ygi+hS; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S233883AbhFHRwm (ORCPT + 7 others); Tue, 8 Jun 2021 13:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233748AbhFHRwl (ORCPT ); Tue, 8 Jun 2021 13:52:41 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 201B9C061789 for ; Tue, 8 Jun 2021 10:50:34 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id t140so17104020oih.0 for ; Tue, 08 Jun 2021 10:50:34 -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=GomGwl9m/g/GIr7STGIO4z9Wbk8tpjnuVIrpRNsDy2NMKPVl14aDS7DnF2qCguRNKf SFSHScZ5qQzOfYClxEASDCr/Wn9DacXZQCRzxN1nQatShIgUpkUbx0MdDtVMy+5JyfKc MDV+3QF34uQbNJlW/+6N8OlzVLlUP9zzz4Kj5mX8/dNu/E9c4eUNVPcbqcWjoPBPOFjH ZvlinS/HmCZfu5p5x89eRtAR+yIluQQesQ/nOcmcr8+Hrn+7fpZfapEHl/ng+BZ4modt cOEdcOxQ7QXz5HnlMGG2JPqPEbW+uMN7TyUiUybkEksCKqWXaZ+LxWpl2wyJTC8nCtHw 7T9Q== X-Gm-Message-State: AOAM532iJHsVr8c5UuBK6PXX2Iexesn+GmzICdGvyec8n8moYfRoV9pp 9l8qAUI8djgqxR9y2Z6FRw0bOQ== 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: devicetree@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 --- Changes since v1: - None drivers/remoteproc/qcom_q6v5_pas.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) -- 2.29.2 Reviewed-by: Manivannan Sadhasivam 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},