From nobody Fri Oct 3 23:02:03 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 B94202F49F8 for ; Fri, 22 Aug 2025 10:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755858624; cv=none; b=bfmRZL2MjbxkmQQDuTEe6Bog6AE2freoGYpCgBLv5NKx66GmVgqONwQsYmDF1pJi7l2YLrrFw3maEvcKKP52qsMZKOpZTTjIRVMQxVSiAL7gX1bMoHnJglu5iFHFDhK8xDCInwKoTomO6LsKw/zjyE499HIn0Yk5VBCpf3lWFEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755858624; c=relaxed/simple; bh=lupYMam9LLXLp3lz2yHeBjn375m15PN8RsLr1il2qz4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VsO8l8DLbmEfLAcaW0HJ779QE6qCGbuLRYb2eB27E3QFs8Oriy3DSGDPpog3VrS1kh+BI5H6jLCJr7rqu0ZiF9vzPHWSX9dUR7eS62Ivs59kVlc5RS1FBScLht26OTE00NiQVd44W8Ce/FyJeuzHV/iEbDn4Sg8S7CkOjMLGBt8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=boOos+9C; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="boOos+9C" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57M8UPuZ006206 for ; Fri, 22 Aug 2025 10:30:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=gCwy3dvuIrM dK1MGJRfo/KSQbLvNU+8cRJsdk8nhlss=; b=boOos+9CSb0d7q0j2KpZIC3i8sx Om9eaEQEiOdoPPDmEtMO3Ym65g96W4d/O3nxB4YM/6EYKea06xwiEUEPt1kS/Vch 0O2G0NOXDP4CvevG3gWcMQU2Mo/7BThNNVIUKCo5ozl49Vrt4sh/qm58Jgpslfya iZZFQlecBZxjDvagnLXjsmRPhRHLVdI7mWjCsnUg/1ZKVmBMo9wtVfR9lbVlIMDv ukBQqy2VnGxC62Q1gF2bLMo0k57yWfc9VbxwfT25RhC/34GlTeia1g2zrcK40HqV EWanCILbUrPVpjajBnk6p4jz2tpId6YXhFetdsC3UJC+xQvPwzxvjGiMjow== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48n5290v5a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 22 Aug 2025 10:30:21 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-76e55665b05so1899855b3a.2 for ; Fri, 22 Aug 2025 03:30:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755858620; x=1756463420; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gCwy3dvuIrMdK1MGJRfo/KSQbLvNU+8cRJsdk8nhlss=; b=Ojlp1NelVtshuPwCt7gpg0g2bX29P22tVFU132DA2L1UvN9LZ7pFg9TZSZ9sGrHdzz g1MF/7sfBPikwVbut4JhsF52MhwzBnOLmDqm3DG08S7F0Lhqhog181OKESLwi2VKKU6x QLgYlJN9VdHTQuvZJRZks+FjF/PC/5tL5/m90e4TYqB1n4vI8a21bvx1nIiK9ThHjC+O QcdjUKI7fTLML9O1jAlgVnrySme1qRnWadBxnGdeZRX3NabIyRJVaLzzkM1GV5YtG1CK yPKiVN60ainQZ5XM1lGiLSV9AH81/63Xe+vM3r+qNEgHwJ3lAkmBk9NkA1nCGZMXm0UI HkiQ== X-Forwarded-Encrypted: i=1; AJvYcCXjsEihOTagrcmV0sQuQBRbHE6luV5ORLfCokgFzvuE6VEuimW/kkl8IvvAIoChSfQp1GsF5gy9g4yHZ2w=@vger.kernel.org X-Gm-Message-State: AOJu0YyaSUFm8BK8AIynRj8fDx5czAvqx6M1P8LrLrLiIVJeIbiQIi1N J7lR2iNGa+EQX0ayGelYbIPzvRzAiSBvPlzJxtdJe7lbO05RCxaSKjv0oJbaI8ctUcPcA879eJz 3cOwJZhye9xZOyuy8QlpT9SsFhiSwRzcWZVhVEyqbKPI4rKN/ivsCaOHojXwnU8knzh0= X-Gm-Gg: ASbGncv9xlJtMVe4KhdI+izjL4tuGj4yB9PEe3zKNjb3HuccqjSc1v14M/EKVDSpUCs wXC9PkycmxvO4jnp2wSVoOU0D2jDXaApBlac4nmI9Te7BfB/u+Y1FbpyiRAWuogy4SJr6rrizV1 bMwVmxo+/6TMaxjHqbnMEzc2ArAH0beKIfbETKoIAPO9zeeLt2j2IYKi/eaR+jnic7kxZnf0na5 rhxKn2TsK8oWcH2Fh/3DJce+FEpl+/ZBxw+C/sJamooYx9GC9VyJRWQ7fGMWfgCbenuzreIwJch 9HVYOUnpezUV8sAhATni8n3i7WakjcRjzEWr2FGLwDgr2P4DP3Aw5YiFwu2DqymmqGfDBMT67S7 zTrgGDjz6lA1fodUsimDw X-Received: by 2002:a05:6a20:7d9e:b0:243:78a:82c2 with SMTP id adf61e73a8af0-24340dafb84mr3496891637.60.1755858620422; Fri, 22 Aug 2025 03:30:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9UES8ED+cVPXc5NWnC+wayYDGQg0OQaM2qTYYN4XoyrxVTdh+n1/tYchJ9/zAVN44IosS4w== X-Received: by 2002:a05:6a20:7d9e:b0:243:78a:82c2 with SMTP id adf61e73a8af0-24340dafb84mr3496841637.60.1755858619984; Fri, 22 Aug 2025 03:30:19 -0700 (PDT) Received: from jiegan.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b4763fec0e9sm6825196a12.24.2025.08.22.03.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Aug 2025 03:30:19 -0700 (PDT) From: Jie Gan To: Suzuki K Poulose , Mike Leach , James Clark , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Alexander Shishkin , Tingwei Zhang , Mao Jinlong , Tao Zhang Cc: linux-arm-msm@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/3] dt-bindings: arm: document the static TPDM compatible Date: Fri, 22 Aug 2025 18:30:06 +0800 Message-Id: <20250822103008.1029-2-jie.gan@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250822103008.1029-1-jie.gan@oss.qualcomm.com> References: <20250822103008.1029-1-jie.gan@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=fpOFpF4f c=1 sm=1 tr=0 ts=68a846bd cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=2OwXVqhp2XgA:10 a=EUspDBNiAAAA:8 a=5Z_N_GBq0btHVWfAyk4A:9 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-GUID: T08xVZBzZf-p1IKQCSTZ9BBr8umTbwi6 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODIwMDAxMyBTYWx0ZWRfX4IhxdLRhdKGA rD9DjiBqZGr0c9pAZYMxb5Tpgy4CLTFAonaFiZpZFc3dM4OPlIofPcu9AmDmOnrTsZeuiHX8No3 5/YGZNnbFA3YdJJsjCqBWSVtkgtLFFMfz3i6l1LJKqaKB+Vd4RZOsHgJyjPJcxanT5JuQbBBSCQ PdB0ZzJj+ZGFly32ip5iWyYabQaL+EZFAvyBu9K3tkLGxNL4D1baKMvwUiyZTLLqQoHS0dGjxcP 0/3qMRKygh/xu8HnBxXrKuHKv4ZPZucKr9KF9ec25lOGkiYfM6b7J3EC4pNa/kfelMKLMOqZQOv 4/XhA5iPU4594uxdEbsbEXD0QOlCL6omGtG3JrY99bkQ5ViU0myDu78p1GzhAEhuHhsR/VpRTgt QmLXWJ+/Sw6JG1fOo+qxifZl0vqrhA== X-Proofpoint-ORIG-GUID: T08xVZBzZf-p1IKQCSTZ9BBr8umTbwi6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-22_03,2025-08-20_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 spamscore=0 clxscore=1015 adultscore=0 suspectscore=0 bulkscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2508110000 definitions=main-2508200013 Content-Type: text/plain; charset="utf-8" The static TPDM device is intended for sources that do not require MMIO mapping. Its compatible string should be documented clearly, along with an example illustrating how to define a static TPDM node in the DT. Signed-off-by: Jie Gan Reviewed-by: Rob Herring (Arm) --- .../bindings/arm/qcom,coresight-tpdm.yaml | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml= b/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml index 07d21a3617f5..7c0acc1f25c5 100644 --- a/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml @@ -36,9 +36,12 @@ properties: $nodename: pattern: "^tpdm(@[0-9a-f]+)$" compatible: - items: - - const: qcom,coresight-tpdm - - const: arm,primecell + oneOf: + - items: + - const: qcom,coresight-static-tpdm + - items: + - const: qcom,coresight-tpdm + - const: arm,primecell =20 reg: maxItems: 1 @@ -143,4 +146,18 @@ examples: }; }; }; + + turing-llm-tpdm { + compatible =3D "qcom,coresight-static-tpdm"; + + qcom,cmb-element-bits =3D <32>; + + out-ports { + port { + turing_llm_tpdm_out: endpoint { + remote-endpoint =3D <&turing0_funnel_in1>; + }; + }; + }; + }; ... --=20 2.34.1 From nobody Fri Oct 3 23:02:03 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 166B22F49F8 for ; Fri, 22 Aug 2025 10:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755858629; cv=none; b=DE8yvqp5NqexqhXHQzxJaAoDY9sj5AyhXYxHl+ChZ5Ftbw3Nu8VSROI6hD3KZpZBGvpJNhFJZfVAqyKZYxLwlFSyvGHbeCJJMTvFqbFAsupFaGeDhgvXOR0FFVZ8KeSvDvZyo9rNYeHWuS7+rWf1SnfOAwvcHAJKSBNlbouSXpY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755858629; c=relaxed/simple; bh=wKxjmIL7A64pPvCzT9AuXr40zSWaHUtIPBmduY/2LJ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=loCBteF6zaqobdkZV0pQ7q6CmFZo7dOGAxQrqur01lYlAMn5wYnvlhRH9JM43G0ZYivafcNWYe6lctkm/SeOw4/iMyWEpq/jGEEmAbtVf4mOTUQiy9R0d68Ymcmc4qIjweGC2YaKJNEqlbLe+IFOMVEwyBkybhMYAHmqM3k/jSI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=RBI+2qhE; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="RBI+2qhE" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57M8URKi020955 for ; Fri, 22 Aug 2025 10:30:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=i6ar52aS7pa AX9RHyuOfRDfJ9wQKcoEYJ/divHjrSY0=; b=RBI+2qhEXUEMiXgq70B/t0a8bWe aaI/beco7U0AproNlSduJs4TtxTnJZn1wHNvrkGksle9akdVCj1oA1HtkeiHIlSp Xi3Duy5wXnEY42YQEec1oXYvrtt2CKZXEwyVSZ8mTgR9jVCKzQs0J4H+2jXs/rgQ tdkitScxMnmXocGMzvJVa+E7Mb8ib7dK0DbnRiKt6CE39B3gr/u+TN6eYAdd3J9a wFya8zTGi7DMsjKnVwO6vOdIqfPecNOVDtbFPNzq08bLK3MU+6Kt4ZsVoUloe2FZ 5ZctaCxWnzrgS4EgC8QGyl7syFTNrEs3K6JUkJKup9QdKYuKmUu7i3RKGuw== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48n5290w8p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 22 Aug 2025 10:30:26 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-b4716fa1e59so1673512a12.0 for ; Fri, 22 Aug 2025 03:30:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755858626; x=1756463426; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i6ar52aS7paAX9RHyuOfRDfJ9wQKcoEYJ/divHjrSY0=; b=jPmTjUCWprJtbPYM8Ng1ZZ+ZhbyJH8WIdfqoyOgfo6Ts0ymtowZ+Gb1hUGjVZI/qoI gXAOmbz7cOsJKKxHs6frluyjQBwiPnJeTI/VSKT1++Wl59C/t+8863Tq0hy7xpqAm6WL mJNTVHi3FO52yIebDTd/TXwSiBixoeD/eWUKw/TpbaxBNmGak8uzJvgFv/iqkwmTsKRn JFsTVByogspmjNCENKTdWJAz35+lCFbeciKtUcUTiwja+/wI8Bo/tBCWJbMK9hmBBXBa rTzIrMoo3R6SUO33pu5c8zat3hMdT+Cv+OzywLYmk6jexJvbt0HhPP/l/OMkbEEYymbM r8/g== X-Forwarded-Encrypted: i=1; AJvYcCXnekgJyz6RGlH5K+be4BXc1EFEt13zkGztkRcI9cSdRFt3ltg40O2sHhWaDOxiGEZJBp/C5+BzDOicZNc=@vger.kernel.org X-Gm-Message-State: AOJu0YwPSoC5FtZI9FjZznd4ghBtBpWs/c1FRt40OyufSeIDEUYm2nnx zo2/GYb9jkwHQsD1dLLCSWn7metw2AXGCxYDYD0nWlRFUFVgh9FFZmUEjjv040TDucKdKoxSaIR G3LDJO/pDWfAuvnP1t14EQQqp4Kvq+4eY/lBnPGA+YvaFugPZpwSRuWXvVpmEMJQHWjc= X-Gm-Gg: ASbGncsfqEb35aZyS/qIk/Xz4ecG+4NoqgR3B3RksH//mhZWWqoBv4hiOrIo8+J56Fc JigipdzBbeu+yvYJcc2DF+Qj/WX4Cah3wZW1w1XodpMJcqFCY+pDJM0pHAh1ZUdUY0IjvCD8Gbo XQAutPye0cuhZzzDSRLcBLi0sm+dSafYm7tdgnoLIAqGg2ZWXMDlOP0nipUEz4efj4/cQ/xHG3E TTGEsbAIRxclodEZALMcILaS9hZRUj3NWS/KnWXxm/2zyr8tOm+RFCOrb/SVGNKMPN39vBGQ5uz e80JQqqXfjdfEvk2JTpTND9ohd6xmdrOd4/HGaRj+0YxY6V7yk3256J5HO2J0J1sK5z6hKtZz6o SBTwircXlDEHLKTgBdFsA X-Received: by 2002:a05:6a21:99a7:b0:240:1327:ab3e with SMTP id adf61e73a8af0-24340bca37dmr3028736637.9.1755858625526; Fri, 22 Aug 2025 03:30:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVfMGah7FeeGrlu9Z4lkk3HAocWg5kHZCQFp5j8zHi+OtP3DxGxozVGgBLiJIwQJ2a6LQSQw== X-Received: by 2002:a05:6a21:99a7:b0:240:1327:ab3e with SMTP id adf61e73a8af0-24340bca37dmr3028681637.9.1755858624997; Fri, 22 Aug 2025 03:30:24 -0700 (PDT) Received: from jiegan.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b4763fec0e9sm6825196a12.24.2025.08.22.03.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Aug 2025 03:30:24 -0700 (PDT) From: Jie Gan To: Suzuki K Poulose , Mike Leach , James Clark , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Alexander Shishkin , Tingwei Zhang , Mao Jinlong , Tao Zhang Cc: linux-arm-msm@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/3] coresight: tpdm: add static tpdm support Date: Fri, 22 Aug 2025 18:30:07 +0800 Message-Id: <20250822103008.1029-3-jie.gan@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250822103008.1029-1-jie.gan@oss.qualcomm.com> References: <20250822103008.1029-1-jie.gan@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=I4c8hNgg c=1 sm=1 tr=0 ts=68a846c2 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=2OwXVqhp2XgA:10 a=EUspDBNiAAAA:8 a=_wMi7B_O7ukW3LTXVV0A:9 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-GUID: rPPNwjo-z2I4Ml1z2tmZ4DwcddUHVboO X-Proofpoint-ORIG-GUID: rPPNwjo-z2I4Ml1z2tmZ4DwcddUHVboO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODIwMDAxMyBTYWx0ZWRfX/aiD/h9NdidG 1B2o44q1ruFGqY+p2esYvtY1Sw/Bd3mp5xxuLDd74rrvylWOZIhGd8dvz65L2xOyrMvOfH8zLg6 ZdDrRsoOiNgAEX7QMRv5ioVDeAQE0z2W8sSZ6AziVwfoU/hSezBMY2dO6/vAXozT1btlh0QsxAK F32EsOnyUfdbl4CFL7TNhDrpjYJEgn5grdQ9M2MDaNlA8P9vh/FwLbdkON7fkc9JiLFFk2tfcEU IgcqvbluBJN0Vdi0DmtUHtEKi2ZOGNp2p4SQrefl7+8WWge34cL1W3DzA9StM+QVH4vq1XVxquq 7uEA3au8VAZax2EX3x+ObqkKZ42957U1Dfjl8NoXbkCO6N0uEh1CqdyzKlDb8lXtZRrT4kjaWS/ 6pTX97OppKJdVvU93fsJqBY7OlLVIg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-22_03,2025-08-20_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 malwarescore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 impostorscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2508110000 definitions=main-2508200013 Content-Type: text/plain; charset="utf-8" The static TPDM function as a dummy source, however, it is essential to enable the port connected to the TPDA and configure the element size. Without this, the TPDA cannot correctly receive trace data from the static TPDM. Since the static TPDM does not require MMIO mapping to access its registers, a clock controller is not mandatory for its operation. Signed-off-by: Jie Gan --- drivers/hwtracing/coresight/coresight-tpda.c | 9 ++ drivers/hwtracing/coresight/coresight-tpdm.c | 148 ++++++++++++++----- drivers/hwtracing/coresight/coresight-tpdm.h | 8 + 3 files changed, 131 insertions(+), 34 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-tpda.c b/drivers/hwtraci= ng/coresight/coresight-tpda.c index 333b3cb23685..4e93fa5bace4 100644 --- a/drivers/hwtracing/coresight/coresight-tpda.c +++ b/drivers/hwtracing/coresight/coresight-tpda.c @@ -68,6 +68,15 @@ static int tpdm_read_element_size(struct tpda_drvdata *d= rvdata, int rc =3D -EINVAL; struct tpdm_drvdata *tpdm_data =3D dev_get_drvdata(csdev->dev.parent); =20 + if (coresight_is_static_tpdm(csdev)) { + rc =3D fwnode_property_read_u32(dev_fwnode(csdev->dev.parent), + "qcom,dsb-element-bits", &drvdata->dsb_esize); + rc &=3D fwnode_property_read_u32(dev_fwnode(csdev->dev.parent), + "qcom,cmb-element-bits", &drvdata->cmb_esize); + + goto out; + } + if (tpdm_data->dsb) { rc =3D fwnode_property_read_u32(dev_fwnode(csdev->dev.parent), "qcom,dsb-element-bits", &drvdata->dsb_esize); diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtraci= ng/coresight/coresight-tpdm.c index 7214e65097ec..1766b0182819 100644 --- a/drivers/hwtracing/coresight/coresight-tpdm.c +++ b/drivers/hwtracing/coresight/coresight-tpdm.c @@ -495,7 +495,9 @@ static int tpdm_enable(struct coresight_device *csdev, = struct perf_event *event, return -EBUSY; } =20 - __tpdm_enable(drvdata); + if (!coresight_is_static_tpdm(csdev)) + __tpdm_enable(drvdata); + drvdata->enable =3D true; spin_unlock(&drvdata->spinlock); =20 @@ -551,7 +553,9 @@ static void tpdm_disable(struct coresight_device *csdev, return; } =20 - __tpdm_disable(drvdata); + if (!coresight_is_static_tpdm(csdev)) + __tpdm_disable(drvdata); + coresight_set_mode(csdev, CS_MODE_DISABLED); drvdata->enable =3D false; spin_unlock(&drvdata->spinlock); @@ -1342,10 +1346,9 @@ static const struct attribute_group *tpdm_attr_grps[= ] =3D { NULL, }; =20 -static int tpdm_probe(struct amba_device *adev, const struct amba_id *id) +static int tpdm_probe(struct device *dev, struct resource *res) { void __iomem *base; - struct device *dev =3D &adev->dev; struct coresight_platform_data *pdata; struct tpdm_drvdata *drvdata; struct coresight_desc desc =3D { 0 }; @@ -1354,32 +1357,33 @@ static int tpdm_probe(struct amba_device *adev, con= st struct amba_id *id) pdata =3D coresight_get_platform_data(dev); if (IS_ERR(pdata)) return PTR_ERR(pdata); - adev->dev.platform_data =3D pdata; + dev->platform_data =3D pdata; =20 /* driver data*/ drvdata =3D devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); if (!drvdata) return -ENOMEM; - drvdata->dev =3D &adev->dev; + drvdata->dev =3D dev; dev_set_drvdata(dev, drvdata); =20 - base =3D devm_ioremap_resource(dev, &adev->res); - if (IS_ERR(base)) - return PTR_ERR(base); + if (res) { + base =3D devm_ioremap_resource(dev, res); + if (IS_ERR(base)) + return PTR_ERR(base); =20 - drvdata->base =3D base; + drvdata->base =3D base; + ret =3D tpdm_datasets_setup(drvdata); + if (ret) + return ret; =20 - ret =3D tpdm_datasets_setup(drvdata); - if (ret) - return ret; + if (drvdata && tpdm_has_dsb_dataset(drvdata)) + of_property_read_u32(drvdata->dev->of_node, + "qcom,dsb-msrs-num", &drvdata->dsb_msr_num); =20 - if (drvdata && tpdm_has_dsb_dataset(drvdata)) - of_property_read_u32(drvdata->dev->of_node, - "qcom,dsb-msrs-num", &drvdata->dsb_msr_num); - - if (drvdata && tpdm_has_cmb_dataset(drvdata)) - of_property_read_u32(drvdata->dev->of_node, - "qcom,cmb-msrs-num", &drvdata->cmb_msr_num); + if (drvdata && tpdm_has_cmb_dataset(drvdata)) + of_property_read_u32(drvdata->dev->of_node, + "qcom,cmb-msrs-num", &drvdata->cmb_msr_num); + } =20 /* Set up coresight component description */ desc.name =3D coresight_alloc_device_name(&tpdm_devs, dev); @@ -1388,34 +1392,51 @@ static int tpdm_probe(struct amba_device *adev, con= st struct amba_id *id) desc.type =3D CORESIGHT_DEV_TYPE_SOURCE; desc.subtype.source_subtype =3D CORESIGHT_DEV_SUBTYPE_SOURCE_TPDM; desc.ops =3D &tpdm_cs_ops; - desc.pdata =3D adev->dev.platform_data; - desc.dev =3D &adev->dev; + desc.pdata =3D dev->platform_data; + desc.dev =3D dev; desc.access =3D CSDEV_ACCESS_IOMEM(base); - desc.groups =3D tpdm_attr_grps; + if (res) + desc.groups =3D tpdm_attr_grps; drvdata->csdev =3D coresight_register(&desc); if (IS_ERR(drvdata->csdev)) return PTR_ERR(drvdata->csdev); =20 spin_lock_init(&drvdata->spinlock); =20 - /* Decrease pm refcount when probe is done.*/ - pm_runtime_put(&adev->dev); - return 0; } =20 -static void tpdm_remove(struct amba_device *adev) +static int tpdm_remove(struct device *dev) { - struct tpdm_drvdata *drvdata =3D dev_get_drvdata(&adev->dev); + struct tpdm_drvdata *drvdata =3D dev_get_drvdata(dev); =20 coresight_unregister(drvdata->csdev); + + return 0; +} + +static int dynamic_tpdm_probe(struct amba_device *adev, + const struct amba_id *id) +{ + int ret; + + ret =3D tpdm_probe(&adev->dev, &adev->res); + if (!ret) + pm_runtime_put(&adev->dev); + + return ret; +} + +static void dynamic_tpdm_remove(struct amba_device *adev) +{ + tpdm_remove(&adev->dev); } =20 /* * Different TPDM has different periph id. * The difference is 0-7 bits' value. So ignore 0-7 bits. */ -static const struct amba_id tpdm_ids[] =3D { +static const struct amba_id dynamic_tpdm_ids[] =3D { { .id =3D 0x001f0e00, .mask =3D 0x00ffff00, @@ -1423,17 +1444,76 @@ static const struct amba_id tpdm_ids[] =3D { { 0, 0, NULL }, }; =20 -static struct amba_driver tpdm_driver =3D { +MODULE_DEVICE_TABLE(amba, dynamic_tpdm_ids); + +static struct amba_driver dynamic_tpdm_driver =3D { .drv =3D { .name =3D "coresight-tpdm", .suppress_bind_attrs =3D true, }, - .probe =3D tpdm_probe, - .id_table =3D tpdm_ids, - .remove =3D tpdm_remove, + .probe =3D dynamic_tpdm_probe, + .id_table =3D dynamic_tpdm_ids, + .remove =3D dynamic_tpdm_remove, }; =20 -module_amba_driver(tpdm_driver); +static int tpdm_platform_probe(struct platform_device *pdev) +{ + struct resource *res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); + int ret; + + pm_runtime_get_noresume(&pdev->dev); + pm_runtime_set_active(&pdev->dev); + pm_runtime_enable(&pdev->dev); + + ret =3D tpdm_probe(&pdev->dev, res); + pm_runtime_put(&pdev->dev); + if (ret) + pm_runtime_disable(&pdev->dev); + + return ret; +} + +static void tpdm_platform_remove(struct platform_device *pdev) +{ + struct tpdm_drvdata *drvdata =3D dev_get_drvdata(&pdev->dev); + + if (WARN_ON(!drvdata)) + return; + + tpdm_remove(&pdev->dev); + pm_runtime_disable(&pdev->dev); +} + +static const struct of_device_id static_tpdm_match[] =3D { + {.compatible =3D "qcom,coresight-static-tpdm"}, + {} +}; + +MODULE_DEVICE_TABLE(of, static_tpdm_match); + +static struct platform_driver static_tpdm_driver =3D { + .probe =3D tpdm_platform_probe, + .remove =3D tpdm_platform_remove, + .driver =3D { + .name =3D "coresight-static-tpdm", + .of_match_table =3D static_tpdm_match, + .suppress_bind_attrs =3D true, + }, +}; + +static int __init tpdm_init(void) +{ + return coresight_init_driver("tpdm", &dynamic_tpdm_driver, &static_tpdm_d= river, + THIS_MODULE); +} + +static void __exit tpdm_exit(void) +{ + coresight_remove_driver(&dynamic_tpdm_driver, &static_tpdm_driver); +} + +module_init(tpdm_init); +module_exit(tpdm_exit); =20 MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Trace, Profiling & Diagnostic Monitor driver"); diff --git a/drivers/hwtracing/coresight/coresight-tpdm.h b/drivers/hwtraci= ng/coresight/coresight-tpdm.h index b11754389734..9f52c88ce5c1 100644 --- a/drivers/hwtracing/coresight/coresight-tpdm.h +++ b/drivers/hwtracing/coresight/coresight-tpdm.h @@ -343,4 +343,12 @@ struct tpdm_dataset_attribute { enum dataset_mem mem; u32 idx; }; + +static inline bool coresight_is_static_tpdm(struct coresight_device *csdev) +{ + struct device_node *node =3D csdev->dev.parent->of_node; + + return (csdev && + of_device_is_compatible(node, "qcom,coresight-static-tpdm")); +} #endif /* _CORESIGHT_CORESIGHT_TPDM_H */ --=20 2.34.1 From nobody Fri Oct 3 23:02:03 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 E08371991D4 for ; Fri, 22 Aug 2025 10:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755858635; cv=none; b=ZUpGsymApCF/jnlgaezRJdJySlDPpzmu3LOs+7PRRXteQoLquU7PhcBTTDK008nB5sMh7nIBtLQQzlml2MSYN/xB31DNesQ5BaPoQXqBh4SjBtobQVI/uLLUl6yOCACutBlBYyU0ZhhOJldPCXRcbcQJV3LnX08/Oj6KjynQc1w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755858635; c=relaxed/simple; bh=qiYYWeXGyneC1KjiHAMmCpDYJ9k3K0y9ORAAb4EGCAo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=obTHq/MPF/R0KHcBjNWvMXlZqzImE+Ddga3XBatq6yE1j4i/h/63sdDDMNmZGhypjKxn5BmAEMiEiv+A6pDqwUc/ALfk5NbfGguGZziJu2mQKmX2vlCr4FyzQKfEHIbVTUwsMsqM9k+KhO3WzoBkV7LoDE+J88LW4Ny4AyGMMVE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=fxZXdlU3; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="fxZXdlU3" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57M8UjbT019037 for ; Fri, 22 Aug 2025 10:30:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=k13K1y4W7bk 1dVHjpu6PSFA3QeSZb1Ld64NLLZxH3z4=; b=fxZXdlU398nJoHhnBD+wib2T1JM +xDw6l/rmrEY/qH5C0NBvJ3mYED0mjVRYXIC+QAq+1YavoNkWfvp0rnsRkf4BQWH DROM7bT6kiFZ1ALKbDktAD8EZUw9eP/1nkiM6aWa6amMtsPs8MER/sB3reDVH8li HbmMbgzbDGdMoVFUQ84pWn9baxNiYHYC34SSiz27cKugRZIkhKzc7x8RwSTntmUE WBv9tNOnOkI7OFgPebc3u5RAoCq8QrKVXhKfFr0lerGWihL3C9T3LZjTMN3Jt5SY nUo93SAp6J7OXcqNbrQwJvkmtKR5v5Sbj8KABjyTlQebbl2KBMgEANNY+Fw== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48n52b0rda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 22 Aug 2025 10:30:31 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-b49c1c130caso528000a12.2 for ; Fri, 22 Aug 2025 03:30:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755858630; x=1756463430; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k13K1y4W7bk1dVHjpu6PSFA3QeSZb1Ld64NLLZxH3z4=; b=bHpA1XcDOwU+QMAoxnbciLCfQkY6tScMGRWn5u4uM9QnGByaF2zGr0uFkoGLam4Hk3 N+55fgYF7xmI/z9FWKlXS9Az2qgM1aLwK7Ku0mJmKxFwMNvImBBBPkCS2z6GI/AHCUcE FPef7WorwT9UFH64w5pKmiSaOQdE3a5dHUbZOXG9fMC2OLt38JVwOz/8Tnxip4/TqaQg D9reH4p7Hc7HyQlVkRBFp2Y/eCqcODgpNy9Jx04X7IBMIPxHmTviBS5EGYqS2SNf68Lp leQMKptD5tM2DVXV1PGBTEEKMTI/07GHKHE4+IV1pl81mbz21E+QAcYmCqE5AY3cgEhe cv8g== X-Forwarded-Encrypted: i=1; AJvYcCUYUPWFpXr9z1/AMiPMP6cAgRfNT3Z7F8CoZljTPM+vhJ5zL6/fDbmucwghUg1a4GGnp7pfmPcEADO0ork=@vger.kernel.org X-Gm-Message-State: AOJu0YwiuJfbzKeSsSJkIVYNF7/Mo4OIc2R2b3ojzr0AUypKijItFeOj IsJob1c2KmGI+EEMhp5BX22vJc3YIzyBw7c1DkCxybzGv1S0JjeaIXIzQLR2PG0g2KWMhm+KuTd lG6Hk4C41XHLPQMEM+3U1Y2zXC03rEY7buu+kbz2h6ndt9hk/bGKzgHos5sFlX51NhnM= X-Gm-Gg: ASbGncuEDufqMg1/U+ADgXq7X3YH3zBbh5uydHC2cn8K4LdI3KD1Mn0GJ364NsXwV39 fd6QZRkK3oTmUM2HyW1DlGQvddYyumPAE9fxsFq1PNCwgP0LvW+9ZBVYyA682DlXZRQlCaDtbzp 2W8abJAm/h8B8gYdv23ICf3cwzuaDELNiOm8k9oB7y23l7/Xcbaz7dJs7yKwFeV+etLdd7RcS/z NzDgpLLzCNbOmbSvybbfAk08/2ieVmt1H+niv9ConK4+IlRD+1qZLouEEoXLyE2C4AcPBE8Yhem /yjMtKUJGBKWlnLC5M3CTsZ8UkOcz7lh+pwTSq4XmeaXevb4rS53yCsoam7lASqscZvmOeouIA8 3pUtpzkKg2c8Na5paVl5y X-Received: by 2002:a05:6a20:1594:b0:238:3f54:78ec with SMTP id adf61e73a8af0-24340def5fbmr3825810637.46.1755858630401; Fri, 22 Aug 2025 03:30:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVlMDlU6sV9lQpDsihzPt7GlkamAV4d2zA9RgA04+j3Ibuouglgjezu/LoQBnFhZnLmMuvHg== X-Received: by 2002:a05:6a20:1594:b0:238:3f54:78ec with SMTP id adf61e73a8af0-24340def5fbmr3825768637.46.1755858629955; Fri, 22 Aug 2025 03:30:29 -0700 (PDT) Received: from jiegan.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b4763fec0e9sm6825196a12.24.2025.08.22.03.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Aug 2025 03:30:29 -0700 (PDT) From: Jie Gan To: Suzuki K Poulose , Mike Leach , James Clark , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Alexander Shishkin , Tingwei Zhang , Mao Jinlong , Tao Zhang Cc: linux-arm-msm@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/3] arm64: dts: qcom: lemans: enable static TPDM Date: Fri, 22 Aug 2025 18:30:08 +0800 Message-Id: <20250822103008.1029-4-jie.gan@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250822103008.1029-1-jie.gan@oss.qualcomm.com> References: <20250822103008.1029-1-jie.gan@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODIwMDAxMyBTYWx0ZWRfX7wuc2QW3oqUO NQcXcuDLUW8K4hGLEgoMy8biKNnnodVgaY2/YuFO2ecpCds4NRuznMn7fTnJshwrU1LpLqcc5DQ lmUgH2Qpi5YBH8LWEk/T5cdhUfQKnsHISmdSLE8PoWqpAabA/JcGLDvjsOiURNVWrhJGxHw1iKp uWvDxsjdNdpD45UWO88MFklgw03nf7Sm1PDYQvuTUjl9R8Ewlmo8vF48/OnRs35RciIIRRF7D90 AxhRWRrrsvOeFCJfsFAEsetQ001pukoc9O9I+bdNW5BknctUfncDElUSRxKu8OykESk30uYBAfJ qw7yhTeU5azjZd6CQp2c/GJUXzetHthmYOGscztyZtDYIJFUC+3pnnYbVmkOlMoo5cfjZNTlTtL uTCbQmgDzB3iw2WEIss4q3mxRlh1eg== X-Authority-Analysis: v=2.4 cv=TIIci1la c=1 sm=1 tr=0 ts=68a846c7 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=2OwXVqhp2XgA:10 a=EUspDBNiAAAA:8 a=8Krfq1_MhNCW99YIMDUA:9 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-ORIG-GUID: z0lZY9QfJa6e1sFeLWaqwG0pX0rnGDtP X-Proofpoint-GUID: z0lZY9QfJa6e1sFeLWaqwG0pX0rnGDtP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-22_03,2025-08-20_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 phishscore=0 bulkscore=0 impostorscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2508110000 definitions=main-2508200013 Content-Type: text/plain; charset="utf-8" Enable static TPDM device for lemans. Signed-off-by: Jie Gan Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/lemans.dtsi | 105 +++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/lemans.dtsi b/arch/arm64/boot/dts/qco= m/lemans.dtsi index 64f5378c6a47..077e22b28279 100644 --- a/arch/arm64/boot/dts/qcom/lemans.dtsi +++ b/arch/arm64/boot/dts/qcom/lemans.dtsi @@ -2959,6 +2959,14 @@ funnel1_in4: endpoint { <&apss_funnel1_out>; }; }; + + port@5 { + reg =3D <5>; + + funnel1_in5: endpoint { + remote-endpoint =3D <&dlct0_funnel_out>; + }; + }; }; }; =20 @@ -3116,6 +3124,60 @@ etr1_out: endpoint { }; }; =20 + tpda@4ad3000 { + compatible =3D "qcom,coresight-tpda", "arm,primecell"; + reg =3D <0x0 0x4ad3000 0x0 0x1000>; + + clocks =3D <&aoss_qmp>; + clock-names =3D "apb_pclk"; + + in-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@10 { + reg =3D <16>; + dlct0_tpda_in16: endpoint { + remote-endpoint =3D <&turing0_funnel_out>; + }; + }; + }; + + out-ports { + port { + dlct0_tpda_out: endpoint { + remote-endpoint =3D + <&dlct0_funnel_in0>; + }; + }; + }; + + }; + + funnel@4ad4000 { + compatible =3D "arm,coresight-dynamic-funnel", "arm,primecell"; + reg =3D <0x0 0x4ad4000 0x0 0x1000>; + + clocks =3D <&aoss_qmp>; + clock-names =3D "apb_pclk"; + + in-ports { + port { + dlct0_funnel_in0: endpoint { + remote-endpoint =3D <&dlct0_tpda_out>; + }; + }; + }; + + out-ports { + port { + dlct0_funnel_out: endpoint { + remote-endpoint =3D <&funnel1_in5>; + }; + }; + }; + }; + funnel@4b04000 { compatible =3D "arm,coresight-dynamic-funnel", "arm,primecell"; reg =3D <0x0 0x4b04000 0x0 0x1000>; @@ -3388,6 +3450,35 @@ aoss_cti: cti@4b13000 { clock-names =3D "apb_pclk"; }; =20 + funnel@4b83000 { + compatible =3D "arm,coresight-dynamic-funnel", "arm,primecell"; + reg =3D <0x0 0x4b83000 0x0 0x1000>; + + clocks =3D <&aoss_qmp>; + clock-names =3D "apb_pclk"; + + in-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@1 { + reg =3D <1>; + + turing0_funnel_in1: endpoint { + remote-endpoint =3D <&turing_llm_tpdm_out>; + }; + }; + }; + + out-ports { + port { + turing0_funnel_out: endpoint { + remote-endpoint =3D <&dlct0_tpda_in16>; + }; + }; + }; + }; + etm@6040000 { compatible =3D "arm,primecell"; reg =3D <0x0 0x6040000 0x0 0x1000>; @@ -7578,6 +7669,20 @@ arch_timer: timer { ; }; =20 + turing-llm-tpdm { + compatible =3D "qcom,coresight-static-tpdm"; + + qcom,cmb-element-bits =3D <32>; + + out-ports { + port { + turing_llm_tpdm_out: endpoint { + remote-endpoint =3D <&turing0_funnel_in1>; + }; + }; + }; + }; + pcie0: pcie@1c00000 { compatible =3D "qcom,pcie-sa8775p"; reg =3D <0x0 0x01c00000 0x0 0x3000>, --=20 2.34.1