Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp90185lqc; Thu, 7 Mar 2024 11:07:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXI1UJ5BvKSk3T69igrU2rp1VLN0njBUpHsY3zKcn5cUJtyinVmLktF43KJjoDKjb2KBY3u2bM0Xlaly45scb+vPGFyMvxAyNKpYNjwLQ== X-Google-Smtp-Source: AGHT+IFtPLOwQlWZlEC782cq5mBZ7pwjUjMmo1oKiPZHhlD37oH9Ee8WhyVNaVbj/+B+3RmsFv2A X-Received: by 2002:a05:6870:e387:b0:221:8e01:4c6f with SMTP id x7-20020a056870e38700b002218e014c6fmr846682oad.36.1709838447324; Thu, 07 Mar 2024 11:07:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709838447; cv=pass; d=google.com; s=arc-20160816; b=V9WH+7GT7hmY2qlVMCdZ6u9b7ZPjD0+RwtTidgXzEytACWxgI4tjIw+azZLdh5JAaS p5KjcF1XxG+r5PY+wG8Enz/9M3/BVwN9DfjbDhpoEYwV9HUjrOqRF6OBI1eYIxtY/9Fe VSeVYLdjeFwUvkwlWKfvgn6wS42DAhNhCAOC4h9ld4sjP800NHgCIeqo2WpYPuDJZj2K rhl2N2byi6a99My7XnMirUkDPoWu5tJPSzQZw+RnnB5jYSS91dQ4nyiH+WR22+8n/2NK XnCNmxAbJBLwpudY97ddmLpL7nDCzl85Y9f5Anlidg+Bkqbc31CJtQOeKymaIZBEvCQM 6A9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ujCuR3daVM8dxtAcTTN3YHTaM4Hfb9UFsyHimopz+Vc=; fh=vaF/4wCcB8716OmkqYdm1mjnH1bqK2s/Tq/szIv64gg=; b=WN2Lk36rtgOD1ptF8cugUds1SOvS6ic023wNp4z4YXbReuI9bY6qYO8Xh11hdcBmUB 9b+KxnPmsXEHbrQGTfCS63iwHKgEFCR86ArvuKT8UixzgbgZ0lutK/j+yQIQi9SO3lCU nchYTttIe6z6TDNEhlFgFcMV85M+FGhSeOl3PD0hb9fzvix2yDIOkv9Kor9Yqn+mYOok N/dldW/GwwTv+0Kj6tLJ9ERYlsj2syCasR2Uidj6P6Wm8lzp2WirFOduZFVRp4tFFmmd N014pO2yVL0qB9E0vrdiwFIY1RWD8LPnwyMgTaRmXdfSRU8TDAlS6yIF01/aJuw0kmzN MQzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YLwft2SY; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-96057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x9-20020a05622a000900b0042eaf9b3a7csi5641827qtw.660.2024.03.07.11.07.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 11:07:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YLwft2SY; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-96057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F2E191C20ED6 for ; Thu, 7 Mar 2024 19:07:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A8DF137C4F; Thu, 7 Mar 2024 19:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YLwft2SY" 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 72B47137C36; Thu, 7 Mar 2024 19:06:00 +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=1709838362; cv=none; b=GIJIToUJ3BxduSWxDNMPOkPQtJ+33vyIH6t+BWARzgt55/DZD3ahIBMzVcGgTAPEa5gFnGnQVujteNO4PZv9SLd3ROeAIWSfh0MkwNwb1zMcpvfU4b1Hy9prBYKYpE4U0kRGTMSxlI0im6AeW2bxFxZ1CJIBGxqhH+WlfS0wQbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709838362; c=relaxed/simple; bh=a+oKRSDGvPpumjUlkzG2ItzlXs0lqrqVESWJKtl2xXE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lPEId1X7HldMFzWCNjoNEqxrRElPUivRfTjVuIhMIFZR2MEXPQgGfFm8aCniJbWiPv2Y0Dts0UKWmBuni0WGKSX86BNyZrGcYA+WbVopJLjg6GfkN57bkprkmTfUnKn7DUEImxLDBLT+/CMonKjfYD0mkzUAsiNFmUkUIGCE6wA= 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=YLwft2SY; 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 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 427Fxw9Q001994; Thu, 7 Mar 2024 19:05:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=ujCuR3daVM8dxtAcTTN3YHTaM4Hfb9UFsyHimopz+Vc=; b=YL wft2SYFIbN5qMKtRyMj22/DSN4xdl1wPgix26iETxLij15Ryw87pokn+Xd60XKpQ fi5mcUS9K329u8Hwwa8H4fSF/X469oYyqcuNFRpt0Zt4+i5A60Wmbzr4M7/mKqPG WLR4a906SzO+fdopWf258G7jPlW4PuOu3kFVuboWPisfdKE5bZAFvB5COcwUEG3T d2W6ebukoq/t9loJwb8qY+tBrU310wkujcs3IiFsGtvo/ldNxES7PWVa9QBAPRo5 0fSZsaYpr5VpxFZotH4qZ2eULOSOiNeLSgmyMt9iI4r02yGSUbrwV2TZ+QR6tdXY fa3qOd8mL+OFRCoD4Z3w== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wqay8rym8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Mar 2024 19:05:45 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 427J5iQE004545 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Mar 2024 19:05:44 GMT Received: from hu-c-gdjako-lv.qualcomm.com (10.49.16.6) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 7 Mar 2024 11:05:43 -0800 From: Georgi Djakov To: , , , , , , CC: , , , , , , , , , , , Subject: [PATCH v6 1/7] dt-bindings: iommu: Add Qualcomm TBU Date: Thu, 7 Mar 2024 11:05:19 -0800 Message-ID: <20240307190525.395291-2-quic_c_gdjako@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240307190525.395291-1-quic_c_gdjako@quicinc.com> References: <20240307190525.395291-1-quic_c_gdjako@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 1gsKbp414mrTohFeSbr9Cv5RZ3EtTnt0 X-Proofpoint-ORIG-GUID: 1gsKbp414mrTohFeSbr9Cv5RZ3EtTnt0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-07_14,2024-03-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 suspectscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 spamscore=0 adultscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403070133 The "apps_smmu" on the Qualcomm sdm845 platform is an implementation of the SMMU-500, that consists of a single TCU (Translation Control Unit) and multiple TBUs (Translation Buffer Units). These TBUs have hardware debugging features that are specific and only present on Qualcomm hardware. Represent them as independent DT nodes. List all the resources that are needed to operate them (such as registers, clocks, power domains and interconnects). Signed-off-by: Georgi Djakov --- .../devicetree/bindings/iommu/qcom,tbu.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/qcom,tbu.yaml diff --git a/Documentation/devicetree/bindings/iommu/qcom,tbu.yaml b/Documentation/devicetree/bindings/iommu/qcom,tbu.yaml new file mode 100644 index 000000000000..82dfe935573e --- /dev/null +++ b/Documentation/devicetree/bindings/iommu/qcom,tbu.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iommu/qcom,tbu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm TBU (Translation Buffer Unit) + +maintainers: + - Georgi Djakov + +description: + The Qualcomm SMMU500 implementation consists of TCU and TBU. The TBU contains + a Translation Lookaside Buffer (TLB) that caches page tables. TBUs provides + debug features to trace and trigger debug transactions. There are multiple TBU + instances with each client core. + +properties: + compatible: + enum: + - qcom,sc7280-tbu + - qcom,sdm845-tbu + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interconnects: + maxItems: 1 + + power-domains: + maxItems: 1 + + qcom,stream-id-range: + description: | + Phandle of a SMMU device and Stream ID range (address and size) that + is assigned by the TBU + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle of a smmu node + - description: stream id base address + - description: stream id size + +required: + - compatible + - reg + - qcom,stream-id-range + +additionalProperties: false + +examples: + - | + #include + #include + #include + + tbu@150e1000 { + compatible = "qcom,sdm845-tbu"; + reg = <0x150e1000 0x1000>; + clocks = <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>; + interconnects = <&system_noc MASTER_GNOC_SNOC QCOM_ICC_TAG_ACTIVE_ONLY + &config_noc SLAVE_IMEM_CFG QCOM_ICC_TAG_ACTIVE_ONLY>; + power-domains = <&gcc HLOS1_VOTE_AGGRE_NOC_MMU_PCIE_TBU_GDSC>; + qcom,stream-id-range = <&apps_smmu 0x1c00 0x400>; + }; +...