From mboxrd@z Thu Jan 1 00:00:00 1970 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 3DB63311958 for ; Mon, 27 Jul 2026 14:11:46 +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=1785161508; cv=none; b=VI34xrDqMMMWPqIooSah2KnBTX//QjmMki2RVVGErV5WEkcQoH+zX2ZrIEg9opXJ0TBYz+IBv6IaFQVIelB+dsUZgYnSVyrtkAZs6v8mk0tvyAz2E9+XPEQlRbvBN2EjBkelAruSz3xWJM9cHPIzy5GmRKUwRKz3gzhRpkXyT6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785161508; c=relaxed/simple; bh=hMCvPgBPB3q9MAdNcGHYbIRCM3IAMI96J+Q0IZtiLy0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qOxg/1VYGZ/NoKtbmt4CS32N14NdFllvdURAeZoWZScRboG/JAthABdgFBxzrABkCgFiTiOS1nDn2uvZARMpJO4n/vsMZ2BVM35mw7ruUZA7+OA72bzQWdQVK/ci5SRhE976v6Dz1s0cO8jtL2Cr6qR7UiBQR9vx4EIU1bIj1U0= 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=NuU61zqi; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=S5LPPuKD; arc=none smtp.client-ip=205.220.168.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="NuU61zqi"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="S5LPPuKD" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66RDlhwC033222 for ; Mon, 27 Jul 2026 14:11:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= x42XRV/b+7FIQ3y9QK+srSnj/CLDUIWtj9CDTSVpPG4=; b=NuU61zqiqq2V4LDG YqpwxlTM/ewh4kAkgGhQm4kIPOL27ilJaRl485OLGByUiBsF+SVUh+c4ZJVrNy93 Znx7V1lnLEdeKLEyvdOPNuJXfK1c+s7W2y7r7GaZRLUj+P35RhaAhoiPHPAhWiV/ c+kWdhvQVPRlmp62THn07X3NoU6wT4m07d8mKjSPv8uH4JCwzR9++VHxLtw4dX1J uGGnShy5Cr3vtNcTYHlezyYRPpgKM9TB1Kwhq7S8MfjHzl21VoNdTpE54bhSdNoV Bn4U2q5LJUwsuOFD9KOwdNH2p36hpxY7ATnO5Td/BT0QmtBPPywBYlaUgZmZnvmZ 6kQ3dg== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fp4c615j0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 27 Jul 2026 14:11:46 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-8485b7e18b4so4656904b3a.1 for ; Mon, 27 Jul 2026 07:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785161505; x=1785766305; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=x42XRV/b+7FIQ3y9QK+srSnj/CLDUIWtj9CDTSVpPG4=; b=S5LPPuKDHiNNMeGyUvNOt09HG6/3jRZBVnnNQUPsK33l6+3YZ2dpGkirxaOuQAwJSY NCG46bntYviLWsoO6Ox4epkxALaGMO5j12pBMFdxC4lVWu4MAkXSOiwik1vWw7dvcgPi QnygolIIAbrxZrsy4fR5XtuZa24dGZss5OHFdNG+Gsm/vmuafFZYcnHoMWcp/OfpTOXM Tlr8uvEqnJqBVDLaSKAvJWEL8yWWqQnbo6w9PUbG+LdR2Hi5XvfVsaF4OLuUz/3x5cJc dO1SBXFuXLtHJKl8CVYFEox53vrqnbyLlekUwturr7JNmlOOjgA9NtFdbu0i4amLKG/6 RiQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785161505; x=1785766305; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=x42XRV/b+7FIQ3y9QK+srSnj/CLDUIWtj9CDTSVpPG4=; b=ei4r9lJUWhjbb+QE0Q4VL3IwOBnjTwPgPxl8YF4JR8jBk2Qi5V2ig9k7tGc8y6o3Pc YdTQYiC7FjQm6zrUrwHhamKw31lIRIJ1xy6w6gtDi3vpi1WffkQ5aod6Tdt9c/OFidki EW8sbh7CbqMku7t6qAs9osibmKyiM1jUdjASRzMBfwTqEWubLnB05QXJ1r559blLykaX eQ2K1s+HlutMSrG8w1Am9SrUpzt/sXTaUnMmtL1FAjVcKDpnEOf7+zFFHLCKYVK28J8n YvdMJj3qduQ+MlpNIAg/G3oZJcM0rUHogmi6RDc0tW9ZpGVIuMl9D5ybH3eCFLRJlr54 1iRA== X-Forwarded-Encrypted: i=1; AHgh+Rp3Fe3tMlgWSxuGAjpDhHJYS4uY3UVjO1tNe4+6n50O6QnzhZJxhVVr48Yj5+54ZUtEIa1D9UJHVjKP@vger.kernel.org X-Gm-Message-State: AOJu0Yyr1qVmEeMvZbXQ3P76LnXicSn2UEEMNdmZhC9I+35Z2WWLN/MQ Vm1VRAAOIpAV5/UeSQYbLB4u6dCqfAWdEdLY7Vzy7FjKUXwFjMs/vpQgYejWMv4uoZDQBkJlR9T O7ZruQbWTaaJsa59pYIqiec17b/LlOI0TlaKmC+5LWAXc4YWObxAkxAjCnGCl26YD X-Gm-Gg: AR+sD13i+pRlQmcIucXpjRVYGOe+VYK9u3x647Ubyw5Ruxc3p8lF2WatXcN3r1q2omI 7ZElq+FuN3ROtk30d4PgJm5gfxj427PVaCzHgaf3t0Cq9pz5gSLrULhiNjL9l46SRzQ2QJimr/V sakrAniAeIF/DTIO7nH7HIKdo2SzEQBeu0GGrnLC/1Dzw4x4ApbFdX8cidXWDqcemo9xIfmmDh8 auWWgDqqG51UIuFLReMXWHU7iUKcD02D7C2ci5W9ZgUdyq65EBU44li0FRH0aX3fbiWKqEZlMf9 M1MAaYLptc9p72vmUuEG5P25SkzO12Z83rdYm4oRoLhKXXbpkbIn8OT0Y5yG/Q7Nq7CUUK91rS6 p6NdCKyeUnuJbagwhQEQ7OoJUmydZ694= X-Received: by 2002:a05:6a20:1602:b0:3c3:a140:9380 with SMTP id adf61e73a8af0-3c67da110cbmr7593815637.16.1785161505446; Mon, 27 Jul 2026 07:11:45 -0700 (PDT) X-Received: by 2002:a05:6a20:1602:b0:3c3:a140:9380 with SMTP id adf61e73a8af0-3c67da110cbmr7593784637.16.1785161505023; Mon, 27 Jul 2026 07:11:45 -0700 (PDT) Received: from hu-imrashai-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc44cb92sm53438677eec.13.2026.07.27.07.11.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2026 07:11:44 -0700 (PDT) From: Imran Shaik Date: Mon, 27 Jul 2026 19:40:58 +0530 Subject: [PATCH 2/6] dt-bindings: ptp: Document TSCSS hardware on Qualcomm QDU1000 SoC Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260727-tscss-v1-2-beed14e72510@oss.qualcomm.com> References: <20260727-tscss-v1-0-beed14e72510@oss.qualcomm.com> In-Reply-To: <20260727-tscss-v1-0-beed14e72510@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Bjorn Andersson , Konrad Dybcio Cc: Ajit Pandey , Taniya Das , Jagadeesh Kona , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Imran Shaik X-Mailer: b4 0.14.2 X-Authority-Analysis: v=2.4 cv=eYQNubEH c=1 sm=1 tr=0 ts=6a676722 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=-YqWXAWF1hLJgJDcJRIA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI3MDEzNSBTYWx0ZWRfXztyMugweE0Xm xZMDmlzwkHQHrd8BVwWcKaWo68Ae5OD41T7X4bMJTandDPIyD33NTcFEH1DGaCS/QxF/Ot1gidw 2kYH+bUl52Kra7CWDFIHzIh2e9Mb3Pw= X-Proofpoint-ORIG-GUID: yS1zvd1-0zwsBNtdIKLITy7IRxgjdxVW X-Proofpoint-GUID: yS1zvd1-0zwsBNtdIKLITy7IRxgjdxVW X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI3MDEzNSBTYWx0ZWRfX/E0Ogwx4/MbI l+uvKcs/ixMiHGDCmem2A3aa9Y9DfbrZNWn+Q9WCN/8KBUn6IsfFGdci2B/XxCJFx8b7DQSPCv7 GgBlNYJfTGgm5NRbuK2GapODIuq9S9OjO23oo97VI9DwACYkqkFHHC3WERzle+zO9kL+y61m+BH a8lbg+FgIZqHhlr25ob7JyKsnIWjz3ZjBzHzJAbhenevDFvBLCPY1pmqvnk/IMJ2JXOwlKkCVWx k9XBE9QahAYDIFX0l4QK6mcBGLJ+jU9HdUNEx04zXM63+kpaGERZ+HES/dtPCua7wEh6gcRmLDi bKgQvFq8wq7a4hdjHQQiM+3ZuCMjkMJJJGbul3/y8WRNcYDpiK+QBUu/Z23MBjSPBLgjXj37DKo Ccg4fiEzQTt2oMumoaCvxUwVCmFYHRsZMl3mzPg0Ftbg33Pw+W6J9o8jRXU3sdSbYW+8hTX9odt Y9ZkALFx1av0yRjwMHg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-27_04,2026-07-24_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 malwarescore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607270135 Add Devicetree bindings for the Timestamp Counter Subsystem (TSCSS) found on Qualcomm QDU1000 SoC. TSCSS is a time synchronization subsystem composed of two main blocks: Timestamp Counter (TSC) and Event Timestamp Unit (ETU). The TSC block provides a continuously running counter used for timekeeping, while the ETU captures timestamps for external hardware event triggers. Co-developed-by: Taniya Das Signed-off-by: Taniya Das Signed-off-by: Imran Shaik --- .../bindings/ptp/qcom,qdu1000-tscss.yaml | 187 +++++++++++++++++++++ 1 file changed, 187 insertions(+) diff --git a/Documentation/devicetree/bindings/ptp/qcom,qdu1000-tscss.yaml b/Documentation/devicetree/bindings/ptp/qcom,qdu1000-tscss.yaml new file mode 100644 index 0000000000000000000000000000000000000000..39387614ef8939b7840df2f0d5640b9e142fb4e5 --- /dev/null +++ b/Documentation/devicetree/bindings/ptp/qcom,qdu1000-tscss.yaml @@ -0,0 +1,187 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ptp/qcom,qdu1000-tscss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Timestamp Counter Subsystem (TSCSS) on Qualcomm QDU1000 SoC + +maintainers: + - Imran Shaik + - Taniya Das + +description: | + Qualcomm TSCSS is a time synchronization subsystem composed of two main + blocks - the Time Stamp Counter (TSC) and the Event Timestamp Unit (ETU). + + The TSC block is a timestamp generator that maintains a running counter used + for system timekeeping, and is functional with just the AHB and counter + clocks. + The ETU block is optional and captures TSC timestamps for external + hardware events, each ETU slice binding a slice identifier to an external + event selector. Support for the ETU block requires the additional ETU + clock along with the per slice interrupt and slice subnodes. + +properties: + compatible: + const: qcom,qdu1000-tscss + + reg: + maxItems: 1 + + reg-names: + items: + - const: tsc + + clocks: + minItems: 2 + items: + - description: TSC AHB configuration clock. + - description: TSC global counter clock. + - description: TSC ETU clock. + + clock-names: + minItems: 2 + items: + - const: ahb + - const: cntr + - const: etu + + assigned-clocks: true + assigned-clock-rates: true + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + + ranges: true + +patternProperties: + "^etu-slice@[0-9a-f]+$": + type: object + description: ETU slice configuration + properties: + reg: + maxItems: 1 + + pinctrl-0: true + + pinctrl-names: + items: + - const: default + + interrupts: + description: Per slice interrupt generated by ETU based on external event trigger. + maxItems: 1 + + qcom,etu-event-sel: + description: Event selection value for this slice. + $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,etu-slice: + description: ETU slice identifier. + $ref: /schemas/types.yaml#/definitions/uint32 + + required: + - reg + - interrupts + - qcom,etu-event-sel + - qcom,etu-slice + - pinctrl-0 + - pinctrl-names + unevaluatedProperties: false + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + +allOf: + - if: + properties: + clock-names: + contains: + const: etu + then: + properties: + clocks: + minItems: 3 + clock-names: + minItems: 3 + required: + - "#address-cells" + - "#size-cells" + - ranges + +unevaluatedProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + tscss@1da0000 { + compatible = "qcom,qdu1000-tscss"; + reg = <0x0 0x01da0000 0x0 0x2000>; + reg-names = "tsc"; + + clocks = <&gcc GCC_TSC_CFG_AHB_CLK>, + <&gcc GCC_TSC_CNTR_CLK>; + clock-names = "ahb", "cntr"; + assigned-clocks = <&gcc GCC_TSC_CNTR_CLK>; + assigned-clock-rates = <500000000>; + }; + }; + + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + tscss@1da0000 { + compatible = "qcom,qdu1000-tscss"; + reg = <0x0 0x01da0000 0x0 0x2000>; + reg-names = "tsc"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&gcc GCC_TSC_CFG_AHB_CLK>, + <&gcc GCC_TSC_CNTR_CLK>, + <&gcc GCC_TSC_ETU_CLK>; + clock-names = "ahb", "cntr", "etu"; + + assigned-clocks = <&gcc GCC_TSC_CNTR_CLK>, + <&gcc GCC_TSC_ETU_CLK>; + assigned-clock-rates = <500000000>, <500000000>; + + etu-slice@1db1000 { + reg = <0x0 0x01db1000 0x0 0x1000>; + interrupts = ; + pinctrl-0 = <&cci_timer0>; + pinctrl-names = "default"; + qcom,etu-event-sel = <1>; + qcom,etu-slice = <1>; + }; + + etu-slice@1db2000 { + reg = <0x0 0x01db2000 0x0 0x1000>; + interrupts = ; + pinctrl-0 = <&cci_timer1>; + pinctrl-names = "default"; + qcom,etu-event-sel = <2>; + qcom,etu-slice = <2>; + }; + }; + }; +... -- 2.34.1