From patchwork Mon Mar 27 18:48:06 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: 7287 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1723965vqo; Mon, 27 Mar 2023 12:00:04 -0700 (PDT) X-Google-Smtp-Source: AK7set9k0ROtd5RV/JdC7Eq4L0NLTaNXW3Z+rkdKUoBDi/NHBxBKgwd2YTHxiMx3Zrv9xiaoMM1u X-Received: by 2002:a05:6a20:8b9b:b0:cd:a358:bb7 with SMTP id m27-20020a056a208b9b00b000cda3580bb7mr10199872pzh.37.1679943604169; Mon, 27 Mar 2023 12:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679943604; cv=none; d=google.com; s=arc-20160816; b=twJSFL5ROYTUJAAOpFE5aiuGVwk+81PBEPEcrhvFyfKv70Y6451IHXnGMZqBc2u4QK YR1bSTSZYmEBAf+NHtycvX3mldBKtxu2iT0FGlEb2rH0WZ4p2asHpsn/0ucX/7NIF46m s9al2VuTCCYKv9lq+EuYkaXOk0dfqD2+4NG4damAHT/T930nvjiaLAMpAtujBvlYr/2j bEqmnHqyTq51wjmPMwtXvqqY9ZPMhNkrKOflgT20oWXCynHq2aXlfrMUgj5cO7nnENQm GxT4A5wHSPcbbdav3wHiPRSa1jpaFE2ffx3WKlaitGy42tz3rpoYo9VHQicoeYaaLctr PHVQ== 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=dhL+LGkrki0muDqB8H1PWedY5IW9NDpXQ10RZ+jS+8A=; b=sbIy5TFjvKml84T+kAzntKmMnS+qqtjjtCI+tjdgkXzfmWmvuh6Jp+vONE+KEtFKnX eCSBr8Udpx8DF1NDIUvt/nge3hA+pVUap01yTGBz7hn5EEzOC1Yb4+aVg+lPMKMphoe3 0MORA7gkvUuOuCxrCFEwQ0xjBcXNBREpgCbA0fOK43saUvzXLlWdz8M/sjtHW8e0/aWk 29Lcusc9+ufMBNBbhJ4/7242sY/dyx6SES6LGtnK14+zWgu+uweEYkt/GNHcBk0DFAdz qRKRIHSK+5LNx9I9/tvRHm6oVAQJtgiScT0nGtmyA3qkZlHh5/wbd+zalGYaSqEklfOI M2Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=U4i6PKhz; 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 u13-20020a63470d000000b0050bf6a432ecsi27170344pga.681.2023.03.27.11.59.51; Mon, 27 Mar 2023 12:00:04 -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=U4i6PKhz; 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 S229985AbjC0Ssa (ORCPT + 99 others); Mon, 27 Mar 2023 14:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjC0Ss2 (ORCPT ); Mon, 27 Mar 2023 14:48:28 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050:0:465::102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F3BA3; Mon, 27 Mar 2023 11:48:27 -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-102.mailbox.org (Postfix) with ESMTPS id 4PlhfH2qykz9sTW; Mon, 27 Mar 2023 20:48:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679942903; 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; bh=dhL+LGkrki0muDqB8H1PWedY5IW9NDpXQ10RZ+jS+8A=; b=U4i6PKhzr4RvzH9iWGMl6PPd7WLKRwAUoklD+dV+8+/89X5vDp0dTOAiKOLgaj8zji6hLo 6dYqHe4CIBN8ckpzpuUGy9FbW++xyHrZuSoaoUSBOFDPiDdv3LhZ2WIMkmteHxWFQyCQub Jv9d3mW9cWrVtCyzYHBWFHWOzKNDUr8ltrR557/xZkoYn1wmj7wSHtFzEJiAI9waLIl8Ps LDJaK77jRrT4IgJkswQsLtP2u9/VzDgtyJ945HWWVy/S+dtiylsro3+UtVLJueV0ZHByUE TSjObyXFmAJSsph1FfH4KdGR/YinmPl5KmoZHO4JyOeAio2CAFLpU+m5e0O3yQ== From: Dylan Van Assche To: Andy Gross , Bjorn Andersson , Srinivas Kandagatla , Amol Maheshwari , 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 v2 0/5] dts: qcom: arm64: sdm845: SLPI DSP enablement Date: Mon, 27 Mar 2023 20:48:06 +0200 Message-Id: <20230327184811.499553-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?1761548544425007468?= X-GMAIL-MSGID: =?utf-8?q?1761548544425007468?= * About * The Qualcomm SDM845 SoC has a separate SLPI (Sensor Low Power Island) DSP for sensors connected to the SoC which is responsible for exposing sensors to userspace, power saving, and other features. While sensors are connected to GPIOs of the SoC, they cannot be used because the hypervisor blocks direct access to the sensors, thus the DSP must be used to access any sensor on this SoC. The SLPI DSP uses a GLink edge (dsps) to communicate with the host and has a FastRPC interface to load files from the host filesystem such as sensor configuration files. The FastRPC interface does not use regular FastRPC Compute Banks but instead uses an allocated CMA region through which communication happens. * Changes * This patchseries completes support for the SLPI in the Qualcomm SDM845 SoC by adding the SLPI to the SDM845 DTS and enable it for 2 hardware devices: - Oneplus 6 - SHIFTPHONES SHIFT6mq * Related patches * 1. Remoteproc changes to support the SLPI DSP in SDM845 (v2): https://lore.kernel.org/linux-remoteproc/20230327183736.496170-1-me@dylanvanassche.be/ 2. FastRPC changes to support the SLPI DSP in SDM845 (v2): https://lore.kernel.org/linux-arm-msm/20230327184204.498032-1-me@dylanvanassche.be/ This serie does not depend on any serie, but all of them are necessary to enable the feature in the end. * Changelog * Changes in v2: - Removed double blank lines - Enforce alphabetically order for 'slpi_pas' - Reordered 'slpi_pas' properties - Fixed FastRPC syntax - Dropped qcom,assign-all-mem property as this is not necessary anymore Kind regards, Dylan Van Assche Dylan Van Assche (5): dts: arm64: qcom: sdm845: add SLPI remoteproc dt-bindings: misc: qcom,fastrpc: allow FastRPC node without reg entry dts: arm64: qcom: sdm845: add SLPI FastRPC support dts: arm64: qcom: sdm845-oneplus: enable SLPI dts: arm64: qcom: sdm845-shift-axolotl: enable SLPI .../bindings/misc/qcom,fastrpc.yaml | 3 +- .../boot/dts/qcom/sdm845-oneplus-common.dtsi | 5 ++ .../boot/dts/qcom/sdm845-shift-axolotl.dts | 5 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 59 +++++++++++++++++++ 4 files changed, 70 insertions(+), 2 deletions(-)