From patchwork Thu Apr 30 18:00:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11521083 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1195392C for ; Thu, 30 Apr 2020 18:01:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ED34E2082E for ; Thu, 30 Apr 2020 18:01:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="L+/38IZb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726404AbgD3SBa (ORCPT ); Thu, 30 Apr 2020 14:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726309AbgD3SB3 (ORCPT ); Thu, 30 Apr 2020 14:01:29 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1B0EC08E859 for ; Thu, 30 Apr 2020 11:01:29 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id t40so1039046pjb.3 for ; Thu, 30 Apr 2020 11:01:29 -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=C0Yze1/IavdG5gy4jtW1GeNJSvg2I9EP1FDFnBHu0wY=; b=L+/38IZbHQhw8T0IEXSfBpOcGMhxgd4r+su+uW/4Wv3ZlRfjby6gzR3fp62u3Ez+1c YCCjU7fPazg5eY0f+w/Fe2u47AvrwiKeL805UqjHV74oqzx28Bjb6VkzcDPrI+rO7V6m GoBxUOzHjAhTunRsreZls4p/bmZgYDdEZ2MRDJ0v86Kp7NZzcjS8LBPzBKJXFMuE+eHQ yFR+dnrmyeRJicZJb0dQNNu8ojm3DJfhwAmsIj2muLHiup4AE1Wru0W7lD3vgNqruJPZ ijYoiR3WRCDcHseZOHXamHepQPlVeSqIl91tMuxykYpmtXRdCj/E1uF08PKqHHEXkI5p 9BXg== 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=C0Yze1/IavdG5gy4jtW1GeNJSvg2I9EP1FDFnBHu0wY=; b=bxfaWjPCl1ASCPlpNGX0xfpHFmyCiO0xFbBaAdsdL8zuBlekCifHQ0lO8HkIiaOYL2 4FLMee/rtQwZkiT58frq7JxSb3VZOhUy94PEWfiCAy+hKeNPbC4IebHGciYaF9o6df8E QIqw7QU0ZHyfSOQAlORn8ND3YBfG244R2FN4pK9HQZBM3a/06YPK77Xr/MuzwGMH4z8L wiZ2E63ZQqYdW3gAJwkZlVmvWyykyEfPC5j3M42kz+iu/7rA2uBQu6cF4wXwjXcNnSt6 g6uOPA2ucyzQ8zEOsGHfaYSk0ibEc27Nyn5QI3NJ6LKHxKDipGXqK+7DcOvtwRngKwR9 giXg== X-Gm-Message-State: AGi0PubwRjNO7w1L+87ZHfGHmNlN0IT9NtHd/JqWmpmOWsNwQx8rMqYE 1e5FedmLe9Fz2uROBkBothQSWg== X-Google-Smtp-Source: APiQypKHYL1gUtj6Z9vxDjxgBdu/Hcis3QIeB8G/ahhZn63CN3tK+qdhIbUuX4NhcFMhnN2OuQbSpw== X-Received: by 2002:a17:902:56c:: with SMTP id 99mr203208plf.124.1588269687924; Thu, 30 Apr 2020 11:01:27 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id o68sm357741pfb.206.2020.04.30.11.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 11:01:27 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Ohad Ben-Cohen , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sibi Sankar Subject: [PATCH v2 1/2] dt-bindings: remoteproc: qcom: pas: Add SM8250 remoteprocs Date: Thu, 30 Apr 2020 11:00:50 -0700 Message-Id: <20200430180051.3795305-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Add the SM8250 audio, compute and sensor remoteprocs to the PAS DT binding. Reviewed-by: Sibi Sankar Signed-off-by: Bjorn Andersson Acked-by: Rob Herring Reviewed-by: Vinod Koul --- Changes since v1: - Changed adsp power-domains to lcx and added missing lmx .../devicetree/bindings/remoteproc/qcom,adsp.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt index 9938918b2fea..c18c1b8d2869 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt @@ -21,6 +21,9 @@ on the Qualcomm ADSP Hexagon core. "qcom,sm8150-cdsp-pas" "qcom,sm8150-mpss-pas" "qcom,sm8150-slpi-pas" + "qcom,sm8250-adsp-pas" + "qcom,sm8250-cdsp-pas" + "qcom,sm8250-slpi-pas" - interrupts-extended: Usage: required @@ -44,6 +47,9 @@ on the Qualcomm ADSP Hexagon core. qcom,sm8150-adsp-pas: qcom,sm8150-cdsp-pas: qcom,sm8150-slpi-pas: + qcom,sm8250-adsp-pas: + qcom,sm8250-cdsp-pas: + qcom,sm8250-slpi-pas: must be "wdog", "fatal", "ready", "handover", "stop-ack" qcom,qcs404-wcss-pas: qcom,sm8150-mpss-pas: @@ -105,10 +111,13 @@ on the Qualcomm ADSP Hexagon core. qcom,sdm845-cdsp-pas: qcom,sm8150-adsp-pas: qcom,sm8150-cdsp-pas: + qcom,sm8250-cdsp-pas: must be "cx", "load_state" qcom,sm8150-mpss-pas: must be "cx", "load_state", "mss" + qcom,sm8250-adsp-pas: qcom,sm8150-slpi-pas: + qcom,sm8250-slpi-pas: must be "lcx", "lmx", "load_state" - memory-region: From patchwork Thu Apr 30 18:00:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11521087 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84D13912 for ; Thu, 30 Apr 2020 18:01:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C6A720873 for ; Thu, 30 Apr 2020 18:01:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PIx1oXjr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726384AbgD3SBb (ORCPT ); Thu, 30 Apr 2020 14:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726380AbgD3SBa (ORCPT ); Thu, 30 Apr 2020 14:01:30 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 045C5C09B040 for ; Thu, 30 Apr 2020 11:01:30 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id x2so165510pfx.7 for ; Thu, 30 Apr 2020 11:01:29 -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=ptgh2/1279PcmgwwRPQcmLMSq0T7hBYsw3s8yDo8jLI=; b=PIx1oXjrOK7BYxhAUE+LXwRfI/GBeEr4ErdwjOYMNGSaB4a9NUgrr9/zN7DYHZ4b8k UsSW8WXpaZvTSF5+idEz3jzZUl5Pa1USyJU5gA+OnhVHLwMo0DrUIpQMz4eVor/55qWg zOL56wRI1C7ug6sqZeAS8NXsxj22pXkzKJKKCbBhNOeF4RDd8PgMiEzrYoaffwhRuR2e ffET6v166TCBaNtoGF7Drj00Faal2lwUAUIcRJUrFn8ANwsfu0JoJv1B0nhNL6vKp5/v 95hwCTtzAnEnntJCoPCRcdaO4iTJe3nKlRblHnW3mJ6hjs6SRWQqeUy+YrSJRayK0F39 OilA== 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=ptgh2/1279PcmgwwRPQcmLMSq0T7hBYsw3s8yDo8jLI=; b=hpD0WKxs1gT0yzKHAomLe0XPvBrfYlwrdtpv8RtODWJ00IxNh5WLcx+4YacSV2mCS4 /7pTXkfxbelly17rcNIW2GAF2gqeSLZURg2x+sg0jMhlepB9O9rezrtzXhnRiEXVv+Sp hfxtnjz9ko1cmFV8s+Of0YDeLe/emlhdc/102b9yrcnaannC0VZz9pf1Abs0iUL7ZC2o JrYHWS7nE1JlQzD4fgoc/JvBOtDftD615DqXrV3d9gJgPAdQbW/oIUtPppwqqOqVFuEf 6Ceh+dKSV9tk3h4OiBgZsfJda1K52yIWZtiBGjciII3gHJJR4j8z+9rJLC77+hiubLmP KIkw== X-Gm-Message-State: AGi0PuaHWFVzffXhjc/AhkTiK3Kqw1xF192sYudpvsRbLU05riIqFsm/ mpTRinZ8MudTHaxqDANr3xjp+Q== X-Google-Smtp-Source: APiQypJ0DI4Z4f+sjCwlpGCk/Hib857vv5XoecESdXSZl9HnFZ8XO7QR6MZ+M/LyLNg3gwfpVswZYg== X-Received: by 2002:aa7:9a4c:: with SMTP id x12mr492559pfj.263.1588269689346; Thu, 30 Apr 2020 11:01:29 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id o68sm357741pfb.206.2020.04.30.11.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 11:01:28 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Ohad Ben-Cohen , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sibi Sankar Subject: [PATCH v2 2/2] remoteproc: qcom: pas: Add SM8250 PAS remoteprocs Date: Thu, 30 Apr 2020 11:00:51 -0700 Message-Id: <20200430180051.3795305-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200430180051.3795305-1-bjorn.andersson@linaro.org> References: <20200430180051.3795305-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Add audio, compute and sensor DSP compatibles to the Qualcomm PAS binding and driver. Reviewed-by: Sibi Sankar Signed-off-by: Bjorn Andersson Reviewed-by: Vinod Koul --- Changes since v1: - Renamed adsp power-domains lcd and lmx drivers/remoteproc/qcom_q6v5_pas.c | 62 ++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index fc6658b523b6..efbc1777000a 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -508,6 +508,26 @@ static const struct adsp_data sm8150_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data sm8250_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", @@ -553,6 +573,25 @@ static const struct adsp_data sm8150_cdsp_resource = { .ssctl_id = 0x17, }; +static const struct adsp_data sm8250_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", @@ -604,6 +643,26 @@ 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, + .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", @@ -644,6 +703,9 @@ static const struct of_device_id adsp_of_match[] = { { .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,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}, { }, }; MODULE_DEVICE_TABLE(of, adsp_of_match);