From patchwork Wed Feb 10 10:45:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 380210 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1038469jah; Wed, 10 Feb 2021 02:49:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0Hhc98W8W9ewJsLLryjYTH0VrXw1fUPzbOosZTMVzd5nFhnzSqWpY/II8MPxZVRzJiLWb X-Received: by 2002:a17:906:a57:: with SMTP id x23mr2350987ejf.40.1612954143920; Wed, 10 Feb 2021 02:49:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612954143; cv=none; d=google.com; s=arc-20160816; b=pF08VfJ/G3KZr1SjHo5Svst6qJVQtmvK0nfaEIPMBFtMdKtF8BdRkWLbEcEx7pls/H 0t7yauH28n7NFsw44hjXyRUtBKAeF1fIe/wvmCL5VVCGIEQB/gA5RDJo7mOJ1PYN7sBW EIZXwhDwpgoP3siDCjhZpmccRR4taiYJ0REZgJz8V9GAnGJ8ts8lm1hZGDeFb3J/Kvxh iwt4xoJglvnvMb/4yZvO9AMFFFb/oUJhd8BSPrAwyOI5103hiYFhPclqqmxu5qRsMFu3 7AZC8jebBoYCEvfN53Q+jkewuFYssnhOp9XVNzCY+0k24zvATTXy/CKM3RI+HrJgnZBV lYOA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=wBmjOXozfv48MTD3MiFWIWjIXfdGT+6eB4fYTgSmI5U=; b=DM0dy7OevZmyp2Y/Bgxazbq2sQR/TIpUD5RvIYfBfQ5p47OOsF/l8+nm2PRH4+KUZ8 R/3iD4uJIx4oDX+h8OT+CinDsKB4SsIRVK/gyxg7/ZLe6+9xtUfLQJITWzju3imCc8lG VTm0kNlz1hX4wUW/DD0XjHq+a1OcZGuek8p6a+TIQCn4sVx0Gd3du0CEoyt7sfvAkCzT ueScGLwuA2jWGpHYDW8Cfej7wG3UV/jKEDovUKN39TkQ0m9VnnF3wl7JSPDxJbm1+cBO UkcwLSs2TLmyyJJVj9rWvAjGo5UZkpaMoFLfV36uILaxhtxmWHdaJ7e6TboqcoqOPCIy htTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ab5vgRMw; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si1050938ejc.262.2021.02.10.02.49.02; Wed, 10 Feb 2021 02:49:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=ab5vgRMw; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231325AbhBJKsN (ORCPT + 16 others); Wed, 10 Feb 2021 05:48:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:50742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbhBJKq2 (ORCPT ); Wed, 10 Feb 2021 05:46:28 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5DF864E37; Wed, 10 Feb 2021 10:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612953947; bh=3tkR6c5zUqero+5H7/Z8Ucg6Qgbzr4ym72/veesXOVI=; h=From:To:Cc:Subject:Date:From; b=ab5vgRMwBm3BH74eHjJi9qnlPiEOlkj9aOF6IIKV66Ehk/Ex7jE/LZox9/+kG7tHO lMpJS8vD92xkLGd4fgQaxbBX77km91rK79VRH9J6AO9vMUEeVuB1hS7dHQrGMmopO8 2LMLMcV9c++Fm8ncqspA3RFGQv84vSSCjXE7PH8fFT99//T6ZGbYariqr+Cf47VQBj Xn6Gsponmx/hOCrSM+hLvleio7KHAcxhp39K3e1bFuoxWl9XfiSVKmemUhKdCuV1Yv ACZuNHbyPwNWXMhygEE51JwlTK2jGKaKJRtgcXGioaYahhr0R9mgWsKYt9g3R1o/y5 k4YXB8XIGjwhA== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Ohad Ben-Cohen , Rob Herring , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: remoteproc: qcom: pas: Add SM8350 remoteprocs Date: Wed, 10 Feb 2021 16:15:38 +0530 Message-Id: <20210210104539.340349-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the SM8350 audio, compute, modem and sensor remoteprocs to the PAS DT binding. Signed-off-by: Vinod Koul --- .../devicetree/bindings/remoteproc/qcom,adsp.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.26.2 diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt index 54737024da20..41eaa2466aab 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt @@ -25,6 +25,10 @@ on the Qualcomm ADSP Hexagon core. "qcom,sm8250-adsp-pas" "qcom,sm8250-cdsp-pas" "qcom,sm8250-slpi-pas" + "qcom,sm8350-adsp-pas" + "qcom,sm8350-cdsp-pas" + "qcom,sm8350-slpi-pas" + "qcom,sm8350-mpss-pas" - interrupts-extended: Usage: required @@ -51,10 +55,14 @@ on the Qualcomm ADSP Hexagon core. qcom,sm8250-adsp-pas: qcom,sm8250-cdsp-pas: qcom,sm8250-slpi-pas: + qcom,sm8350-adsp-pas: + qcom,sm8350-cdsp-pas: + qcom,sm8350-slpi-pas: must be "wdog", "fatal", "ready", "handover", "stop-ack" qcom,qcs404-wcss-pas: qcom,sc7180-mpss-pas: qcom,sm8150-mpss-pas: + qcom,sm8350-mpss-pas: must be "wdog", "fatal", "ready", "handover", "stop-ack", "shutdown-ack" @@ -113,14 +121,18 @@ on the Qualcomm ADSP Hexagon core. qcom,sdm845-cdsp-pas: qcom,sm8150-adsp-pas: qcom,sm8150-cdsp-pas: + qcom,sm8250-cdsp-pas: qcom,sm8250-cdsp-pas: must be "cx", "load_state" qcom,sc7180-mpss-pas: qcom,sm8150-mpss-pas: + qcom,sm8350-mpss-pas: must be "cx", "load_state", "mss" qcom,sm8250-adsp-pas: + qcom,sm8350-adsp-pas: qcom,sm8150-slpi-pas: qcom,sm8250-slpi-pas: + qcom,sm8350-slpi-pas: must be "lcx", "lmx", "load_state" - memory-region: From patchwork Wed Feb 10 10:45:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 380211 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1038604jah; Wed, 10 Feb 2021 02:49:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMWIrUSKiQY7HL/UH2pAEqRMT01ZdbCzrNAnhiPPxtdO7QjgdfZKmMckHVWmwRZrVZQO9R X-Received: by 2002:a50:cc4d:: with SMTP id n13mr2475964edi.337.1612954155105; Wed, 10 Feb 2021 02:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612954155; cv=none; d=google.com; s=arc-20160816; b=gaKfCrIZRGoRzV6ftAHsvN2VB80QoaVLhgi5knT5jq+70W1rD1DsqD6icIqMe7hfmM 30H37pZ5ojaUxrMy3Z+ThHisSOjtBWc9AeJO2TVCtw0Gjc+7VG7pjh5zQVR0syBqGNBG 08hrVwDTJhI/e3OxSlTjxMG7VqhLyZItSGxGuKpM7MY/JUwKj+G1As81UBHNj2gdbaw3 My9VPXgF3mqkzkvkWvo1fIhGhYtJ1oInyZCJwhRdcuUhZojuftIHpZZUZCaQ5ctrX5nc UKO8KuU+MKbjVAsxN9J56mGf7cMkh6dxLvd/I8uOYdpAAs47SGYBiHnZlkPTfOuVZ1Pv yizA== 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=CvNg+L8HkMW/u67UJzK2cqUKqEc26PZhqQ5iu8H/S1A=; b=c2tUj66nXiYEtO+HwcNURr5t3pbgY/QGBBQKDHXxnewYCcNNsRjmRK+D8++O+7vQ7T dYDUWf7rTNOONBWprAnoGVu1QgYUudtk7RonJOZvUfr7nqBK5yDUGaB2p4M8rcROYyom AoHUCWA3SMI9icTe8rxkik6pf3S6QX1sLliYZxfI36LZJaei5jGe9Y1I2hGKGRXOm00T iJD7vxYkH5oabmq7/R/oLeIRXgEfqjnH+U3yJtenuZGMpSQ8Wp//FWomGbAlkh4dLbun mVWKDRYWC4GSiNA8P+dXAV9sjJi5QZyt0ziHCBfk49sgOtCwBZMPS+9sj/kv+6kK6gY1 LRag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qbAgZzmg; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si1050938ejc.262.2021.02.10.02.49.14; Wed, 10 Feb 2021 02:49:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=qbAgZzmg; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231609AbhBJKse (ORCPT + 16 others); Wed, 10 Feb 2021 05:48:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:50750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbhBJKqb (ORCPT ); Wed, 10 Feb 2021 05:46:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A770D64E3E; Wed, 10 Feb 2021 10:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612953950; bh=ZGh3JblgSl3CcCDV0RuW+f5+tr+S9AWWy0tc8okYK9g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qbAgZzmgZEnssJHK26tQVQVyoywt7CCRAwbc/c5nb4gpPTyXGv6LvlUz+pxqQH2oy aI7hi+Y1YFcfl8t/aaFrjvcvWdePTTVJo4l8OFNo4AlYfK7JukI38f5CY+swWU3zub AxI2+yRrgBi10d8skAbhiZ40LkuWbI22BD9oe+FD4rtuHh2Uyvi0yef1RXqCFgyTC1 s9gA0IoeUF7Q2a0j9w6kgKIgsnG9YguVBl8UemmONCozdKXwPKBvnCzwsf0IVtXUyc U8VJj9p/23PgZukytnvqy31tIOQn/T7BVY4+KNo99+6GYFbtZOBIYsrHxHu307n83P dfyWmyRmihrbA== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Ohad Ben-Cohen , Rob Herring , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] remoteproc: qcom: pas: Add SM8350 PAS remoteprocs Date: Wed, 10 Feb 2021 16:15:39 +0530 Message-Id: <20210210104539.340349-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210210104539.340349-1-vkoul@kernel.org> References: <20210210104539.340349-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add audio, compute, modem and sensor DSP resources to the Qualcomm PAS driver. Signed-off-by: Vinod Koul --- drivers/remoteproc/qcom_q6v5_pas.c | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) -- 2.26.2 diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index ee586226e438..e635454d6170 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -565,6 +565,26 @@ static const struct adsp_data sm8250_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data sm8350_adsp_resource = { + .crash_reason_smem = 423, + .firmware_name = "adsp.mdt", + .pas_id = 1, + .has_aggre2_clk = false, + .auto_boot = true, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; + static const struct adsp_data msm8998_adsp_resource = { .crash_reason_smem = 423, .firmware_name = "adsp.mdt", @@ -629,6 +649,25 @@ static const struct adsp_data sm8250_cdsp_resource = { .ssctl_id = 0x17, }; +static const struct adsp_data sm8350_cdsp_resource = { + .crash_reason_smem = 601, + .firmware_name = "cdsp.mdt", + .pas_id = 18, + .has_aggre2_clk = false, + .auto_boot = true, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "cx", + NULL + }, + .ssr_name = "cdsp", + .sysmon_name = "cdsp", + .ssctl_id = 0x17, +}; + static const struct adsp_data mpss_resource_init = { .crash_reason_smem = 421, .firmware_name = "modem.mdt", @@ -701,6 +740,26 @@ static const struct adsp_data sm8250_slpi_resource = { .ssctl_id = 0x16, }; +static const struct adsp_data sm8350_slpi_resource = { + .crash_reason_smem = 424, + .firmware_name = "slpi.mdt", + .pas_id = 12, + .has_aggre2_clk = false, + .auto_boot = true, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .ssr_name = "dsps", + .sysmon_name = "slpi", + .ssctl_id = 0x16, +}; + static const struct adsp_data msm8998_slpi_resource = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -745,6 +804,10 @@ static const struct of_device_id adsp_of_match[] = { { .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,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-mpss-pas", .data = &mpss_resource_init}, { }, }; MODULE_DEVICE_TABLE(of, adsp_of_match);