From patchwork Sat Jan 7 12:08:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 40385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1270567wrt; Sat, 7 Jan 2023 04:09:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXvEqkk6nlUGPuRdp/v9ri9H6+UwgZHEWsWHLsbaDe/7RPLMFmIK3uUhpo2hEycvipzNomAt X-Received: by 2002:a17:90b:128b:b0:226:5294:3026 with SMTP id fw11-20020a17090b128b00b0022652943026mr24391403pjb.26.1673093376751; Sat, 07 Jan 2023 04:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673093376; cv=none; d=google.com; s=arc-20160816; b=jUhy7kMTivWCYt/ao33kYeOfaQDhA0wCKzAqSDv7OMEJZi0lm/euJ4CCIPTeFGsf6b 3x3lmNr3ANSFC6b5c5UcRhqS23EOLREF7E1M96m71biI0KNtZGHu6y/OdMcqpmsCR2jl dobXHaZVgFf6NktgZ9seGuc97F+r203vxn/5A47sv08VGrIxkfmfyCGHyFzjhMuGjg1k bCzYoTe9WOgfYnySMQHa1RWOsWOgAP8X4gF8kjyQHb4CWegzzxmMVYQkztuj2z/h4Ujk fUniLQYOiNO7o2vI4LfVoDQ+kjTux03bJgjtEXi9wwBxzuOy+3igileUEi7XvMWVgZrV Rj7Q== 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=vTceZJU+jlw4wCFKinH2H3cM1GRd+uz51sDHaYzOEgs=; b=CADH2TNIpJjWngvfekjipHNq49UVlLmj9HD0y2gAOP5Dnyn8ojhoD13sXfg/EI9Uze tHnr5w6KYvfcVTRrtYR7T0rjwa6jdZNHZoMkNUoLt3SgYnGNpzfnk6zyVCC90t0+BrPa tC+RJ7/WA/UAiaw2FC5GDgReG56lYHjiyZG4NGyMkwK9lswiz9DLARQ1R0q5Xc5qPZyE HaZrS/EQ+TtqBmJxm0J+2OPW88wJ0tZL3qf7GMRWm33h7oArFZRLaGuiNQ9+JOl3vRR9 5RsWPZwjQskmIfg3/V4FTY9No+GiGE6FBWzagV9sgBWfhISXH6sXwjGIJEY7WfpDxzlr kLQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y22T6VVc; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a63e455000000b00476f5ad5027si4186057pgk.114.2023.01.07.04.09.23; Sat, 07 Jan 2023 04:09:36 -0800 (PST) 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=@linaro.org header.s=google header.b=Y22T6VVc; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbjAGMIq (ORCPT + 99 others); Sat, 7 Jan 2023 07:08:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230258AbjAGMIn (ORCPT ); Sat, 7 Jan 2023 07:08:43 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7805C90F for ; Sat, 7 Jan 2023 04:08:42 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id b3so5734525lfv.2 for ; Sat, 07 Jan 2023 04:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vTceZJU+jlw4wCFKinH2H3cM1GRd+uz51sDHaYzOEgs=; b=Y22T6VVcEpesOBF0FqcuOpa9AoYpws0EbO3NHp5LFWxTDotbWCUDQRV2M5e+mpTNqa C8+zD9b/s29SpA9VMZkILpSmMBAwuvl7apxV48gFjsowdeTfp5IjBN7ruMsHb1bsBl/V FUvXXDGgrK8VmhOT6bp9IUUJ0h2XIFJ1+VM3JiT7Qb8fa4gJJCE7b9EyyesZv15xjxWV scjZ9dGGMapY4ZnfvQzoiPhYIWb0+cJ7ad342qCEk8VgAOlp1HN7j+Ng+sUQhwMAGdLA 7YwTE9Hp72L577p8QOv0fTiagMS0mZNyeA5F/MQrkja8F5V3lcz3SfSZPZiT9WuTmbxi 9C8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vTceZJU+jlw4wCFKinH2H3cM1GRd+uz51sDHaYzOEgs=; b=LLL9EvtwQu0aaooZWVk2EBO71ghtmIm8vXNP8NE58k+DpKqoT8RurtFzzkO8B/Y+zL a0GzPCKjeIFU0xfg1Fv4Gb6TwICAZjcxkwpF/iw454WSeErE0XBet/6JaDY+hGMT+Fbx ZsRr+0Z922WVX/M9yP6dSYoO4NHfyUhZOmqp2YxOVC7w0jMhag1VUACSOpaOLSRYqayE gk1IrICd5pNgO6o7XBJHVfh1WpjchaPRf82GONu6Qzj8ypHH7+RKDXhvHwCRPEOAjLDI PEQe2Tr4AXZb6fbNVH30NRTFkHrJuYHNOQxftsBggeCB0e6ovd8X7XnG3+SgVpCXUdGZ k3uw== X-Gm-Message-State: AFqh2kpFoeysuJ3jm2lz/2HbycXzSJW5ytFt/4QfUOxyZ094CkR1sBI/ d/XDv2Z4B69VcydFiIveSWcEsA== X-Received: by 2002:a05:6512:1049:b0:4a4:68b8:c2ec with SMTP id c9-20020a056512104900b004a468b8c2ecmr18855552lfb.67.1673093320986; Sat, 07 Jan 2023 04:08:40 -0800 (PST) Received: from localhost.localdomain (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id h14-20020a05651c124e00b0027fd474e7aasm340858ljh.74.2023.01.07.04.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 04:08:40 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: remoteproc: qcom,sm8150-pas: Add SM6375 MPSS Date: Sat, 7 Jan 2023 13:08:37 +0100 Message-Id: <20230107120838.1903498-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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?1754365560605784449?= X-GMAIL-MSGID: =?utf-8?q?1754365560605784449?= Add SM6375 MPSS to the 8150 binding, as it's so similar it falls into the pre-existing ifelse clauses. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Depends on: https://lore.kernel.org/linux-arm-msm/20230107120623.1903056-1-konrad.dybcio@linaro.org/T/#t v1 -> v2: - Rebase on top of recent changes - move to sm8150 pas file .../devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml index 082ae70a3fcb..67cfdc017a02 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml @@ -17,6 +17,7 @@ properties: compatible: enum: - qcom,sm6375-cdsp-pas + - qcom,sm6375-mpss-pas - qcom,sm8150-adsp-pas - qcom,sm8150-cdsp-pas - qcom,sm8150-mpss-pas @@ -77,6 +78,7 @@ allOf: compatible: enum: - qcom,sm6375-cdsp-pas + - qcom,sm6375-mpss-pas - qcom,sm8150-adsp-pas - qcom,sm8150-cdsp-pas - qcom,sm8250-cdsp-pas From patchwork Sat Jan 7 12:08:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 40387 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1270681wrt; Sat, 7 Jan 2023 04:09:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXt8aier+tp+BCXat2Rjf2Tb8XHHBlBlEohS6gOjiRqywVoJqAuQqTtXdGMgG474Ubsl42C4 X-Received: by 2002:a17:90a:e513:b0:225:fb71:efc1 with SMTP id t19-20020a17090ae51300b00225fb71efc1mr41767219pjy.0.1673093387762; Sat, 07 Jan 2023 04:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673093387; cv=none; d=google.com; s=arc-20160816; b=kC1NC/qR1Pf0HVLV5oM2eUJkFxifaiVKQIMOJV7pTnMzKfO9sjjyoKzPQOrxl7uSO+ nnJSiWY+KiY/h+izNNIHfexDSLZnaNmYGiJvwnqHmWzdy6ZSkHVHQ1QndxQl6Yrp6rUr WVn4QAhMLq7TujGxZdFdmYxzJEFV136cH6TGs/attBF1OizVunumGpZck91Nlq/SysRJ ePWj9JKxa82/mfYklFSgT+BjmIG2xIC46y5Jw41uFRC3vKgzgZ2Zi0/+heO93X0TICW4 259kSZMHMkKWoMLz8Q4hjiwF6h9OSQJokOk5Nlb1cTHilPQPA5j6rN5AMqZ7y7mdyHUh u9yg== 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=XW7RLQwSsuJOklNws0vv7F30PK+Xw6g9m1ThmRDdI/Y=; b=YNxiFuT8/QgVh+bGrxO6DXax9ImTues04DyiSWyWS962cgzomuEqskxxdGxq7f7TiJ vjiMqfeltjocucIm2IxNxm1eFpo4wc+avWRrdxQ6Mc03cDWpnV6BjOuuQq3Sf7OI1xME G7y4sam7U/g5jg7aQe1PYJUdLc53Z8ofc0wbWeGglYJaGScFYseMh+dFUT5j6LeFUZHs MMJxtaowXCNHVUI20coDC9iHxN4a/Wx+2J9F6lOOCtOEWMmwianPTOFyKySz4fCo3VK9 dsHJlqymGjY61mvXvIEYF+SVknG8ci/E25VC3MpjeflRzmw/gavTdBIlEMNlsZnP9YIb ypmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=akuFM2gI; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6301c6000000b004ad05ddb1d3si2728222pgb.827.2023.01.07.04.09.35; Sat, 07 Jan 2023 04:09:47 -0800 (PST) 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=@linaro.org header.s=google header.b=akuFM2gI; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231911AbjAGMIy (ORCPT + 99 others); Sat, 7 Jan 2023 07:08:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231706AbjAGMIo (ORCPT ); Sat, 7 Jan 2023 07:08:44 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E4F5C914 for ; Sat, 7 Jan 2023 04:08:43 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id q2so4070283ljp.6 for ; Sat, 07 Jan 2023 04:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XW7RLQwSsuJOklNws0vv7F30PK+Xw6g9m1ThmRDdI/Y=; b=akuFM2gIw7qAdEFk8SMz8dhvgq4NjaWtWXEhBNM0mWVr6cN+I+JP6h63Mbnnniuf1E UCPNjXlIbhlO5wpaP53Ico83zc7dnJgMzqp+f24GqJKU0+Bta6cSGSkdKlUq/tvlWmcS MtvXph84H2gK0iLWD0QvhDe7Gr4iQr5QhwSnuRyzRoR/LXoH+Eh3r2sfAkekDdvr6hQv AoSCB+zd1sk6c5h4aCQjrXe+dpW4YuHPG5WvggHzhQEWodtJWX0A3YqyuwabxzceSM74 kvJmf2BMWiE2yaHKbwRRDFfYft0t6qWVVoD+j1xSRHOhJNgkxjTVGPmgYf74FTs09hmS w2gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XW7RLQwSsuJOklNws0vv7F30PK+Xw6g9m1ThmRDdI/Y=; b=UbhMVTwHsdQtkZ2jYlKRAfW7fgRhfyxm5GIUk9Gp/fR7K/HQJj9g90ZRx3oxkA+DDI 47GGgzFg4EHjeLdMqDLh8TtF8I8hU2lj2NI2EUCurRqoMNDmZg16mr02UeW0SnYKBeV/ 4ysN95iXY8D/iO81rxJXTgm53JIFId7euMScwcQcGXFJjyOX4K5Ig0YR+J4jYzv76xSe wx9E+LdkoHAIly6QvpguwpsfAgZuREo7bsjN/blXlr8NDbH2FsmZX2+PTfLpuADrrAyv LQwDorBuxk30DsI9OIVvxWQHxzWK/78EGoZEzAjoTb2MC0uRTCMEcxj5ot1S6DSqvt1H xlSQ== X-Gm-Message-State: AFqh2kpsk/kkIMLsdjLyFwqGsz5QJrdVKTjUwwGSxBG4z+8AJbd6vgAx vo7Qc7xXcoL/ueANRE+H92AtJA== X-Received: by 2002:a2e:9385:0:b0:27f:fc5c:bf9c with SMTP id g5-20020a2e9385000000b0027ffc5cbf9cmr4590798ljh.26.1673093322339; Sat, 07 Jan 2023 04:08:42 -0800 (PST) Received: from localhost.localdomain (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id h14-20020a05651c124e00b0027fd474e7aasm340858ljh.74.2023.01.07.04.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 04:08:42 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] remoteproc: qcom: pas: Add SM6375 MPSS Date: Sat, 7 Jan 2023 13:08:38 +0100 Message-Id: <20230107120838.1903498-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230107120838.1903498-1-konrad.dybcio@linaro.org> References: <20230107120838.1903498-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1754365571790339120?= X-GMAIL-MSGID: =?utf-8?q?1754365571790339120?= Add a config for the MPSS present on SM6375. Signed-off-by: Konrad Dybcio --- v1 -> v2: - Drop now-removed has_aggre2_clk drivers/remoteproc/qcom_q6v5_pas.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index d8a4ecec8535..10eaef85816d 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -831,6 +831,21 @@ static const struct adsp_data slpi_resource_init = { .ssctl_id = 0x16, }; +static const struct adsp_data sm6375_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .pas_id = 4, + .minidump_id = 3, + .auto_boot = false, + .proxy_pd_names = (char*[]){ + "cx", + NULL + }, + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, +}; + static const struct adsp_data sm8150_slpi_resource = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -950,6 +965,7 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sm6350-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sm6375-adsp-pas", .data = &sm6350_adsp_resource}, { .compatible = "qcom,sm6375-cdsp-pas", .data = &sm8150_cdsp_resource}, + { .compatible = "qcom,sm6375-mpss-pas", .data = &sm6375_mpss_resource}, { .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},