From patchwork Sat Apr 1 17:35:18 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: 78157 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1353351vqo; Sat, 1 Apr 2023 10:42:43 -0700 (PDT) X-Google-Smtp-Source: AKy350acfYsD++wM1mov3ZVmscbVRNNvDwPP20hddlhy82Mvf9ePCSpKiO3O/UeNHnVV+5r7DDMq X-Received: by 2002:a17:907:2175:b0:920:7a99:dcd4 with SMTP id rl21-20020a170907217500b009207a99dcd4mr31359637ejb.62.1680370963111; Sat, 01 Apr 2023 10:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680370963; cv=none; d=google.com; s=arc-20160816; b=e98c4NW0pwOEC1ZQnvbqJbtkQdDA5y8YdiesJ9l7y++G9perUfWxZ3dVlnPfGMXzeg Khj7RX2yOksP3voTCqFCaoWQgFuML4MJIoGHBY3F2E9gsG1PelDVKXSAQwyKuNitAMi7 RD6OgANTXbdBALx0CDDS+Ps7e3CTtz9oeL8p6/ccs6i7716Pe+0nyfiea+vo8xRCLmi0 18UQBS4s5K9G6MDJMaXNpvXKwXoDeDKL3T9eoVPV+9VpMSYS4PHdR4AOgvv/A5cmmeCU 6OO5ROJxabTvJ/txDoACm4nNLp8yDtqh3hvSOg4kZmqqVCMyHxugzWATrVeGzEW2t5mJ gAVQ== 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=ma/wm0xVBl72gAWU3509ZTRQnV0qnoW6Y4Jt9iUow2+S+H4YIUAi1yNc5LgRTc6zQq KzopudKDHnJCu5nzptfJfaRgOVQ8Yg1Z2bxUypsBC563dCTYgESUM8QI67Q3qxdEl9qs 302A1Yd273nh2diLtxxDyhsXWVKycFZnW6SyXhmNXkPK7cmaaXFAbCcY7GVvkiXjCd24 o+lk7bI93etrS1lWdxXCKHygTYV1dniUqpgR1/1yef6bx+/VQY6E2Bh+IYwVH0n+dQR6 zrxIYtycsL1XXIC3wDcHoX0/ezMQtwr+cf+le8oQ/0fHAVLOHPgv7TCyeSeIGAYMPboW moHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=kyysQ7V6; 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 me22-20020a170906aed600b0092fcba1b0f8si1279933ejb.821.2023.04.01.10.42.17; Sat, 01 Apr 2023 10:42:43 -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=kyysQ7V6; 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 S229965AbjDARfp (ORCPT + 99 others); Sat, 1 Apr 2023 13:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbjDARfm (ORCPT ); Sat, 1 Apr 2023 13:35: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 73FCAB756; Sat, 1 Apr 2023 10:35:40 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (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 4Ppkp10gS2z9slb; Sat, 1 Apr 2023 19:35:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680370537; 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=kyysQ7V6HBz5rWJmFl0CLG8yD5McCRW/PE5CPvoajm0R7X5kdg0LXAY62Ttqdf+hBszU48 CDuJp1ew4TczyrxsK2IrGa5XFC6YFBooSbRikhCyDvf+b9zrGMbJraSxBygCYkMyaLjA2k aY31AWP6iWPNZXt2Zc2Ck+0v1rj9foEXKbHQoPv50FdagEEmOjudw5hSSC8upPgs69jT0Q A0Pm0HuAVQIEnS86cw43+KNQ/vmumo0LtKKCubdyytD6DFG7tkVs/2P4sCAVM/ZcrERvI+ yt4Mza89mnKsZ7iQ5vMb4L6VY+NMMY+p5so5RW4Fyo3jnC+4gHZDlrdAqGiDxA== 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 v4 1/6] dts: arm64: qcom: sdm845: add SLPI remoteproc Date: Sat, 1 Apr 2023 19:35:18 +0200 Message-Id: <20230401173523.15244-2-me@dylanvanassche.be> In-Reply-To: <20230401173523.15244-1-me@dylanvanassche.be> References: <20230401173523.15244-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?1761996662958620127?= X-GMAIL-MSGID: =?utf-8?q?1761996662958620127?= 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>,