Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1196124rdh; Fri, 27 Oct 2023 07:22:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEISCVnTKiZ4YFtVTG4WND0v3hCYVzfUMowMhdX/W5mlqpSJFjO0GjB5r5+yG0A/zLllD/j X-Received: by 2002:a81:a984:0:b0:5a7:c00b:dc70 with SMTP id g126-20020a81a984000000b005a7c00bdc70mr10053864ywh.1.1698416525762; Fri, 27 Oct 2023 07:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698416525; cv=none; d=google.com; s=arc-20160816; b=vbFDIodC6r+/L62ciZnLk4GZy7AQzCAA0G0sKfNEmT4bKfbGTHCRWR49qhtFt1gWr6 0HJME8JrpfPcZZnrkalveWgnSa4HRHjFz0pzbRby3/EXnQgzzPeho5mNlMYYtdeessxz DaQTXS6wHliQ7WSZ7bfuc02eBVAUQsVoaV1gJwHNtei5YGebUeGuRpKHd2pNoLV9BypG 5abCNdLUbCNr2C4CDxkN/t4wxT83056WDcy+bF5HRHcNTyHwEml6NzycRUeO8n21AkYq e284c4gBV3mDeO3o28kvzFWLhx8bc59dOyazXpc04sgNIKl0fYleJrOwPKUtS129s7um E5pQ== 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=3gjHEFUm80fZ96p4jtqSmwtfKBYmZPw1ufj7tVz3aJ8=; fh=4YRGpp4+erIE8EulKv6vTURWMTZkR1ZrVdHONvEW04M=; b=iUMox2/eyV4EbvIAcv9E2AToL6b+MoYLDzAdumVAS9Lsd1jRy1PpZffS5lvj2+9XkE 5xf3RAYFVL79KMEHBm6uyrS4zjRGdDTIg+H46OrtQp55cCXsmNa1rtGPvGLvXTUeG07z v3p0nu+InNEFKKlW9MnMS8yFxpJbV8C3w25drC8m3ugQK5vtCnpuwpqSrN3m0tZWjNUK dGpdpETVynQ7ye+Tso6aznU3EtpMIyLE4diSy65Cb6JARENNFdkncnkiKRdRMJQJeI8a WhRUOmgA4lof/XFg4YJQTnUHs2j7/2l9Ezrw3enB2J4B6M23UF0Wb1wbm/jpsHMxCXsW 9v8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=hAASgH4m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w10-20020a81620a000000b005a8f0111a3csi2906163ywb.26.2023.10.27.07.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=hAASgH4m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 107428070713; Fri, 27 Oct 2023 07:22:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346164AbjJ0OVL (ORCPT + 99 others); Fri, 27 Oct 2023 10:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346137AbjJ0OUm (ORCPT ); Fri, 27 Oct 2023 10:20:42 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 100B1D50 for ; Fri, 27 Oct 2023 07:20:36 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9ad8a822508so345674366b.0 for ; Fri, 27 Oct 2023 07:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1698416434; x=1699021234; 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=3gjHEFUm80fZ96p4jtqSmwtfKBYmZPw1ufj7tVz3aJ8=; b=hAASgH4miMG9tQ6nv9Ljmp3mnLo6bL4rZk1ECBJtqOMCawuBxMCzq/R6e8veZcVHUO yM0D7kAKSNbP9S2KkwRbA0BoMiVm0iseksHOdvdobFbnA1eqzO/KWMSaWdr/+O1umZDm hsLO7BC4rrG3YYg3HjkNckfcKKYidEImXHBDgVzF39LUmT3Kq4mDBRK0LI7Izx/Vq3BV QI0w9esm+qWrVcoOi/7MJqdEvRYiyhjCKw6wdlyH5W36kWOFnzQR9FeOZ/IvAyaimJVV kLD9uRx9a6QW3pFe2oOckRV5EqZS7SBzUGaUXWslQ4uW9uH92UpDKfW8ReJ6Ks80051u K2Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698416434; x=1699021234; 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=3gjHEFUm80fZ96p4jtqSmwtfKBYmZPw1ufj7tVz3aJ8=; b=cHkFTNbQjJJdylW6akDJ4vgb5+hs3qZsM7yt6tlXA2YJJyuzE/KrQwAilhcXlOdqrx P4uHqGWBqqtOUFpB3OIyJ3H4FtSFcPfA8JPsyqVBWa9pPvHjYrzck3Oa7aTlJkcnjOaY 9aWaH2NFU5tA+wvbRyILaig1P6TfExx1+wDDbKNZmEVX7Szk/RSjN1NuFWIp40aoDyB3 HaSIUf2Et0r5KfYjRV3gVwxyTpkBBxJkdiePyMzQnfSt1f8zArqEQDhFWHFFunpjHUN7 1XqZn1dIjBcczgvku2OeheqnOz2DPCPkyUrbRO+k5MryT4VykBRrMmZ5rbyb/+b5NlDD Sgqw== X-Gm-Message-State: AOJu0YytnDD27tAPDxuQJyWc/skqGJMD4yL1z4nhCeJkgRzCo9Qk2v1Q 8tcRebeZmySaR6sBeye09BsAFA== X-Received: by 2002:a17:906:7489:b0:9b2:ccd8:2d2b with SMTP id e9-20020a170906748900b009b2ccd82d2bmr1634997ejl.77.1698416434453; Fri, 27 Oct 2023 07:20:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:20:34 -0700 (PDT) From: Luca Weiss Date: Fri, 27 Oct 2023 16:20:28 +0200 Subject: [PATCH 6/9] arm64: dts: qcom: sc7280: Add ADSP node MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231027-sc7280-remoteprocs-v1-6-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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:22:01 -0700 (PDT) Add the node for the ADSP found on the SC7280 SoC, using standard Qualcomm firmware. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 23bb6c41fca3..cc153f4e6979 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -3578,6 +3578,75 @@ qspi: spi@88dc000 { status = "disabled"; }; + remoteproc_adsp: remoteproc@3700000 { + compatible = "qcom,sc7280-adsp-pas"; + reg = <0 0x03700000 0 0x100>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", + "stop-ack", "shutdown-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd SC7280_LCX>, + <&rpmhpd SC7280_LMX>; + power-domain-names = "lcx", "lmx"; + + memory-region = <&adsp_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + qcom,non-secure-domain; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x1803 0x0>; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x1804 0x0>; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x1805 0x0>; + }; + }; + }; + }; + remoteproc_wpss: remoteproc@8a00000 { compatible = "qcom,sc7280-wpss-pas"; reg = <0 0x08a00000 0 0x10000>; -- 2.42.0