From patchwork Thu Apr 6 17:31:44 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: 80381 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1202922vqo; Thu, 6 Apr 2023 10:53:58 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBk3fT+CmqEs64I9DCtE0RPpbmdvvNnRp2iR5gPe+3UBX/g3aO2ENoH38wZLo4TTP60GWY X-Received: by 2002:aa7:9a0b:0:b0:627:6328:79d7 with SMTP id w11-20020aa79a0b000000b00627632879d7mr9445099pfj.34.1680803638216; Thu, 06 Apr 2023 10:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680803638; cv=none; d=google.com; s=arc-20160816; b=QEXVknL17crzppNTsJ5UGUuuPtc7CH0pYYc/GVB/TG8QLJogwp26lsCPBjgu7f9tAA ZfZIOSdINo+G9s0uBII0iPJl9UvS0vVdf2UUiLI0RxdfuE4Du0ah5dC4yT62dFF6zmIG 9SWzk+bDXJlsMD3MI53IVQvqKEShqna4VOnbsUReCRd8Uab+S0tC/igaUTkP2m1l1Mrs g69vxldeQYIS048idehIzI5c8dcCGVWisi16FFiGsse9N6W+isSY7YT6SwSPh7pStISw ySgfWq5DvWB3E76+5c6EEBNz3OUAkjmyHBdGm8r5SKbHl6kGU/p8A2k/IQasJtWXuB0U IQsA== 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=xqA+kJXDocnnJfMI7ArNRBbUlPcBQF5RtKhT0QIIGC4=; b=b7Amrhmo7IPKJB7L6ZrxH7HW/Y/nGbHxD4XQmyBBMfoOcGay/utkZbjJ6f+ycgzBcY llGfKywIsdY6mvmS5Dt/54omCJ4K92whiDciFxUvMwS1GurpC+R6Opys4aPzxWGbWTKs wJQbyQbakAWEPJkqUGIPrYUlf1Xif7+DBl+qddPfGlK1ZAiaZJ8gt49Ny/xtkGIdKzju cvYCoR+Yhe6jNpHZhuX71lSGQdwDKgs2kV8x+sUVttVnWtHxABGWJ5Bt5tK0njRiolpX RGTIo2Bt/eWUXftwoGhL36pKj4daOa2xvT2hs36+CqKsT4XkMqPEBemIeTNoEOZoAAJ9 Sqyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=mIUo+tgu; 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 q27-20020aa7983b000000b006260aac226csi1846899pfl.369.2023.04.06.10.53.45; Thu, 06 Apr 2023 10:53:58 -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=mIUo+tgu; 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 S240059AbjDFRdu (ORCPT + 99 others); Thu, 6 Apr 2023 13:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239059AbjDFRdm (ORCPT ); Thu, 6 Apr 2023 13:33:42 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A379775; Thu, 6 Apr 2023 10:33:23 -0700 (PDT) Received: from smtp2.mailbox.org (unknown [10.196.197.2]) (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-202.mailbox.org (Postfix) with ESMTPS id 4PspW36R4Dz9sRs; Thu, 6 Apr 2023 19:33:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680802399; 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=xqA+kJXDocnnJfMI7ArNRBbUlPcBQF5RtKhT0QIIGC4=; b=mIUo+tgupMVuC6rhfyRXB4hCxiMo72jYtSf3U3dH7NVGy/gRr2+Zw7i7mbos+ySUJIjsHC HD4lYOipfVS3FiIWQeM4TapAGeWdjy4Iz6JiohrlR8S7W01nS8RodzfbFGm4jf2EpaEUZc 5K41GHTsL1854fZrtYVGeBe3TkP0AN/EghFrJ5LQ+6ywuCVJQejwOjU7JduO7qTMxeVCxL sA4VYE0hgqqPcJKSavqYbLrnrw1pFnak3OJWOYuvFfMM0yHkpz0I4XOUHyylbQAGOJGZx7 vXEfYWsD4jImS4xE9CSvnooGEytMCR5710UZlAXjY41H+RSBxgML3+fyjHLGaA== 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 v5 1/5] arm64: dts: qcom: sdm845: add SLPI remoteproc Date: Thu, 6 Apr 2023 19:31:44 +0200 Message-Id: <20230406173148.28309-2-me@dylanvanassche.be> In-Reply-To: <20230406173148.28309-1-me@dylanvanassche.be> References: <20230406173148.28309-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?1762449237644410892?= X-GMAIL-MSGID: =?utf-8?q?1762450355456939624?= 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..338a715d110a 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -3325,6 +3325,42 @@ gpucc: clock-controller@5090000 { "gcc_gpu_gpll0_div_clk_src"; }; + 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>; + }; + }; + stm@6002000 { compatible = "arm,coresight-stm", "arm,primecell"; reg = <0 0x06002000 0 0x1000>,