From patchwork Tue Dec 17 09:26:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pratyush Brahma X-Patchwork-Id: 13911468 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92E36189521; Tue, 17 Dec 2024 09:27:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734427627; cv=none; b=dVCdQ2hDlOxOnLvMa6lDO6tnU2330/D/0zjAnRlcrHiGkE6ijAZMj6dUwSosambb1MqoFLtBLSuCtZK2sBxFcKYGlIiZxKhAwJm9EHr2nGYSDQY7z8j+r3wqakFaKT8jK5lpRLYo4N9ivqQou5C4Ct254SW3nQJq+EsFZmypG+Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734427627; c=relaxed/simple; bh=+ErJMFyScc31yTp7m7R0FUqr9+C6mLujufdbAhR8I6M=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Eon5Y3pYOLPl6YMsRk15DGYccCSbnr81PvQuvj0ylzDEph/CF2zaDYJeFweGayITeR83jJk1AnD6WBvU3VEMShbiUxOeFLJ3pVpBL7i47XYkrJ9aF4mzifTQaWr683xeveJqGwb+A5MC7xd6FQnlTgjeE1GnL5uF62qQRIiqVlE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=kQKHj0U2; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="kQKHj0U2" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BH7sYUG002145; Tue, 17 Dec 2024 09:27:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=jKM6U37wH1GcJ01U6tDAGB4bjhfHH5Jt/zXb1HxK3+s=; b=kQ KHj0U2oYsyI/+r2U9yhbojCJls+pXl/5fQXye+qDGDGfTlkM6fOIiho2VQyjKyGW 6KsRMeFj3U6T8DQdXAy81rmeo2rjZzBNPVOuuHNgrhMuyExfks8dJ95DB7bdo1As uGnVOZCy15vTKvZFqQ1+xk2r4fa1g7sau9yZKf6hPS/NHrumxWp9rUXgczParcds FPJ02BWvJUAmjXcbai5SFBFTBxnKWieTIfuf4f9qkZOKiSmnr5bZNJswvk4JVUNW iw9JOtUHifdOVIlgK7QStphvjDWjCJda96jUk0r7aAIRbYIhKrIO4wo+ZCBFNF4f DVEYFElwL2JzoUPuC+4Q== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43k5aw87sc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Dec 2024 09:27:02 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BH9R2hw015178 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Dec 2024 09:27:02 GMT Received: from hu-pbrahma-hyd.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Dec 2024 01:26:59 -0800 From: Pratyush Brahma To: CC: , , , , , , , Pratyush Brahma Subject: [PATCH] arm64: dts: qcom: qcs8300: Update memory map Date: Tue, 17 Dec 2024 14:56:36 +0530 Message-ID: <20241217092636.17482-1-quic_pbrahma@quicinc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: iGjmF1nsVK5BsFrDC__8QrbIN4gYAgrz X-Proofpoint-GUID: iGjmF1nsVK5BsFrDC__8QrbIN4gYAgrz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 clxscore=1011 suspectscore=0 malwarescore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412170077 This is based on Jingyi Wang's patches [1] to introduce the initial dtsi for QCS8300 SOC. New updates to the memory map of qcs8300 have brought in some new carveouts (viz. sail_ss, firmware memory, tz memory, etc.) and also the base addresses of some of the pil carveouts (q6_cdsp_dtb_mem and cdsp_mem) have changed. Incorporate these changes in the new memory map for qcs8300. Also modify the labels of some of the carveouts to indicate pil carveouts. [1] https://lore.kernel.org/all/20240925-qcs8300_initial_dtsi-v2-3-494c40fa2a42@quicinc.com/ Signed-off-by: Pratyush Brahma --- arch/arm64/boot/dts/qcom/qcs8300.dtsi | 180 ++++++++++++++++++++++++-- 1 file changed, 170 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs8300.dtsi b/arch/arm64/boot/dts/qcom/qcs8300.dtsi index 2c35f96c3f28..e16d11c05515 100644 --- a/arch/arm64/boot/dts/qcom/qcs8300.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs8300.dtsi @@ -377,6 +377,21 @@ #size-cells = <2>; ranges; + sail_ss_mem: sail-ss-region@80000000 { + reg = <0x0 0x80000000 0x0 0x10000000>; + no-map; + }; + + hyp_mem: hyp-region@90000000 { + reg = <0x0 0x90000000 0x0 0x600000>; + no-map; + }; + + xbl_boot_mem: xbl-boot-region@90600000 { + reg = <0x0 0x90600000 0x0 0x200000>; + no-map; + }; + aop_image_mem: aop-image-region@90800000 { reg = <0x0 0x90800000 0x0 0x60000>; no-map; @@ -388,6 +403,26 @@ no-map; }; + uefi_logs_mem: uefi-logs-region@908b0000 { + reg = <0x0 0x908b0000 0x0 0x10000>; + no-map; + }; + + ddr_training_checksum_data_mem: ddr-training-checksum-data-region@908c0000 { + reg = <0x0 0x908c0000 0x0 0x1000>; + no-map; + }; + + reserved_mem: reserved-region@908f0000 { + reg = <0x0 0x908f0000 0x0 0xe000>; + no-map; + }; + + secdata_apps_mem: secdata-apps-region@908fe000 { + reg = <0x0 0x908fe000 0x0 0x2000>; + no-map; + }; + smem_mem: smem@90900000 { compatible = "qcom,smem"; reg = <0x0 0x90900000 0x0 0x200000>; @@ -395,6 +430,61 @@ hwlocks = <&tcsr_mutex 3>; }; + tz_sail_mailbox_mem: tz-sail-mailbox-region@90c00000 { + reg = <0x0 0x90c00000 0x0 0x100000>; + no-map; + }; + + sail_mailbox_mem: sail-mailbox-region@90d00000 { + reg = <0x0 0x90d00000 0x0 0x100000>; + no-map; + }; + + sail_ota_mem: sail-ota-region@90e00000 { + reg = <0x0 0x90e00000 0x0 0x300000>; + no-map; + }; + + xbl_dtlog_mem: xbl-dtlog-region@91a40000 { + reg = <0x0 0x91a40000 0x0 0x40000>; + no-map; + }; + + gunyah_md_mem: gunyah-md-region@91a80000 { + reg = <0x0 0x91a80000 0x0 0x80000>; + no-map; + }; + + aoss_backup_mem: aoss-backup-region@91b00000 { + reg = <0x0 0x91b00000 0x0 0x40000>; + no-map; + }; + + cpucp_backup_mem: cpucp-backup-region@91b40000 { + reg = <0x0 0x91b40000 0x0 0x40000>; + no-map; + }; + + tz_config_backup_mem: tz-config-backup-region@91b80000 { + reg = <0x0 0x91b80000 0x0 0x10000>; + no-map; + }; + + ddr_training_data_mem: ddr-training-data-region@91b90000 { + reg = <0x0 0x91b90000 0x0 0x10000>; + no-map; + }; + + cdt_data_backup_mem: cdt-data-backup-region@91ba0000 { + reg = <0x0 0x91ba0000 0x0 0x1000>; + no-map; + }; + + tzffi_mem: tzffi-region@91c00000 { + reg = <0x0 0x91c00000 0x0 0x1400000>; + no-map; + }; + lpass_machine_learning_mem: lpass-machine-learning-region@93b00000 { reg = <0x0 0x93b00000 0x0 0xf00000>; no-map; @@ -405,12 +495,12 @@ no-map; }; - camera_mem: camera-region@95200000 { + camera_mem: pil-camera-region@95200000 { reg = <0x0 0x95200000 0x0 0x500000>; no-map; }; - adsp_mem: adsp-region@95c00000 { + adsp_mem: pil-adsp-region@95c00000 { no-map; reg = <0x0 0x95c00000 0x0 0x1e00000>; }; @@ -425,35 +515,105 @@ no-map; }; - gpdsp_mem: gpdsp-region@97b00000 { + gpdsp_mem: pil-gpdsp-region@97b00000 { reg = <0x0 0x97b00000 0x0 0x1e00000>; no-map; }; - q6_cdsp_dtb_mem: q6-cdsp-dtb-region@99900000 { - reg = <0x0 0x99900000 0x0 0x80000>; + q6_cdsp_dtb_mem: q6-cdsp-dtb-region@9b700000 { + reg = <0x0 0x9b700000 0x0 0x80000>; no-map; }; - cdsp_mem: cdsp-region@99980000 { - reg = <0x0 0x99980000 0x0 0x1e00000>; + cdsp_mem: pil-cdsp-region@99900000 { + reg = <0x0 0x99900000 0x0 0x1e00000>; no-map; }; - gpu_microcode_mem: gpu-microcode-region@9b780000 { + gpu_microcode_mem: pil-gpu-region@9b780000 { reg = <0x0 0x9b780000 0x0 0x2000>; no-map; }; - cvp_mem: cvp-region@9b782000 { + cvp_mem: pil-cvp-region@9b782000 { reg = <0x0 0x9b782000 0x0 0x700000>; no-map; }; - video_mem: video-region@9be82000 { + video_mem: pil-video-region@9be82000 { reg = <0x0 0x9be82000 0x0 0x700000>; no-map; }; + + audio_mdf_mem: audio-mdf-region@ae000000 { + reg = <0x0 0xae000000 0x0 0x1000000>; + no-map; + }; + + firmware_mem: firmware-region@b0000000 { + reg = <0x0 0xb0000000 0x0 0x800000>; + no-map; + }; + + hyptz_reserved_mem: hyptz-reserved@beb00000 { + reg = <0x0 0xbeb00000 0x0 0x11500000>; + no-map; + }; + + firmware_scmi_mem: scmi-region@d0000000 { + reg = <0x0 0xd0000000 0x0 0x40000>; + no-map; + }; + + firmware_logs_mem: firmware-logs-region@d0040000 { + reg = <0x0 0xd0040000 0x0 0x10000>; + no-map; + }; + + firmware_audio_mem: firmware-audio-region@d0050000 { + reg = <0x0 0xd0050000 0x0 0x4000>; + no-map; + }; + + firmware_reserved_mem: firmware-reserved-region@d0054000 { + reg = <0x0 0xd0054000 0x0 0x9c000>; + no-map; + }; + + firmwarequantum_test_mem: firmwarequantum-test-region@d00f0000 { + reg = <0x0 0xd00f0000 0x0 0x10000>; + no-map; + }; + + tags_mem: tags-region@d0100000 { + reg = <0x0 0xd0100000 0x0 0x800000>; + no-map; + }; + + qtee_mem: qtee-region@d1300000 { + reg = <0x0 0xd1300000 0x0 0x500000>; + no-map; + }; + + deep_sleep_back_up_mem: deep-sleep-back-up-region@d1800000 { + reg = <0x0 0xd1800000 0x0 0x100000>; + no-map; + }; + + trusted_apps_mem: trusted-apps-region@d1900000 { + reg = <0x0 0xd1900000 0x0 0x1900000>; + no-map; + }; + + tz_stat_mem: tz-stat-region@db100000 { + reg = <0x0 0xdb100000 0x0 0x100000>; + no-map; + }; + + cpucp_fw_mem: cpucp-fw-region@db200000 { + reg = <0x0 0xdb200000 0x0 0x100000>; + no-map; + }; }; smp2p-adsp {