From patchwork Thu Mar 30 16:53: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: 7487 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp8709vqo; Thu, 30 Mar 2023 10:09:16 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKcxFz9ZCMpJsfMc9rrurxi93jJG5sfLR7F6reJxS+FqqE+9zMqzQOx1WpgD+/UHG2G1fj X-Received: by 2002:a05:6a20:baa4:b0:d9:7af9:6a82 with SMTP id fb36-20020a056a20baa400b000d97af96a82mr7011658pzb.9.1680196156111; Thu, 30 Mar 2023 10:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680196156; cv=none; d=google.com; s=arc-20160816; b=BsdCd+u+UH599y3Htf+XAvw5TAtObhOP+qs2qnI4voPZcavBrILd0LWuhzkRLbQv7R 0fzUkVZNRGCZl5tL+XEbFwLRRNOqHxV4CnHj41XDI9JEx8jNHTacPEurqThQJeMfBJ2l VjPN+cLIDk9AN0WwhPzB83Y/E9N5pXIiOCdbDFq1+2rh3QimvNld+3DKgQzkmO68mjuM 0jSLp4iI9fqKoaxYm9lMz6P8d4ML9hegyBdO8YUC4v2K5EMrc59eGXdnU6vv3TCTvQwA dC0LyxAMrgZouIlRWstqOeDUHkry/yugXgJlGT6g1nI+Z29aTe9Nox3til1GXv3ayTSe 2zPw== 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=yw5UeIZa0PRwQ4TADlzPWSNt+mqlggJWWHWgo8amwkY=; b=D/FbJ0f/HDTvD9N/9fFMZgZ2odOaqM5fCm8kGXuQ7CTJXQ2QQz0XTpYr3buREPe1iC doK/ERwlzg14kTPxc7Akc24InpQ//NXIb+Ee+s6ZYdVxmCJ6nbs29frv0dFaLCiqc1ig W1b0CDAOncDz5TVaE/6exNRCubJdgBl8PZb4f0IZhnyL4IOpT8XQJbjBHvcKJDM3xQYJ Pphi8VcOZIF+Qn13fXfxOd8BYVisqFS6z7DreKQOX7H13DgwwhnyomwU2vB3xktJFurH tDwNvRv0wZwUx0jwnhD6BSWtPGUMvXW/FQ2n8pOE4vPApJBjCtlIAs4b7aV3cdBWrSxq lOGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=VHvP4TAU; 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 a71-20020a63904a000000b004f2920ecea3si94767pge.623.2023.03.30.10.09.00; Thu, 30 Mar 2023 10:09:16 -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=VHvP4TAU; 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 S231294AbjC3QyI (ORCPT + 99 others); Thu, 30 Mar 2023 12:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231444AbjC3Qxw (ORCPT ); Thu, 30 Mar 2023 12:53:52 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71A7D316; Thu, 30 Mar 2023 09:53:38 -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-202.mailbox.org (Postfix) with ESMTPS id 4PnTyQ0XZJz9sTs; Thu, 30 Mar 2023 18:53:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680195214; 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=yw5UeIZa0PRwQ4TADlzPWSNt+mqlggJWWHWgo8amwkY=; b=VHvP4TAUn0G4VYLbirWKxAbIfZLSF+mEUYKqHQhDtDMa6RiXicVO8ZVKu17hrAUSHBLhIg wRRcYWl9okooTbVr2Xe6zv7LHYcI6TBIDTdaoeZZeF3pHKgw4/rJ+8Ybh9s6BVIK9Z4lRi SeKK3LKIbZTtTTJjPG1AY8Kwdbxv8hM4NH7gMfxdnjCcBzSPOqTZURxPswJ1TW2olDjozx oAXJPXWwjAExyZXcdnNzqxlL48gtltMW8M5glMU5aPCgrYinzUS+YyafU7Z7KQhicDDUIy bXeL9xDLuA6uZzKdsBVDpqJw83vYa0ct0onh0S/qfW2uTdS/UGTXeGkLELH8PA== 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 0/4] dts: qcom: arm64: sdm845: SLPI DSP enablement Date: Thu, 30 Mar 2023 18:53:18 +0200 Message-Id: <20230330165322.118279-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4PnTyQ0XZJz9sTs 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?1761813364400828523?= X-GMAIL-MSGID: =?utf-8?q?1761813364400828523?= * 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 (v2) to support the SLPI DSP in SDM845: https://lore.kernel.org/linux-remoteproc/20230327183736.496170-1-me@dylanvanassche.be/ 2. FastRPC changes (v2) to support the SLPI DSP in SDM845: 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 Changes in v3: - Dropped FastRPC dt-bindings change, unnecessary to relax the bindings - Add reg property to compute-cb for the SLPI on SDM845 Kind regards, Dylan Van Assche Dylan Van Assche (4): dts: arm64: qcom: sdm845: add SLPI remoteproc dts: arm64: qcom: sdm845: add SLPI FastRPC support dts: arm64: qcom: sdm845-oneplus: enable SLPI dts: arm64: qcom: sdm845-shift-axolotl: enable SLPI .../boot/dts/qcom/sdm845-oneplus-common.dtsi | 5 ++ .../boot/dts/qcom/sdm845-shift-axolotl.dts | 5 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 60 +++++++++++++++++++ 3 files changed, 70 insertions(+)