Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1195627rdh; Fri, 27 Oct 2023 07:21:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwx4OURmLeN9y/CoudktUW2SlQbDHs+WAICs/BJREE4uIpuVKPpwoGe8nHZGYic1LStVTG X-Received: by 2002:a5b:e8c:0:b0:da0:cc14:b66 with SMTP id z12-20020a5b0e8c000000b00da0cc140b66mr2401500ybr.9.1698416480252; Fri, 27 Oct 2023 07:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698416480; cv=none; d=google.com; s=arc-20160816; b=CAvk+lyHJhRzUErA6xXZRA8Cyy6637s40JgRaG7xWY9JL56arp8WpJHBYaEPbpfyAC fCXrlSFHKSmNHLljhdG0ebzfwpB+pQH7fXKIC/wJZhIwwNSLevWeuLy/K6j8qq3hWOFQ 2/OHOVXWl7hMxAeifWPmIQ0Vi2amO2T19DH7C4KiIhmJE3A3HoGekwJxEWr+/J2TY+0g za94oV/5N8/1h33ZAjMf2ka3DQCazMmrYoyc1UUFXQ6dqbUSchrqgNay0+2ohknN4Oj8 +mf7AxhJbtd8JqRqz8ls4D5bQrNRGQxUzJnB3yPKY7f/JKB6iN+dOIps/vSn2GlFxkKi nNxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=y41N6IDBFdrpsca1M24XemdQ8eJbWVhCq1jwXxRCbP4=; fh=4YRGpp4+erIE8EulKv6vTURWMTZkR1ZrVdHONvEW04M=; b=MPY8+7DBQklesKri0UtTYcE0E6sZxU4mnwxRga3QYvndM2mQdfdpjEYoZnD/6+Qcdz iprCfJuDLZK9DJhU2NdSKMIwxa2CDcvLGHLF3lJf8crKnZVaTzAzp7XTWLVXPaj5xN0G AtuRHe3ugzHEHgxRtBhhpP1JcOWSAhhipijIOt0nov/JxeQAPbEHzR1MC+MU78nNQhZ+ 9HRxxbWO8mlR/Vyioh38WrSAc379dDabPGkb6CtyLnPRTa41HMvmKW9oZjHAhFSdSpWE TL0cd53RSTexdzPWay/TgvtvXKhtlzdkt9rUwVa8Ga3/gfN4tbxPTBIjPNfk+uRYKGeb +K5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=ejFFbh4H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n70-20020a252749000000b00d9b0172ebb6si2829129ybn.695.2023.10.27.07.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=ejFFbh4H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4BFB682E4375; Fri, 27 Oct 2023 07:21:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346014AbjJ0OUz (ORCPT + 99 others); Fri, 27 Oct 2023 10:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346080AbjJ0OUm (ORCPT ); Fri, 27 Oct 2023 10:20:42 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11E3D45 for ; Fri, 27 Oct 2023 07:20:34 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so344321166b.3 for ; Fri, 27 Oct 2023 07:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1698416433; x=1699021233; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y41N6IDBFdrpsca1M24XemdQ8eJbWVhCq1jwXxRCbP4=; b=ejFFbh4H6iLRxVOpQqElDfQ4vMTIKJKNN+ivtQ83qlOUPvxbhJTyUkxg5IReVhlk0Q QhbwSFsu40zsxVMQO4WJLHjvJhq53o+Y8ex8lY5oPK5gBiqj2PihjAl7PsU9CVrix1As 9jESVN3Meenb3yrtGK1cr8h+yysqQtlE3P8QNd5C1CkCnFoSDZTw0QabpL78Edckl31D 7WYbZegknW0GnDOLi0JWhCT97cyd7SGXvi5aMuE6Sb7TD16cgGJQqT0FNLDghpw2AJ9F 3VAEA8R+votlP0ZCy3zX+i+NkxBtQHydm+VZ8dOkDyMy0KMSrDnylnD3fiNayckogFYM J4oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698416433; x=1699021233; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y41N6IDBFdrpsca1M24XemdQ8eJbWVhCq1jwXxRCbP4=; b=mnOfbnim05oRPBiDzb08KiZHgIi+mBJbCODuptob51nXX8kVmiV3wPuub6ryTIoJSw F3uHBiH8kseWAFXdNNMmWvlXkQRYG+aXVnANAPr6nZpFvZBUNvl4BeFTm3d9E5DQwvok 9adE1yYfbKCJjIXMNgwL/1s09iuAkb1WxjChctyhh9euNY+gZz6SLpDPNofUWlVNBEQ+ c6bur5pCM2YYTRGOILPtuk7hRwt/y/tMTlljrAyBQKKRFh8we4FjsGGbNU/qF15QJDnJ S9wwZdzx3t885U6O8Linc7tsXd0b4972KwMxylpxXb5Hw+dmPZmj2WzEa31eN85xrXSs noKA== X-Gm-Message-State: AOJu0YywYqZBaIEIiDOkUfO6qbVHYPbwAQdY+Cv8ELuG2GN34BoNH69k x9j67mKCh8m10S9THqpuhQRoHw== X-Received: by 2002:a17:907:c0d:b0:9bf:4915:22c8 with SMTP id ga13-20020a1709070c0d00b009bf491522c8mr2039660ejc.5.1698416433161; Fri, 27 Oct 2023 07:20:33 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id z23-20020a170906075700b0099cc36c4681sm1254076ejb.157.2023.10.27.07.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:20:32 -0700 (PDT) From: Luca Weiss Date: Fri, 27 Oct 2023 16:20:26 +0200 Subject: [PATCH 4/9] remoteproc: qcom_q6v5_pas: Add SC7280 ADSP, CDSP & WPSS MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231027-sc7280-remoteprocs-v1-4-05ce95d9315a@fairphone.com> References: <20231027-sc7280-remoteprocs-v1-0-05ce95d9315a@fairphone.com> In-Reply-To: <20231027-sc7280-remoteprocs-v1-0-05ce95d9315a@fairphone.com> 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.3 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:21:12 -0700 (PDT) Add support for the ADSP, CDSP and WPSS remoteprocs found on the SC7280 SoC using the q6v5-pas driver. This driver can be used on regular LA ("Linux Android") based releases, however the SC7280 ChromeOS devices need different driver support due to firmware differences. Signed-off-by: Luca Weiss --- drivers/remoteproc/qcom_q6v5_pas.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 913a5d2068e8..a9dd58608052 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1165,6 +1165,22 @@ static const struct adsp_data sm8550_mpss_resource = { .region_assign_idx = 2, }; +static const struct adsp_data sc7280_wpss_resource = { + .crash_reason_smem = 626, + .firmware_name = "wpss.mdt", + .pas_id = 6, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "cx", + "mx", + NULL + }, + .load_state = "wpss", + .ssr_name = "wpss", + .sysmon_name = "wpss", + .ssctl_id = 0x19, +}; + static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,msm8226-adsp-pil", .data = &adsp_resource_init}, { .compatible = "qcom,msm8953-adsp-pil", .data = &msm8996_adsp_resource}, @@ -1178,7 +1194,10 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, { .compatible = "qcom,sc7180-adsp-pas", .data = &sm8250_adsp_resource}, { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, + { .compatible = "qcom,sc7280-adsp-pas", .data = &sm8350_adsp_resource}, + { .compatible = "qcom,sc7280-cdsp-pas", .data = &sm6350_cdsp_resource}, { .compatible = "qcom,sc7280-mpss-pas", .data = &mpss_resource_init}, + { .compatible = "qcom,sc7280-wpss-pas", .data = &sc7280_wpss_resource}, { .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource}, { .compatible = "qcom,sc8180x-cdsp-pas", .data = &sm8150_cdsp_resource}, { .compatible = "qcom,sc8180x-mpss-pas", .data = &sc8180x_mpss_resource}, -- 2.42.0