From nobody Sun Nov 24 22:51:23 2024 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 82BF81CACEB for ; Fri, 1 Nov 2024 17:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730481569; cv=none; b=ufkCzprZ4hPIJdqDXcKkxfdBh3vterJSRUYGL4l4I9Q4Y7dLR5f2sxTsJwaQj1EI+ZXtNDREIjnant+tPkZ1qDd+6Cos3b9Lt5BuBCftbP4UIsCsyLRSAtW2KMUoA/8ooSVbmhd+MwAUyy6fADcR8N/MHafqAA7A+6laa/3wi4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730481569; c=relaxed/simple; bh=zP8CMhOsdju++fAMfqiHRGssCrdsjamWMupWX7aOmzw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d51k6Zs3mvEvdRJ7/876wQZjxYefTNmoBJn9lhMi6wI9grfGPQvrTqEG8plTVij9D/IwJXXL3GYxTiP/8SbuMWyr6YsqbnWyV8/RIEBNbgJUJ86d2NKvs3KC+3o7r/NGm5/7P64Xa5fndosUao7ad7kW8/Iakf/OqGiLN7AoHRU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=h4CoP6+d; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h4CoP6+d" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-37d570728ebso204521f8f.2 for ; Fri, 01 Nov 2024 10:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730481566; x=1731086366; 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=rwQWlkCVxKDyy+bz8m/foImenCByjvMRjsks1dLfFqo=; b=h4CoP6+d2gB/2aOhnKnuGPGGCMAtz1DIq0TEhauC8lZlohDU5ymO6LJ/j5gpkZIQgq wglsAQWim5cFOchBVVPO23AGBzDwtRZcikA4umfZHyVYTWb7C+c0YdeaxZJGHhHGk83S Bbte8jD3SszlEkHRDUmjqxcnqFUseBV3xhuqzN5KJFalRVYNNAThC+/KjuuyKyXURa0/ pKciU06YuFTvmRjiE6xlha7tXDuFHGojwgTrQV4P+0BFvz6U9/ajLthr4uQ6pD+lXM46 xG1YL2KTCLnDM4bYR+ehHe/mJAXHyPsplTQvUEqxFLyCpTecnwFcudY/nYwXPP3mbAgq erGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730481566; x=1731086366; 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=rwQWlkCVxKDyy+bz8m/foImenCByjvMRjsks1dLfFqo=; b=pvsHJVCMBuJVWYaJ21tjiguvYCgal4GjtB50rEinK+Ud55AsAi4Xy1NY5OaR5rP6/J MIBZDQoSDX5cXimzsn9iLZhXGqanE07eC9mssqPEXcgHWDNkTgIGbb8OGWDnPOMUl/Hv CjV/YoUKQHtynE6YcIXmutk4ehNyX5SuXdpzE/sCoeXQhQZag6XcIMxUK+hRtjoCnfuB SruHBiu3lcb1ZOre1e4A1HP//NBhpZx5tbtlC9W24eaQhl9fSBnet3Ol/PNfJEZ0xmX8 ldDgCrBS/Rd4uYia4qWJU05DlFBJDq7qQaEkgVsszJOHpG78rFGovpcm15N8udm4IwEY fJvQ== X-Forwarded-Encrypted: i=1; AJvYcCX76oeiN3QP5c5sWQuJUFP1RP2PIXeKSKAq9R6Ka3cVO7HpU+pdOjWtDOCg/KeAhJvN9m+SqEuyPH3ZOtg=@vger.kernel.org X-Gm-Message-State: AOJu0YwxqRpdyoAypLK16iCgHwWVhqiyo5MsASa6ge+PW83ZELTuh2By knX+JMGwPdSCNTIo6dcxijLdOS0lRYGcQPmheku17d5G+TvbRmFCMTdEvd+NGMQ= X-Google-Smtp-Source: AGHT+IH3t7iiAlZX2uJsZMr+pAR7yfU3SQsQOMyc52+DeRAi+QFIAAnEf322z75nONUPyNAPqHtbgg== X-Received: by 2002:a05:600c:19cb:b0:42c:ba61:d20b with SMTP id 5b1f17b1804b1-4319aca410emr94808905e9.3.1730481565707; Fri, 01 Nov 2024 10:19:25 -0700 (PDT) Received: from [127.0.1.1] ([178.197.211.167]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4327d5ab305sm68536785e9.7.2024.11.01.10.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 10:19:25 -0700 (PDT) From: Krzysztof Kozlowski Date: Fri, 01 Nov 2024 18:19:11 +0100 Subject: [PATCH 1/4] arm64: dts: qcom: sm8750: Add IPCC, SMP2P, AOSS and ADSP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241101-sm8750-audio-v1-1-730aec176459@linaro.org> References: <20241101-sm8750-audio-v1-0-730aec176459@linaro.org> In-Reply-To: <20241101-sm8750-audio-v1-0-730aec176459@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Melody Olvera , Satya Durga Srinivasu Prabhala , Srinivas Kandagatla , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=5559; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=zP8CMhOsdju++fAMfqiHRGssCrdsjamWMupWX7aOmzw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnJQ2WTuIcBDqfBad8+DMmKLIxf2GQpJlfwIZkB 7O5+6sVqHqJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZyUNlgAKCRDBN2bmhouD 19L1D/90ipcXp4q55M9MpT1ajY+bimTNgEPjFE4Zzf60YhJX7NEqMWQpFisp0mBsTQss2Xs8+4z Ya9ekzgKPIgtsYCvS3knKuuPNM2UTrZgiPS6YEDMKaohB9CQ94+jwkfvfvZJ/zX2gXRwOtU0AqD 3lAMdMklBJbJJM0gcXTuK7d2g4+QjFswgtFZ7GDcsB5P/6qMx2Y57Ao2Ehy+LiMA3xvJ6rqurQ0 EroICyYIHBQYRDSfwpZOxAoAeSxIBYpN/1QN8NzcQpib37x4sbYIeUFqJa8EkqT0eRrQXK6LdJF fUX3lARMaZY9VFFIIC3rPhg+uMu0wfIfbzCPNaYwkOVL3UHH43UDAJZdlXGTay7WosKVexgvwxr bI/IgRm8ooC9FYc8I+WhPhiN8wXsuAiZUrtVcIpfPIZzc67GR9I0pu+2ljMczWFS6UKtAtbimzR kgSphIq1JNKos9WuW+ck9NUYbYR3Bbgg6GOxJNxq2z2ABzXX93pbCPRQ+8SiFBgcjfyabGwvxyF uyh9Zr6HZFaBy0US2V3FoKBQ1fe5P+DyHAjdlrcl0jogM+CX72dSAXwMZ3VhOFhg0NhwHWi43NL 1sNrt8i9WzK1UFsk7ywbhg4/kA+H4sCWywwy1ZhDk8LnTOz+t5UvoCqIOKeYtCKUX8531pduged oZr0PRAloqVWykA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Add nodes for IPCC mailbox, SMP2P for ADSP, AOSS and the ADSP remoteproc PAS loader (compatible with SM8550). Signed-off-by: Krzysztof Kozlowski Reviewed-by: Melody Olvera --- arch/arm64/boot/dts/qcom/sm8750.dtsi | 140 +++++++++++++++++++++++++++++++= ++++ 1 file changed, 140 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qco= m/sm8750.dtsi index 98ab82caa007ee63c395a3ce0f517e2bbeb0aecb..eb826b154dcb2d8165426ba2225= 548efd7547da8 100644 --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi @@ -10,8 +10,10 @@ #include #include #include +#include #include #include +#include #include =20 / { @@ -510,6 +512,32 @@ llcc_lpi_mem: llcc-lpi@ff800000 { }; }; =20 + smp2p-adsp { + compatible =3D "qcom,smp2p"; + + interrupts-extended =3D <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + + mboxes =3D <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,smem =3D <443>, <429>; + qcom,local-pid =3D <0>; + qcom,remote-pid =3D <2>; + + smp2p_adsp_out: master-kernel { + qcom,entry-name =3D "master-kernel"; + #qcom,smem-state-cells =3D <1>; + }; + + smp2p_adsp_in: slave-kernel { + qcom,entry-name =3D "slave-kernel"; + interrupt-controller; + #interrupt-cells =3D <2>; + }; + }; + soc: soc@0 { compatible =3D "simple-bus"; =20 @@ -538,6 +566,17 @@ gcc: clock-controller@100000 { #power-domain-cells =3D <1>; }; =20 + ipcc: mailbox@406000 { + compatible =3D "qcom,sm8750-ipcc", "qcom,ipcc"; + reg =3D <0 0x00406000 0 0x1000>; + + interrupts =3D ; + interrupt-controller; + #interrupt-cells =3D <3>; + + #mbox-cells =3D <2>; + }; + gpi_dma2: dma-controller@800000 { compatible =3D "qcom,sm8750-gpi-dma", "qcom,sm6350-gpi-dma"; reg =3D <0x0 0x00800000 0x0 0x60000>; @@ -1975,6 +2014,19 @@ pdc: interrupt-controller@b220000 { interrupt-controller; }; =20 + aoss_qmp: power-management@c300000 { + compatible =3D "qcom,sm8750-aoss-qmp", "qcom,aoss-qmp"; + reg =3D <0 0x0c300000 0 0x400>; + + interrupt-parent =3D <&ipcc>; + interrupts-extended =3D <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_= QMP + IRQ_TYPE_EDGE_RISING>; + + mboxes =3D <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_QMP>; + + #clock-cells =3D <0>; + }; + spmi_bus: spmi@c400000 { compatible =3D "qcom,spmi-pmic-arb"; reg =3D <0x0 0xc400000 0x0 0x3000>, @@ -2884,6 +2936,94 @@ gem_noc: interconnect@24100000 { #interconnect-cells =3D <2>; }; =20 + remoteproc_adsp: remoteproc@30000000 { + compatible =3D "qcom,sm8750-adsp-pas", "qcom,sm8550-adsp-pas"; + reg =3D <0 0x30000000 0 0x100>; + + interrupts-extended =3D <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names =3D "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks =3D <&rpmhcc RPMH_CXO_CLK>; + clock-names =3D "xo"; + + interconnects =3D <&lpass_lpicx_noc MASTER_LPASS_PROC QCOM_ICC_TAG_ALWA= YS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + power-domains =3D <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names =3D "lcx", + "lmx"; + + memory-region =3D <&adspslpi_mem>, <&q6_adsp_dtb_mem>; + + qcom,qmp =3D <&aoss_qmp>; + + qcom,smem-states =3D <&smp2p_adsp_out 0>; + qcom,smem-state-names =3D "stop"; + + status =3D "disabled"; + + remoteproc_adsp_glink: glink-edge { + interrupts-extended =3D <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes =3D <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + qcom,remote-pid =3D <2>; + label =3D "lpass"; + + gpr { + compatible =3D "qcom,gpr"; + qcom,glink-channels =3D "adsp_apps"; + qcom,domain =3D ; + qcom,intents =3D <512 20>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + q6apm: service@1 { + compatible =3D "qcom,q6apm"; + reg =3D ; + #sound-dai-cells =3D <0>; + qcom,protection-domain =3D "avs/audio", + "msm/adsp/audio_pd"; + + q6apmbedai: bedais { + compatible =3D "qcom,q6apm-lpass-dais"; + #sound-dai-cells =3D <1>; + }; + + q6apmdai: dais { + compatible =3D "qcom,q6apm-dais"; + iommus =3D <&apps_smmu 0x1001 0x80>, + <&apps_smmu 0x1041 0x20>; + }; + }; + + q6prm: service@2 { + compatible =3D "qcom,q6prm"; + reg =3D ; + qcom,protection-domain =3D "avs/audio", + "msm/adsp/audio_pd"; + + q6prmcc: clock-controller { + compatible =3D "qcom,q6prm-lpass-clocks"; + #clock-cells =3D <2>; + }; + }; + }; + }; + }; + nsp_noc: interconnect@320c0000 { compatible =3D "qcom,sm8750-nsp-noc"; reg =3D <0x0 0x320c0000 0x0 0x13080>; --=20 2.43.0