From patchwork Fri Nov 1 17:19:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 840393 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 CC9591CB522 for ; Fri, 1 Nov 2024 17:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730481569; cv=none; b=i51+lRPrSdm3P5Hjkj6sVFcuKDFQnYvMrTKU0QwtCjdeKe1M1zVryjTTeGpJL6cSMoor6e13y6I0H5djTg8PEivjNANP7FQ6JbXX6+S9Q6xCJK4DYTsg15n0g2gYUZ/9hFXk1uEG7x5iVMRqyWSwO8mJoifKkvFIou59OrgL6yQ= 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.51 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-f51.google.com with SMTP id ffacd0b85a97d-37d4fa7d3baso165864f8f.0 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=VO76v+dS+19qvWLleUAK3dSp/P4X34Bnod1NNRTltGcKH+CaO/WTHj77tjg8h3+fPs DmhTefxtiUYXSSaR7a+6/kMWRjeZk0ER8W3HUDspguDLFu4wVvO2HUXCtf+ZoryDnoL6 PfMx5MLygW8OhfWwBjLGqytBQNsRQsA36ZgJUAGvbw8VcJSfXXbRmVctrsBqK/AiUeD5 Me/7YuYbCEU3kXJmZEqeA4QEvvvJu32vkNmYBmZtn5dp3I3gbX50tQ1BACRle77VqXoY DBgalLI2S58rkXG2hWoPYOLbHR0vs8iJzBuVFmmdtLhmggSZ/cN7xJ89aEwwltGKXj0C lghw== X-Gm-Message-State: AOJu0YzmXunAmSgghht6JQ+ZrFkRwCli67+kt/1rwP3fqVgmdzQWxo8A 6U/dJFsjQFBeB3NcOITl0Utz+/pZfI7UO6e3Cqhy97qUKUeGWxXwPJkBKX3txJ7PiMvNuj+G29n M 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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/qcom/sm8750.dtsi index 98ab82caa007ee63c395a3ce0f517e2bbeb0aecb..eb826b154dcb2d8165426ba2225548efd7547da8 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 / { @@ -510,6 +512,32 @@ llcc_lpi_mem: llcc-lpi@ff800000 { }; }; + smp2p-adsp { + compatible = "qcom,smp2p"; + + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,smem = <443>, <429>; + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + smp2p_adsp_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_adsp_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + soc: soc@0 { compatible = "simple-bus"; @@ -538,6 +566,17 @@ gcc: clock-controller@100000 { #power-domain-cells = <1>; }; + ipcc: mailbox@406000 { + compatible = "qcom,sm8750-ipcc", "qcom,ipcc"; + reg = <0 0x00406000 0 0x1000>; + + interrupts = ; + interrupt-controller; + #interrupt-cells = <3>; + + #mbox-cells = <2>; + }; + gpi_dma2: dma-controller@800000 { compatible = "qcom,sm8750-gpi-dma", "qcom,sm6350-gpi-dma"; reg = <0x0 0x00800000 0x0 0x60000>; @@ -1975,6 +2014,19 @@ pdc: interrupt-controller@b220000 { interrupt-controller; }; + aoss_qmp: power-management@c300000 { + compatible = "qcom,sm8750-aoss-qmp", "qcom,aoss-qmp"; + reg = <0 0x0c300000 0 0x400>; + + interrupt-parent = <&ipcc>; + interrupts-extended = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + + mboxes = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_QMP>; + + #clock-cells = <0>; + }; + spmi_bus: spmi@c400000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0 0xc400000 0x0 0x3000>, @@ -2884,6 +2936,94 @@ gem_noc: interconnect@24100000 { #interconnect-cells = <2>; }; + remoteproc_adsp: remoteproc@30000000 { + compatible = "qcom,sm8750-adsp-pas", "qcom,sm8550-adsp-pas"; + reg = <0 0x30000000 0 0x100>; + + interrupts-extended = <&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 = "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + power-domains = <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", + "lmx"; + + memory-region = <&adspslpi_mem>, <&q6_adsp_dtb_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + remoteproc_adsp_glink: 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>; + qcom,remote-pid = <2>; + label = "lpass"; + + gpr { + compatible = "qcom,gpr"; + qcom,glink-channels = "adsp_apps"; + qcom,domain = ; + qcom,intents = <512 20>; + #address-cells = <1>; + #size-cells = <0>; + + q6apm: service@1 { + compatible = "qcom,q6apm"; + reg = ; + #sound-dai-cells = <0>; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6apmbedai: bedais { + compatible = "qcom,q6apm-lpass-dais"; + #sound-dai-cells = <1>; + }; + + q6apmdai: dais { + compatible = "qcom,q6apm-dais"; + iommus = <&apps_smmu 0x1001 0x80>, + <&apps_smmu 0x1041 0x20>; + }; + }; + + q6prm: service@2 { + compatible = "qcom,q6prm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6prmcc: clock-controller { + compatible = "qcom,q6prm-lpass-clocks"; + #clock-cells = <2>; + }; + }; + }; + }; + }; + nsp_noc: interconnect@320c0000 { compatible = "qcom,sm8750-nsp-noc"; reg = <0x0 0x320c0000 0x0 0x13080>;