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 71D672135AD for ; Fri, 12 Dec 2025 01:12:32 +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=1765501954; cv=none; b=CrPwxLuFHYsTkjkNy98cM9L2PJQ/KWBh4r7GoikQzlbVfv441LHk4Huqb85frYxlhiS1OqcKXdh6vWr2EaGuwnQsP9rh6pJLXdGQN1qQzfILh105QSBGW+aQBNbnThobxsUs2GqPh7Nk1fVKLJwQgk5+qVCKGL1G54AmSz260C8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765501954; c=relaxed/simple; bh=kihEArBdt2qh6TdIAAOz8f0jmLZeHn1njZYdfCTRSeQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BZ5uV2SbOkszsdrLvhAdGicFBp3TQ4WZzVkOTkSywjp8YcU/Rfma2Gn8o0/nO1UMHqbWaa3dC502IdA2HtWWRDA/7MJAmeuPv8GiTeRuTvFMmBzRGhQi92CaVpdDs43emjLbfoRfZUiKKZOnyFtNbT1JIX8A4miUGjHTILJnUWs= 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=A89EWoIl; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=DRzluN1s; 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="A89EWoIl"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="DRzluN1s" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BBJgZh01652507 for ; Fri, 12 Dec 2025 01:12:31 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= Bpy4sMZGtZjO3qDrmI82LXa5Amy5k7qxvd2BAFsT/bs=; b=A89EWoIlqp08Gzas 9IsxU4r25bwS1PI6RUlXRgh1nH171eLABDW5RjYXzpcczsbSPHRaeTBk/8LFVTuM knndiRhyDkIsqUk8bJOFPkHLCdxx9ZefNUxGAXMyvE/PKu+mn4elMKnuz1bCUpDG QyBigXSdTxECywHcJH6/ysYbLpLLAbBZRpQ+M6otQAXTBC/9XCnK3aNJLGQJlHXx GEZ96o4aYU1BfaRjcgaSXTNZGCZMw8oBLeZ1ewYRo/+VlJDaNLbSUk5CjhP1/jSe xsw0R/YOHZP+cuku3D/8Zl5ub/A/A3zpdRa2SdJZo3UFhU1SBh/0Pl7yhipJG7VV GEqHpQ== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4b04bsrq3c-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 12 Dec 2025 01:12:31 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2958c80fcabso14344185ad.0 for ; Thu, 11 Dec 2025 17:12:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1765501951; x=1766106751; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Bpy4sMZGtZjO3qDrmI82LXa5Amy5k7qxvd2BAFsT/bs=; b=DRzluN1sms4ZrqAwVUQZ1HiAYZrz37o0PbzqNuoWdtNfQa6+PLmKNwofrAab4zKgDi JwRTpJAFuoplaqWKx1HZEQx8X/+mt5cDBck6MKDuxEdyfAu+xpLuVjYS7GvpG3G8vVEe YUGTmiwX3Da73bdCebTF02ywYDn3dwBFowa8HD99eauxIdfzvQbMHHkjqGfGUpcm0TrG 4pgP5puYUv8xgLFiujEIlVtPvYm7ZULcYlbI6bBJEsD3wzW3f+SrojFqn5tah3WSXXJi uz7UUMhxkg8feMGwdThpYYY3XpTR5OBx6kkxKTw592BC0247rTmSiJMJA7bpUKHyS37d miog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765501951; x=1766106751; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bpy4sMZGtZjO3qDrmI82LXa5Amy5k7qxvd2BAFsT/bs=; b=cC2xeqAqnne+gwkTbhN8cdH68uBbOZD2jWfidpUQJFRYQnAnpCesN67d+JxTKqENz2 +H68gBp0lFZPSaFkQR1D851SL9rBqvK7A03sT+0vPGJdUcLEtDHt1/izIQERf8aZBeNJ e+9sT/MFKXIYYxOjci6sRkMyi0+NBKSLutHvmMDdiRGoh8USJ+zGyc7BRsP2yMlm4aGi mTnlSSh/x+bRc6di6V43pBvvHNeDKIfGPpxWMUIYQg2klF5m7W7hcd7ZG2O3IAXdGYmy LfYQh8oqgDnHHRHMBzBF4tof7QlnRDHXjXlSfeCgatjQKmactlhfuT4/kuDzc1/obTuF i1eg== X-Forwarded-Encrypted: i=1; AJvYcCV1KcRUzuE4jk3a28y7lbZTt2PvyVIRB9/PFpLKxAWfnkqAYW/ptfPeS65sgJ51x7vOoXg8m1w06ZHQ@vger.kernel.org X-Gm-Message-State: AOJu0Yy1A9Rqcc0EdOtz2gepIak0+ZtgaihOw0teluLddc2rfYF6v71t JcNFjXnozWDIrpEeBOJz5kzI8FotkFu8IsDJERlWHk49+pbZ1vSegJDCJXpVOavxyALmfZrZEfq e2t9bY9YLWhNx93pxClGc62aEKXcKerY/gw97yu+yoLV/dKL0HrLoxCuOYY1K/56w X-Gm-Gg: AY/fxX4Z8cBnYpaPMeQ3Wd3NE5OlENyLL/REHyT2Ih/r6G2LCqgcnRpqR+l5supoLZR WTWU+qOs58jMvZ3EoI/v/2dUzNaT6lM7eWgv73TsGZ9EuMuX5zDSYhG7AR8zhs0Y7NL1zfwIvVp i7AoAX+JmAHECXPAoyfxIEl+1Z3/pAa9BNFFC+dUs/CzGnQJ8MTiANbfuyztq2bC1kaYklqcIPX Zk3uG5RJIKCv6JoVXIPnantpFiZyETmF178pG62vbrrr8hSK6jH3kJM5/XOt9WatzvTf7GUEr/k LwpiMzsZkQnQgBcnPK7wS6zzu7RXvTxysKNVLrRJuJbsryY0mRNvtzbLJd7MovDDaDX38TxiYTT onD9CGsIsRuXdGcQRpiqGeugvpxAOYozLyqFhH/NYIaBi7/5hYayxhbugV92DaGh4opE6tA3+Dg == X-Received: by 2002:a17:903:22c2:b0:282:eea8:764d with SMTP id d9443c01a7336-29f23c68107mr5693515ad.35.1765501950722; Thu, 11 Dec 2025 17:12:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGx4fRvdhPu/SygFF5ybCQmrFBEB7oSGXXfLs0+77TNXaagA2gUiZ7A/5tmbwK6pdQO3pay8w== X-Received: by 2002:a17:903:22c2:b0:282:eea8:764d with SMTP id d9443c01a7336-29f23c68107mr5693045ad.35.1765501950185; Thu, 11 Dec 2025 17:12:30 -0800 (PST) Received: from [10.133.33.31] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29f271bc8a0sm429515ad.92.2025.12.11.17.12.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Dec 2025 17:12:29 -0800 (PST) Message-ID: Date: Fri, 12 Dec 2025 09:12:19 +0800 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 5/8] dt-bindings: arm: add an interrupt property for Coresight CTCU To: Rob Herring Cc: Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , Krzysztof Kozlowski , Conor Dooley , Tingwei Zhang , Mao Jinlong , Bjorn Andersson , Konrad Dybcio , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski References: <20251211-enable-byte-cntr-for-ctcu-v8-0-3e12ff313191@oss.qualcomm.com> <20251211-enable-byte-cntr-for-ctcu-v8-5-3e12ff313191@oss.qualcomm.com> <20251211133723.GA859302-robh@kernel.org> Content-Language: en-US From: Jie Gan In-Reply-To: <20251211133723.GA859302-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=LZ0xKzfi c=1 sm=1 tr=0 ts=693b6bff cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=SkUS4XPTP4F0jhogtscA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: Dmmkf-uEt1jQrY4NIdOArnbd2u1SXXY5 X-Proofpoint-ORIG-GUID: Dmmkf-uEt1jQrY4NIdOArnbd2u1SXXY5 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjEyMDAwOCBTYWx0ZWRfX0NIuWPyjnUec SkeYq526HmzOW18YfdheC1pzLDB4VsUiQPK1Q2CSmSn5wbrNR1SIrRsR2EunYJgL2thaySa33TH v3pGV669g8EBp8lfFG6seC8CwPGHyrUEy6Fcl5neTrP7tZC79JxtprW/0QtB842D62uIohOrLzt uwWbOSOVlyhaZsvgh4jxuHBrxE0btb4CMGo1pRW5O2ksQyUhZKyRbFJe3d9yTTXv6jyIvryJ4Ch 8MLbVD+4lFfq7nN+lEdDcvIU27Gz2K9kDd5IMu6MbG7d2i52avMMTtgDqsOcFhiWZJ3zp+OVAS4 6o1CwkFCJDNy5Sg8hgvpC75vu/Wp1wAs/xMGqiM0VRFwlJScCOzybRKYzfXS8ISSZLU+WiSZK5G fx3qDdbzVmPp1Gf2E5vSIuxnxjfM7Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-12_01,2025-12-11_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 suspectscore=0 impostorscore=0 clxscore=1015 phishscore=0 priorityscore=1501 spamscore=0 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512120008 On 12/11/2025 9:37 PM, Rob Herring wrote: > On Thu, Dec 11, 2025 at 02:10:44PM +0800, Jie Gan wrote: >> Add an interrupt property to CTCU device. The interrupt will be triggered >> when the data size in the ETR buffer exceeds the threshold of the >> BYTECNTRVAL register. Programming a threshold in the BYTECNTRVAL register >> of CTCU device will enable the interrupt. >> >> Acked-by: Krzysztof Kozlowski >> Reviewed-by: Mike Leach >> Signed-off-by: Jie Gan >> --- >> .../devicetree/bindings/arm/qcom,coresight-ctcu.yaml | 17 +++++++++++++++++ >> 1 file changed, 17 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-ctcu.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-ctcu.yaml >> index c969c16c21ef..90f88cc6cd3e 100644 >> --- a/Documentation/devicetree/bindings/arm/qcom,coresight-ctcu.yaml >> +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-ctcu.yaml >> @@ -39,6 +39,16 @@ properties: >> items: >> - const: apb >> >> + interrupts: >> + items: >> + - description: Byte cntr interrupt for the first etr device >> + - description: Byte cntr interrupt for the second etr device >> + >> + interrupt-names: >> + items: >> + - const: etrirq0 >> + - const: etrirq1 > > Names are kind of pointless when it is just foo. Hi Rob, I was naming them as etr0/etr1. Are these names acceptable? The interrupts are assigned exclusively to a specific ETR device. But Suzuki is concerned that this might cause confusion because the ETR device is named randomly in the driver. Suzuki suggested using ‘port-0’ and ‘port-1’ and would also like to hear your feedback on these names. Usually, the probe sequence follows the order of the addresses. In our specification, ‘ETR0’ is always probed before ‘ETR1’ because its address is lower. I would greatly appreciate your suggestion for the interrupt name, if possible. Thanks, Jie > >> + >> label: >> description: >> Description of a coresight device. >> @@ -60,6 +70,8 @@ additionalProperties: false >> >> examples: >> - | >> + #include >> + >> ctcu@1001000 { >> compatible = "qcom,sa8775p-ctcu"; >> reg = <0x1001000 0x1000>; >> @@ -67,6 +79,11 @@ examples: >> clocks = <&aoss_qmp>; >> clock-names = "apb"; >> >> + interrupts = , >> + ; >> + interrupt-names = "etrirq0", >> + "etrirq1; >> + >> in-ports { >> #address-cells = <1>; >> #size-cells = <0>; >> >> -- >> 2.34.1 >>