From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E395EC4167B for ; Fri, 8 Dec 2023 15:09:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574249AbjLHPI4 (ORCPT ); Fri, 8 Dec 2023 10:08:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574213AbjLHPIl (ORCPT ); Fri, 8 Dec 2023 10:08:41 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 392481BF8 for ; Fri, 8 Dec 2023 07:08:46 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40a4848c6e1so26292855e9.1 for ; Fri, 08 Dec 2023 07:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1702048124; x=1702652924; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=WDlnmNszOgddS8dBFWx/WoEU+LfvOrqv92GavQrCmjw=; b=zRp9uEjbqqXuiLz/ZNVOa6qRlTO/koyXsJma9ZCscz6W7BtH8tlZbBTpCwuilzqnsI +AMej+rHAey0IOAiwEUKrUVXZIijSLwrWxPBeq1thtNSoLWv0golFVWfYjG8DYduz1u0 ThrVUXoRPeAfj1QWHDivYjkEwEVWOoPyqFz6rJIVsFg1RYoMOGkA0HtCJli0g49tAb4P aimzGlAeZAOGsxpQ0KklYGuPJvho9GfsogWxPV53f+0D8oAhJd3O1C958J6xJ2kQkD8T +0WHABUStMk/ao8a1jYSgsIaoOb+nMNdJ/Mq2YZlmy3EXLS9DCnsGhLCr/n5WaejOPsv Odtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702048124; x=1702652924; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WDlnmNszOgddS8dBFWx/WoEU+LfvOrqv92GavQrCmjw=; b=qGBQG+knl4kx8pfe2ebXIsmqmT89mTjIWB33ixbdhgPvuIX62rtT0RjX0RqwVH1j08 0YLs1SgxYjWSNSpPE0dmvQ+H907L0NmzoXxFgNsko35VRU0A6aqMIuDTptIiL+vuai3w 7Y7/gSE/yvXsP8PECuObTBWmz7gxnar8XAeanVeb1rKtaOIy7t+7w2qw/+2gedwTROZR YVifXmR//OFn2iDwxrJM+2vtKARSN5JyEvNyYMdcMNYaZH+QYdnjYkvgetACoh+Hurfm UMdBk8YKYLUAy5+8Top8pPDbDKOcE75iKc/3z5KpMrf6atYMZe+dAvsmZ6Jn/K/olCUJ VPRg== X-Gm-Message-State: AOJu0YyKnOXkirGI7QObCeksAQA46jHFH9rWHXcZ6sMlZKER7jkbhWAQ gEJMNZRyrymev3LoynO/vfTpYQ== X-Google-Smtp-Source: AGHT+IGgoEvGG4TIXnrkvEhDL9ohUy/9JK0zZnX9KJnrl/fd4U4EFWyMkK02TZuT4Dr/S7cum/F7PQ== X-Received: by 2002:a05:600c:22d9:b0:40c:24dc:1166 with SMTP id 25-20020a05600c22d900b0040c24dc1166mr48233wmg.189.1702048124640; Fri, 08 Dec 2023 07:08:44 -0800 (PST) Received: from [192.168.55.221] (tmo-113-102.customers.d1-online.com. [80.187.113.102]) by smtp.gmail.com with ESMTPSA id r25-20020a170906351900b00a1cc1be1146sm1096114eja.217.2023.12.08.07.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 07:08:44 -0800 (PST) From: Luca Weiss Subject: [PATCH v3 00/11] Remoteprocs (ADSP, CDSP, WPSS) for SC7280 Date: Fri, 08 Dec 2023 16:07:56 +0100 Message-Id: <20231208-sc7280-remoteprocs-v3-0-6aa394d33edf@fairphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAE0xc2UC/33NQQrCMBCF4auUrI1kJsamrryHuAjTqc2iTUlKU ErvbtqNIOLyfzDfLCJx9JzEpVpE5OyTD2MJfagE9W58sPRtaYEKNSisZaIarZKRhzDzFAMlqU4 WlSUCBi3K4RS5888dvd1L9z7NIb72Hxm29S+XQSqpDHFj2kaDcdfO+Tj1YeQjhUFsZMYPA6B/M lgYNmS61uDZuvqbWdf1Da3UZwv/AAAA To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , cros-qcom-dts-watchers@chromium.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , =?utf-8?q?Matti_Lehtim=C3=A4ki?= , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the ADSP, CDSP and WPSS remoteprocs found on SC7280. And finally enable them and WiFi on the QCM6490-based Fairphone 5 smartphone. The first two patches are fixes for the MPSS to fix some dt validation issues. They're included in this series to avoid conflicts with the later patches and keep it simpler. Then there's two patches reorganizing the reserved-memory setup for sc7280 in preparations for the new remoteprocs. Please note, that the ChromeOS-based devices using SC7280 need different driver and dts support, similar to how there's already qcom,sc7280-mpss-pas for "standard" firmware and there's qcom,sc7280-mss-pil for ChromeOS firmware. I'm aware of the series also adding SC7280 ADSP support with the last revision sent in June this year. https://lore.kernel.org/linux-arm-msm/20230616103534.4031331-1-quic_mohs@quicinc.com/ However there's some differences since that series added the "pil" variant for ChromeOS, not "pas" for standard firmware. Also it seems on ChromeOS devices gpr+q6apm+q6prm is used. On my device it appears to be instead apr+q6afe+q6asm+q6adm but I don't add either in this series to keep it a bit simpler, and I couldn't test much of that yet. Signed-off-by: Luca Weiss --- Changes in v3: - Rebase on qcom for-next and resolve conflicts - Pick up tags - Link to v2: https://lore.kernel.org/r/20231113-sc7280-remoteprocs-v2-0-e5c5fd5268a7@fairphone.com Changes in v2: - Add patch renaming memory@ reserved-memory nodes (preparation for next) - Add patch moving mpss_mem and wpss_mem to sc7280.dtsi - Follow *_mem node being in sc7280.dtsi also for ADSP & CDSP patches - Use (squashed) .mbn instead of (split) .mdt for FP5 - Set qcom,ath11k-calibration-variant for FP5 - Pick up tags (except for Krzysztof's R-b for ADSP & CDSP since there were changes) - Link to v1: https://lore.kernel.org/r/20231027-sc7280-remoteprocs-v1-0-05ce95d9315a@fairphone.com --- Luca Weiss (11): dt-bindings: remoteproc: qcom: sc7180-pas: Fix SC7280 MPSS PD-names arm64: dts: qcom: sc7280: Remove unused second MPSS reg arm64: dts: qcom: sc7280: Rename reserved-memory nodes arm64: dts: qcom: sc7280*: move MPSS and WPSS memory to dtsi dt-bindings: remoteproc: qcom: sc7180-pas: Add SC7280 compatibles remoteproc: qcom_q6v5_pas: Add SC7280 ADSP, CDSP & WPSS arm64: dts: qcom: sc7280: Use WPSS PAS instead of PIL arm64: dts: qcom: sc7280: Add ADSP node arm64: dts: qcom: sc7280: Add CDSP node arm64: dts: qcom: qcm6490-fairphone-fp5: Enable various remoteprocs arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi .../bindings/remoteproc/qcom,sc7180-pas.yaml | 21 ++ arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 45 ++-- arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 35 ++- .../boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi | 7 +- .../boot/dts/qcom/sc7280-herobrine-wifi-sku.dtsi | 1 + arch/arm64/boot/dts/qcom/sc7280.dtsi | 271 +++++++++++++++++++-- drivers/remoteproc/qcom_q6v5_pas.c | 19 ++ 7 files changed, 336 insertions(+), 63 deletions(-) --- base-commit: e7f403a575a315ecf79ee4f411cc76bb60bae2f6 change-id: 20231027-sc7280-remoteprocs-048208cc1e13 Best regards, -- Luca Weiss