From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13FFD4A3F1C for ; Sat, 3 Oct 2026 17:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791050239; cv=none; b=Qu+34LJkBk6wcrgPMMOh759ReWtivYRYSNu/Ez94v+hs5M4JRlmTDDebon32MBhbfkkF9wVMecGAcOX3XwGphn+a4g6ukbpq63mcOry/bwA63pzUbh6pIebtaRS9Oq9/6YbGzGcEkDMKEnA/IlK7B0hZRfOayCzU5VA3ghFoY2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791050239; c=relaxed/simple; bh=XYPrp03YsPRFnVbkOpI7YXJXRlmJBGJydjAXHlnkr5A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kyjOqxVUpmp+q1eB73L5mB6zczLADDXp5TvMViPV5QKSBX9D977f9i1SVUY7XNB1bEkHTn0GOAe3WeeJP0c2bMcSHI3YgAQWRWp64Ebadso6T0vZrfZkSe4jccf402+w07WXkNGWIIlNqyjTUq/S3cDVhrAVdNnZstmJcwBrQN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JSqqYDSb; arc=none smtp.client-ip=209.85.222.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JSqqYDSb" Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-93e5f819884so14253785a.2 for ; Sat, 03 Oct 2026 10:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791050236; x=1791655036; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=cVq6rfkxtcjpdXbuZ6PheQgKb1xnBkiyc9S5i2pZu10=; b=JSqqYDSbVGZbYNSwhLNum0lHALSJW8H0z0yJcJPDpvrkhKrQm2Hf2kNi8Bj4bFijZT slVjiLjsp4oNZtrZRicTDI49Y+xRLCzQFAhtbuAPtMN2bIU/x2TX6D1sFTyLjbqtTLDa TzPfSA0Z6rPLkvEt3MlKj/PH3lyA1cRCOE3akFSyKqa8mhWMT2rzlqHaJnVEn4+/U4W6 h21D2QhRq/bTRanZE6FxWL3U1F3bwIAa7x0nEBbl49BtgzI0i0WvnQO3cVkGHaWr70iG h+MqNyAhDgo0EtSpBWdVlM8ZN1h3AgbjJ2VJcKwuI7V9naQgkorSMaqPv759svz0bPWa TE9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791050236; x=1791655036; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=cVq6rfkxtcjpdXbuZ6PheQgKb1xnBkiyc9S5i2pZu10=; b=CWc8umo2GeK2pJ/ivQ48ZEzyKXUQK8ihEMs/4yRcgLqXbARN1KLx39A2PIsHYU2m2A 5WMtqEHm95IWZaxH0WO6PFmuahhbBHXH3PNxdVH5CO7OPg7mEoPHFBwcP1PwuJ+28OHW qq9//yyJbp1+uDpV9c9BEXIA6nnSI+a3nCLi9kGYE4JFFv6tC2I36EuAWZN1hHQ/UTfK M61J+NBb1F1Eiknjfqaci/JNFnVZZrUBGqx0U/6fXgDQK2Odi7ur3uVoKSRBX+BKVrgw etdauPp7s6MfDKXo+80/nnNFsf+V0ciK/iZoqQRusYJyzQ0pbvcZbF6sunRvSIa7bc6G hNoQ== X-Forwarded-Encrypted: i=1; AKwUvBwK5tvpi2TaAF0d9NpKrDW03P7Q0Wd5KOGS/TkWtorqsX1XrccJYTOs7djxFSGUKE9FLJEPqR+knTF1@vger.kernel.org X-Gm-Message-State: AFuF++nlf9/DQXTLiKE527Gz8rCEl9N8/X6+KT4PAdp6F982JQgYMWYY Ehs5WoAhnGjyK0q1CwUPhrCZSQkhkiZBGywXQiN5gqeP6gGo/y+ecbUR X-Gm-Gg: AYBFou266wCl0Zw0hMZmnuyQXT0F/TXDDFAbQtcoMIjCvtAm+vpu7BBMG1NwX8PlP26 MY6QsYwCDUjC8wBRp1yFMpPo7ttw8e+J3c/EqyE2Z/7fEr0aqpHQgRi/zcZq23Aen7/PB6IUUZd NZfc5z5XzVEO0BJNayB6Spm+mV3Jv7IAS0Awrg6QGTb++HPtmOubRO8ePLNGsrgQVLq3GmkIG8J nH+3sxP8Y69gZ7vjhZ35bqhs7styYWcUENG0AYF9/UowBagw1MhTaSD6XTqABmY7fyI810/qBvz LQk5J19OJaC829E+7OTgmTKjv29D0PN2W98Wf7WtEh9IQ33M++UORMRWKcEmdE9WD3dvfvWliYx ZPW9qJntJdUC8qyXrc5WKSMxgtE0wye3FbUuMAwh0gQ/rt5fWawVCwnYBD4VOv97idudQ2+esjD R59MKytiuI5jx7qbCibWQ03RHFYbJj2uPbq9p7o2km6jL1Gsh79oUc3vaULdyafoaBu0hoK6hJ2 g== X-Received: by 2002:a05:620a:4555:b0:93a:1ca:f14a with SMTP id af79cd13be357-93e50f8120amr504480885a.17.1791050235920; Sat, 03 Oct 2026 10:57:15 -0700 (PDT) Received: from localhost ([142.181.121.230]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-917e0b1a108sm48714906d6.13.2026.10.03.10.57.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2026 10:57:15 -0700 (PDT) From: Richard Acayan To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Mathieu Poirier , Konrad Dybcio , Abel Vesa , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Manivannan Sadhasivam , Andy Gross , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-sound@vger.kernel.org Cc: Richard Acayan Subject: [PATCH v2 07/11] arm64: dts: qcom: sdm670: add adsp Date: Sat, 3 Oct 2026 13:56:55 -0400 Message-ID: <20261003175659.23536-8-mailingradian@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261003175659.23536-1-mailingradian@gmail.com> References: <20261003175659.23536-1-mailingradian@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Audio DSP (Digital Signal Processor) is responsible for audio and sensors on SDM670. Add this, along with the SMP2P nodes used to communicate with it. The sleep state is included to prevent the following crash: qcom_q6v5_pas remoteproc-adsp: fatal error received: err_qdi.c:450:EF:sensor_process:1:sar.cc:27:chre_utils fatal Otherwise, it is unused. Signed-off-by: Richard Acayan --- arch/arm64/boot/dts/qcom/sdm670.dtsi | 168 +++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index 5c60ea36f04a..038ef0f73ea9 100644 --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi @@ -19,6 +19,7 @@ #include #include #include +#include #include / { @@ -500,6 +501,34 @@ cluster_pd: power-domain-cluster { }; }; + smp2p-lpass { + compatible = "qcom,smp2p"; + qcom,smem = <443>, <429>; + + interrupts = ; + + mboxes = <&apss_shared 26>; + + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + adsp_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + adsp_smp2p_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + + adsp_smp2p_sleepstate: sleepstate { + qcom,entry-name = "sleepstate"; + #qcom,smem-state-cells = <1>; + }; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>; @@ -2111,6 +2140,19 @@ dispcc: clock-controller@af00000 { #power-domain-cells = <1>; }; + aoss_qmp: power-management@c300000 { + compatible = "qcom,sdm670-aoss-qmp", "qcom,aoss-qmp"; + reg = <0 0x0c300000 0 0x100000>; + interrupts = ; + mboxes = <&apss_shared 0>; + + #clock-cells = <0>; + + cx_cdev: cx { + #cooling-cells = <2>; + }; + }; + apps_smmu: iommu@15000000 { compatible = "qcom,sdm670-smmu-500", "qcom,smmu-500", "arm,mmu-500"; reg = <0 0x15000000 0 0x80000>; @@ -2191,6 +2233,12 @@ gladiator_noc: interconnect@17900000 { qcom,bcm-voters = <&apps_bcm_voter>; }; + apss_shared: mailbox@17990000 { + compatible = "qcom,sdm670-apss-shared", "qcom,sdm845-apss-shared"; + reg = <0 0x17990000 0 0x1000>; + #mbox-cells = <1>; + }; + apps_rsc: rsc@179c0000 { compatible = "qcom,rpmh-rsc"; reg = <0 0x179c0000 0 0x10000>, @@ -2301,6 +2349,126 @@ cpufreq_hw: cpufreq@17d43000 { #freq-domain-cells = <1>; }; + adsp_pas: remoteproc@62400000 { + compatible = "qcom,sdm670-adsp-pas"; + reg = <0 0x62400000 0 0x4040>; + + interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, + <&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>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + 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 = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apss_shared 24>; + + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,domain = ; + #address-cells = <1>; + #size-cells = <0>; + qcom,intents = <512 20>; + + q6core: service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + }; + + q6afe: service@4 { + compatible = "qcom,q6afe"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + }; + }; + + q6asm: service@7 { + compatible = "qcom,q6asm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x1801 0x0>; + }; + }; + + q6adm: service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + #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>; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + iommus = <&apps_smmu 0x1806 0x0>; + }; + }; + }; + }; + lpi_tlmm: pinctrl@62b40000 { compatible = "qcom,sdm670-lpass-lpi-pinctrl"; reg = <0 0x62b40000 0 0x20000>; -- 2.56.0