From patchwork Thu Mar 30 16:53:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 77328 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8fd2:0:b0:3b7:ab69:e81 with SMTP id r18csp1071147vqt; Thu, 30 Mar 2023 09:55:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ablS/kRoyQZdZlPq6Xpfhjnum/hFrKk9+wGOEwiHevr17bsguEwu7hIY2H5UyQFbKaUQQS X-Received: by 2002:a17:903:230d:b0:1a1:9787:507d with SMTP id d13-20020a170903230d00b001a19787507dmr7924436plh.3.1680195306667; Thu, 30 Mar 2023 09:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680195306; cv=none; d=google.com; s=arc-20160816; b=GxKyAV292wB6CuR0RyW/9Fd1LpJe3PLVb6SoyGXK1KWFL2Gr/Z1Uw2cmGJKIVqWkea CTSoW9M5zSuXbuE8vaVZr40KpAV/zgTAnbEnZi8w6tMTeohehViXNQUPH7sMEDraYD7m h9qwKNiBH+zDMeipEE/tsFxwkjQs+KG+cknX/dIeDGe7hKpbUcUOocx8VhRz+SvofyZS veSdq/snYpiaaJqa7E78cki5/Fh39e2Bp1XB9GHgGOLeSftCxgTRJu/+voLJ2nqBNtmj szN/MtNqXVAiw6wLKS9v2Gtjtdw3S63RdQiQQpiF2iONw5S3XLrkclDRyc9eHejrP1Wu wVKw== 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=/m56WRt9MBUX21VaYs44Au/+VOI1zJ1co48wCBr7f3Y=; b=V5HzfL4mGG+w6NMR5Sn+bvjyjlWo6Fx6lQz5l+RTqhppBh1Tb3wN/kZsrxn4MoQfdK 8pxm1MV1bQFycn7ZEu0R17+ZlTa7KYkQVn2v47N2y9jqqeyH/9ck/rE+Vmm+WiHeHtUq wm0OMbgJ3R2dfi0E6EpD4kAt5ia1Dt7vujxyRCIPMfQ9tiMorGC9DSmioR+UQzpQFp+b wQ4mvsuJV500b91l6Qi6yDk1TPZjWHp8It6PQ+dTrKJcqY/+0VlgnOZCKYAmWzgd3sAt ne0LP6vL6JyqUHFPN+54PJzN0NgYzdwtdRCZGtpQ3yye5I3gexLIiBS5pNUEWm+GcikW azUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=uyzaNUu0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lh8-20020a170903290800b00192d6fb649dsi33267051plb.242.2023.03.30.09.54.53; Thu, 30 Mar 2023 09:55:06 -0700 (PDT) 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=@dylanvanassche.be header.s=MBO0001 header.b=uyzaNUu0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230209AbjC3QyK (ORCPT + 99 others); Thu, 30 Mar 2023 12:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231149AbjC3Qxw (ORCPT ); Thu, 30 Mar 2023 12:53:52 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E3BE1AC; Thu, 30 Mar 2023 09:53:39 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4PnTyS466Yz9scX; Thu, 30 Mar 2023 18:53:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680195216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/m56WRt9MBUX21VaYs44Au/+VOI1zJ1co48wCBr7f3Y=; b=uyzaNUu090TdHOXj5AW9YbXQ4gccf82/ov67LGQwwLEMXJH3hsuUC5a6FljYOjEgwH8J+7 URtUPTVj0dok11URn8uxQPK8FEI638+8X9SZ8TigjN6x6XyIuVZEDKFZigY7ai16An0rRt dVwbvZdhb8D/2zFyu2+rEPgMAScG9mWfINLO8MSzz++sT+rIWMBvUBHBT88UIjxrR7B40h C3AXtSbhnSRG1vNUQCDv8KwGVieOcAzNTam8iQ9cbMfs4QfwRG/DTIK9hKMveC/kqouOuH 6rxaTLXveGWICWX65dmvXFUJnJUhTLkwAdKB9TJqPeR44i8oL6doHsI/yjBSPg== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH v3 1/4] dts: arm64: qcom: sdm845: add SLPI remoteproc Date: Thu, 30 Mar 2023 18:53:19 +0200 Message-Id: <20230330165322.118279-2-me@dylanvanassche.be> In-Reply-To: <20230330165322.118279-1-me@dylanvanassche.be> References: <20230330165322.118279-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4PnTyS466Yz9scX X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1761812474069807340?= X-GMAIL-MSGID: =?utf-8?q?1761812474069807340?= Add the SLPI remoteproc to the SDM845 Qualcomm SoC which is responsible for exposing the sensors connected to the SoC. The SLPI communicates over GLink edge 'dsps' and is similar to other DSPs e.g. ADSP or CDSP. This patch allows the SLPI to boot and expose itself over QRTR as service 400. Signed-off-by: Dylan Van Assche --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 2f32179c7d1b..3b547cb7aeb8 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -3311,6 +3311,42 @@ glink-edge { }; }; + slpi_pas: remoteproc@5c00000 { + compatible = "qcom,sdm845-slpi-pas"; + reg = <0 0x5c00000 0 0x4000>; + + interrupts-extended = <&intc GIC_SPI 494 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&slpi_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + qcom,qmp = <&aoss_qmp>; + + power-domains = <&rpmhpd SDM845_CX>, + <&rpmhpd SDM845_MX>; + power-domain-names = "lcx", "lmx"; + + memory-region = <&slpi_mem>; + + qcom,smem-states = <&slpi_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + label = "dsps"; + qcom,remote-pid = <3>; + mboxes = <&apss_shared 24>; + }; + }; + gpucc: clock-controller@5090000 { compatible = "qcom,sdm845-gpucc"; reg = <0 0x05090000 0 0x9000>; From patchwork Thu Mar 30 16:53:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 77329 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8fd2:0:b0:3b7:ab69:e81 with SMTP id r18csp1071394vqt; Thu, 30 Mar 2023 09:55:39 -0700 (PDT) X-Google-Smtp-Source: AKy350YzImvcLdNNmGOrxFzOFn6VhYloVUBgBOxNtjvFf9Ita+Zz7vaFp98Ry9o3akFjYWphHS6L X-Received: by 2002:a17:906:551:b0:92a:8067:7637 with SMTP id k17-20020a170906055100b0092a80677637mr19463111eja.61.1680195338755; Thu, 30 Mar 2023 09:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680195338; cv=none; d=google.com; s=arc-20160816; b=Myl71KASovUTxjvIlxJfoKbrFAjw2mMITSUwEzsz3ympYA2bWWeQuLhiTUGGlu4DRP MKgy1zAXXhHzzCBkIKfMoLOI2tMgs3Top5K+ZY5pX47lgUtSd9/h0oWS1Df5+vP3LiFX FJdJkKWCmMt1AZZmffLQJ6o6hyDzpPh+OSp9vscaISUSCCTtW1i1nHJh/sptSlA5McFG mrIocUTfAHwLHUWPOlbN5FViGSlvJTyc6iM9vE2m2DZX4nHhZirShPti8RseoOcb7D/s mUOI620GpW3BPgPNLESD1+vjajxz6NbfycswWzcNwkdMso8qtb04Herxt4jYwN4cD/B5 GIQA== 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=DJMlDYTEyZMoHy7ddCUlUChH74G+JU2iSWGTmKQqo+M=; b=Vt42JQ+cAu6EMCfDjPN5cYdCqvoACryCfSyxWwBM+ka23rEKuoIaEIBZb7eSbvF4f/ E7SBopn+QJKVW5DJAv5zLawiRkVOdv6oDeZ65OXIeD3NSinPCnMdhyiGuwwMjzzzSwYL TsKmALW7FQG5Gs2dz2vJIxZoxN91dTPnvl6qSkndregdrz/o5YBXEeU826muVG3wxHOC 5zDLm0t2EseAUmIFhx4wtGPkQBYYLLqEjR7txsER0VXMMSgmPMmJKSMwPwj8J9guaJjG TuzGoKCSMxuS+xxTFuUNDy3XjT8qI3TLdp72I9XZ3me4KKl8e9WcV28CZCb0IWHZ78ov 2TRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=N70FlUmk; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id le26-20020a170907171a00b00928798bfefcsi47457ejc.465.2023.03.30.09.55.11; Thu, 30 Mar 2023 09:55:38 -0700 (PDT) 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=@dylanvanassche.be header.s=MBO0001 header.b=N70FlUmk; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjC3QyN (ORCPT + 99 others); Thu, 30 Mar 2023 12:54:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231969AbjC3Qxx (ORCPT ); Thu, 30 Mar 2023 12:53:53 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C2F4EB6C; Thu, 30 Mar 2023 09:53:42 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PnTyW117gz9sxt; Thu, 30 Mar 2023 18:53:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680195219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DJMlDYTEyZMoHy7ddCUlUChH74G+JU2iSWGTmKQqo+M=; b=N70FlUmkzpGdLtb4sCzInMwZ+3Pn2B146YXQhW7SEuX7b8D4ht6UU0q84/RcRalDAy4zkf +i30rIDZX5FgXlc5X0fU5z3wOdov5BYY2hAGxnOw1Xhh8LMZlE3Qd2kdG6nPddR9/VG0UZ qnN40geJACXNrzSdQmmfDfAfO3dIEiXUd9BIBseZnz41SPZM3fnwygxkXRrfTije7lPDWU 87a9kqyXGIOXWnXVUAjAEXROXZcO5FkO55uxUdOxQpPa6t764K970WDIAvOqnJUCgGlXlJ dSKdqGvXnVLjrwPP+tvWYNwrVz4ELw/51+DjqU04X/Kum4eimMN9OTJcGHZmRg== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH v3 2/4] dts: arm64: qcom: sdm845: add SLPI FastRPC support Date: Thu, 30 Mar 2023 18:53:20 +0200 Message-Id: <20230330165322.118279-3-me@dylanvanassche.be> In-Reply-To: <20230330165322.118279-1-me@dylanvanassche.be> References: <20230330165322.118279-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4PnTyW117gz9sxt X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1761812507288439014?= X-GMAIL-MSGID: =?utf-8?q?1761812507288439014?= Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC through an allocated memory region to load files from the host filesystem such as sensor configuration files. Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, similar to downstream, to allow userspace to communicate with the SLPI via the FastRPC interface for initializing the sensors on the SLPI. Signed-off-by: Dylan Van Assche --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 3b547cb7aeb8..8ea4944f3ad6 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -878,6 +878,14 @@ mdata_mem: mpss-metadata { size = <0 0x4000>; no-map; }; + + fastrpc_mem: fastrpc { + compatible = "shared-dma-pool"; + reusable; + alloc-ranges = <0 0x00000000 0 0xffffffff>; + alignment = <0 0x400000>; + size = <0 0x1000000>; + }; }; adsp_pas: remoteproc-adsp { @@ -3344,6 +3352,22 @@ glink-edge { label = "dsps"; qcom,remote-pid = <3>; mboxes = <&apss_shared 24>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "sdsp"; + qcom,non-secure-domain; + qcom,vmids = <0x3 0xF 0x5 0x6>; + memory-region = <&fastrpc_mem>; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@0 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <0>; + }; + }; }; }; From patchwork Thu Mar 30 16:53:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 77330 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4299vqo; Thu, 30 Mar 2023 10:03:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bONugsGGOlwOLWlnMTEweh4J1Qa1Rj96nPM9heewlM+H90ZNY1meykER7B6ERaRDINjOLV X-Received: by 2002:a17:906:5a62:b0:932:5f7d:db33 with SMTP id my34-20020a1709065a6200b009325f7ddb33mr22939629ejc.34.1680195810890; Thu, 30 Mar 2023 10:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680195810; cv=none; d=google.com; s=arc-20160816; b=D2FU9YGMeKJhqbaO5DnQRfP0P7Phtyk0OiUQVt3QHRsvSA7YPpdlM+EZlTmVJwJA+h azfQPSKzRqknDlfT/KeMhmnQ+2CTrde3s/qqdqVVb6kNiy7ObrV2z8Hfgy/UsTspByGv iXZTsERe4JPW7LVTvb0GkUQrpJmlu6NNaH9gd6LC6Y+Ujhxsb0EHrKRMv7PJdcSY5fM4 a/hN+Qqkb2KOOmLNP2bRNcZcAca048QNrcAuWMXiq1KlRSlhF8jHSZkpHeVSOHBJTLlk ONwnLMXKZG2y9lKbrR3du4Sitew7oHjVOsYQRgPjQv3TxtmaWxPMN2NspSPHhdvWYsPF nNvg== 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=ii3vQ4PmnknxwthxZgNTHiVuAEdqpO2ETRYpvK0GqeI=; b=pk7gC4bZiQAVAC/HPp9zTdUkjm1iTROgYVpPVs/h7iHeLd6jTziYoYz4Wqyk3ey3lM VknlXot9VZcXNRcfsKmpl7rfs1SiaBeTuQGkcGnMt0PlPB4LTTip6r7QEyCnvP2UVVDM tVcdSM4zuBVpZUv1ApKmFTquJJT+dpb6e1qXHb3LSDnSUNWd3CD2mgD8TdTsL9Bhyxri M0p1AXcCswnDV1IefZ0+VFl9ttI2CK56KK+qPtC3RnKK7h43zEHbD29a8QLhmmXqCGpK /5Jtqg0/jUgDiWe/34IRsPJ6A4Ezf3N8WWAaAEgtvHdvwnla9y/IXK6ktj+VW1zLJPih ijhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=cPdZFgZi; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a1709063c0b00b0093b1b457558si55218ejg.956.2023.03.30.10.02.12; Thu, 30 Mar 2023 10:03:30 -0700 (PDT) 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=@dylanvanassche.be header.s=MBO0001 header.b=cPdZFgZi; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232166AbjC3QyU (ORCPT + 99 others); Thu, 30 Mar 2023 12:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231698AbjC3Qx4 (ORCPT ); Thu, 30 Mar 2023 12:53:56 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C7A4EC58; Thu, 30 Mar 2023 09:53:44 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4PnTyY2c4Hz9sSK; Thu, 30 Mar 2023 18:53:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680195221; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ii3vQ4PmnknxwthxZgNTHiVuAEdqpO2ETRYpvK0GqeI=; b=cPdZFgZiAsX+wVexQkxMHa2aPlYWFBd7mZuAwDlnwW5LL+Lfw+C+cFLFF6O2TwatG+qKv4 yYe7TOVve+4iLU6ipyCl+0tlNXAlDujzUjMPTebvQTylROBo/tS9wmUD+8JSvXid4Yu9Na AGS9ZaqSfj+2aFMjC41ILeHGaec+EnvaeJYgxuGAyZmO6+h7eItwisiZz+JyA15U7PPw6K lY9P7u5MOLCqKKKa+NSWiQTtgjEgB62sX68vrNBJTlhYHlUheh3S8DePc2PAwbxO8zrF3W srqahIhJlm3X956Hgs5q7a6AZ8XWh7QsmKqZF3pIjDMO9gb8mUgwDeAB6Ss+yw== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH v3 3/4] dts: arm64: qcom: sdm845-oneplus: enable SLPI Date: Thu, 30 Mar 2023 18:53:21 +0200 Message-Id: <20230330165322.118279-4-me@dylanvanassche.be> In-Reply-To: <20230330165322.118279-1-me@dylanvanassche.be> References: <20230330165322.118279-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4PnTyY2c4Hz9sSK X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1761813003007363006?= X-GMAIL-MSGID: =?utf-8?q?1761813003007363006?= Enable the SLPI DSP on the Oneplus 6 phone with a Qualcomm SDM845 SoC. Signed-off-by: Dylan Van Assche Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index b01542d79ae2..3bd15984990c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -552,6 +552,11 @@ &qup_uart9_tx { bias-disable; }; +&slpi_pas { + firmware-name = "qcom/sdm845/oneplus6/slpi.mbn"; + status = "okay"; +}; + &sound { compatible = "qcom,sdm845-sndcard"; pinctrl-0 = <&quat_mi2s_active &quat_mi2s_sd0_active &quat_mi2s_sd1_active>; From patchwork Thu Mar 30 16:53:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 77337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp7865vqo; Thu, 30 Mar 2023 10:08:04 -0700 (PDT) X-Google-Smtp-Source: AKy350bLmJ+S5uMijScDUcrU4xkjAFZ7wGYGBlu/I5XS18x65er5+v8CIHIRbC/NYx8z3LCcNwSX X-Received: by 2002:a17:903:230d:b0:1a1:9787:507d with SMTP id d13-20020a170903230d00b001a19787507dmr7966920plh.3.1680196083775; Thu, 30 Mar 2023 10:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680196083; cv=none; d=google.com; s=arc-20160816; b=b9Sn8rtgu38NuIyG4pyEN5ZFQ25s0RWcCNLNZbVIYnApf57biJJ9sgbqANmtma3EQG 2lA5WLt5EqWSanMsTUCIlZDhh9Zl3frok1jq6MySorZWLH1RLJwa59JxkpoqUtE3U6Dg Qh4P3MZSRYJt5NccNWqzbBdDzJLXLtIYUGtpzNUgAJ1SGfnSwQm9fOiQwgEVobZy6NAH rzTJVKG9vLqJC0wH2qWuvpiIBFOSD+ZhFQvHCtjLTW2LGpDleLl54KpMSs18pxxkGBSA rCS3IXaZN8qj7sRcHsfDBb605JSs0b9VFUDXMRW3SRAyDuftsg1NXadvb++FqfyWb6hu rIOA== 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=dKSbFG5DGVwvXJCZEdfm9iFVOlxnj2KKA0SRmRRz/mM=; b=devpRu7yCVdIUbiarSvmJY//LMat1JAHptyIKQF2k1WHtfAO4Tnu5UqAnHmm9uIVUh Gbed5L2P8uAGPA3U5/hN16ADuk8JPxaosvxyRGwydubHrLGKSxtZ6HXBAG4aYv3G5AKA lxXRh85H6eelMEEn0F99tfLayM/BnfaVT7QGIrD4SNSRhT4X5Aekk310pEb0PO3pjKvK 8v1ECBNL9rhSvwx1608Ko1Je1cCqkPKtFv6XXI3VbpoLGq152szIW75/E2xry1VzI28s ZO+KW/MX9YeevB5U9EVWyVMvwFZ5tdNTwu6vrshe2dgPjqq6IvgnXmHy0dfPxqc+bF+F 3b3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=Xm03N916; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a170903201300b00198fca8211bsi14462pla.57.2023.03.30.10.07.21; Thu, 30 Mar 2023 10:08:03 -0700 (PDT) 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=@dylanvanassche.be header.s=MBO0001 header.b=Xm03N916; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232096AbjC3QyQ (ORCPT + 99 others); Thu, 30 Mar 2023 12:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjC3Qx4 (ORCPT ); Thu, 30 Mar 2023 12:53:56 -0400 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBBB7171B; Thu, 30 Mar 2023 09:53:46 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4PnTyb3T7Cz9sbY; Thu, 30 Mar 2023 18:53:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680195223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dKSbFG5DGVwvXJCZEdfm9iFVOlxnj2KKA0SRmRRz/mM=; b=Xm03N916cgtDouzhEd8joAt0pt+gaeuj/NgdpBsez7EMQ9sj0HPDPOvxoaBOQcNGZOyDW+ ie164UorDGWtFMz3PsdbD/iROaatkYHsytzsLlU2KxeXFCkdipuFo7+RT/PEBt1MUf6B/X kHYFfDV+vW182mDdv1bwba68sfzOUN6fB2g8Su9UoNsFyxLIDx9NnNlDPIz1dZvUjOKK2G u+xzeV2yJwUqN6MvLle1GuoUv+UGyJYJ/rqdc2x2ThOGq2F4m8VvoiOlUR4KhrC0ksIv29 2VhCRHuw4YCL4T/jE8aBFhSvoEF/7jGl8YVGyKNnVVvr3my5GSa4InE7fFZ6tQ== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH v3 4/4] dts: arm64: qcom: sdm845-shift-axolotl: enable SLPI Date: Thu, 30 Mar 2023 18:53:22 +0200 Message-Id: <20230330165322.118279-5-me@dylanvanassche.be> In-Reply-To: <20230330165322.118279-1-me@dylanvanassche.be> References: <20230330165322.118279-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1761813288681311836?= X-GMAIL-MSGID: =?utf-8?q?1761813288681311836?= Enable the SLPI DSP on the SHIFTPHONES SHIFT6mq phone with a Qualcomm SDM845 SoC. Signed-off-by: Dylan Van Assche Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index b54e304abf71..bd9571a258cf 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -572,6 +572,11 @@ &qupv3_id_1 { status = "okay"; }; +&slpi_pas { + firmware-name = "qcom/sdm845/axolotl/slpi.mbn"; + status = "okay"; +}; + &tlmm { gpio-reserved-ranges = <0 4>, <81 4>;