Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp239857lqe; Wed, 27 Mar 2024 04:36:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8aaScxAzASH3g1SwSDWO4DB6U+/PBW9ILyPsW+HKRlbumWnCo2ZQu5ksf5Ayz4A7/8Fc3/d7feQK7ptm4eqfC6xO0IgXM0bK+Jq3ehg== X-Google-Smtp-Source: AGHT+IET1thtXYNMF+7EvYfxVRGS8dJ463koZNa0ONkAX5fPlVzom2tGS7tipj7cXbKdlLUpAXVu X-Received: by 2002:a17:906:cb85:b0:a4e:904:3c7f with SMTP id mf5-20020a170906cb8500b00a4e09043c7fmr714249ejb.50.1711539374799; Wed, 27 Mar 2024 04:36:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711539374; cv=pass; d=google.com; s=arc-20160816; b=wZNLZHDLad0gWppQ3hpcaC7cZWf3EUhPFmqA1ndJxt4wTKnZU4BC4Kx3YsvjiuRYGN JYAJmA2kR18R+T9B7W7JdAFtS8eOloDgmn5kmyQUyb1sxz3j5KlDAFsndsWLS4qX+M+B zLJun5BDWzNr/KiPfusmALwRRrTnXEKNgzF6C5IT5vCVoESJybReBHkWsGeGeii4Aefi 2Hg/d3yUxodF4XXjjKC9YMncBuN6FBE/ElPeTVQZ2uaeWi15UibTC9nQqRKXbxNnAG94 Q8cjgS1aQczgA3yRUpRIsXxNRaUcCXldebDR+AJBZQIoz8W3pQOQSsJRm9rX8S0w0xlA c6mA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xBYM6f70ZR2pcj3sl/OZMO6mlexMav1G0aYjspFRsUI=; fh=Q5Kjl4zvl0aA0flKDvMWB9DKeLCMNv9dG0xzrStGFZA=; b=kVO8WEgmsrv0NiLJ5MSXUw8hzDKyc9CI8grTT61mC9AAkWFj7hPvrXjD6CSmi5Zh3z hckG/8K9BaamfpTk63ZTmiQOz2JpvhqPt1hTX81vCTOGU4Cp6GAm53VWWDKoTaHxfcC6 0sRxPENk4TozcY0Pykh3QXivKgfKoOhpvyJqjmQWxVukGgjnd28Qmh8QpbsD70/Rgkq0 a1IFkJqB+grupbMJMpswgD6diX/EIlFy5le2iMAU5dHcc+/WvgU/jtnYAx1GVLVnwcc8 S5wloksIECmFb4xchoz5oKcewDZGgoj0m5u7YQat+iEUOg1tYEZHRt8eF8OoaPZMCGFM vLvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z2wah1ZL; 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-120759-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id si25-20020a170906ced900b00a4714e036fesi4357547ejb.956.2024.03.27.04.36.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 04:36:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120759-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z2wah1ZL; 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-120759-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120759-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 85DB41F2C040 for ; Wed, 27 Mar 2024 11:36:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7750C83A0C; Wed, 27 Mar 2024 11:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Z2wah1ZL" 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 39ACA1EF13; Wed, 27 Mar 2024 11:36: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=1711539362; cv=none; b=Vgfb6KhdKe9n4GalZwSCdhMZyStk5WfmYLbfte5TqIAtFFtg8oRFQBR9GO2+ufqVGbjTEPL1OCFGHk191Lz93TaSMIi1yspXAj0gHlZFo/MmLisKe27e6VIxux6aOouxwA5dLJen4dis3aFSN1SBVhtq7W5YRnr9Vrj8JwIpC04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711539362; c=relaxed/simple; bh=ounXj3DhlrTptsGP5PqADS/b/FXdUIsxRjKDXHyl+/o=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=F20FtbFSU4aEfJBLshzC9vRRywCi+X4TA2Kov1UbevsqRCiXPdKZLl41MGa/PdXoYRVk/DauhhG9OFEWz0SujkEsLm5ZQpSZGOhNAsRdHOUnCmLKTw9fe5xUMvChpH1HXe2y5QvqZaRP9XgFKjwoPtF4rmDpQDUYtNhwyliX/Ok= 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=Z2wah1ZL; 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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42RAZBVg023622; Wed, 27 Mar 2024 11:35:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=xBYM6f70ZR2pcj3sl/OZMO6mlexMav1G0aYjspFRsUI=; b=Z2 wah1ZLardwVK8j6pZFVzFjlZ6Q+4suun75QYkbW/cndriRiTKgAaCAd6AnhKvaiL UWfbBfVbOKb6PyUnfIZ/gjPf3GmUG3CwxMd5wtM8XWie+jcllSMVPAGn17PIVxbQ l4idVPBXW0a9NRuyBtBYAHrR9xKqOlqzID+epIqzb/OoYctVtx8rjAfM4TxqY48D mXtM/qWA/CyVgnMIelnF/uHimhNcp0/UtOa72DRt9e2pvxyi2y9P0OAvyCcMERhn 4vh9RTR7eJS4tr4Z1mpu87U3IE13dNdN93t4kb45VpcYQ0Wzmakpc9buTBWPCJJM qM8k5vLGwZ5Eb12mO4SA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x4hu2r4he-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 11:35:55 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42RBZsQC012332 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 11:35:54 GMT Received: from [10.50.35.38] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 27 Mar 2024 04:35:46 -0700 Message-ID: Date: Wed, 27 Mar 2024 17:05:43 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/4] dt-bindings: interconnect: add clock property to enable QOS on SC7280 To: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , "Georgi Djakov" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley CC: Kees Cook , , "Gustavo A . R . Silva" , , , , , , , References: <20240325181628.9407-1-quic_okukatla@quicinc.com> <20240325181628.9407-4-quic_okukatla@quicinc.com> Content-Language: en-US From: Odelu Kukatla In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: yr9u7FbR8chIvxO5mMICAlHjtDjNN2Sz X-Proofpoint-GUID: yr9u7FbR8chIvxO5mMICAlHjtDjNN2Sz 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-27_08,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 adultscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 bulkscore=0 malwarescore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270079 On 3/26/2024 1:00 PM, Krzysztof Kozlowski wrote: > On 25/03/2024 19:16, Odelu Kukatla wrote: >> Added clock property to enable clocks required for accessing >> qos registers. >> >> Signed-off-by: Odelu Kukatla >> --- >> .../bindings/interconnect/qcom,sc7280-rpmh.yaml | 14 ++++++++++++++ >> 1 file changed, 14 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml >> index b135597d9489..950ecdd5252e 100644 >> --- a/Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml >> @@ -35,6 +35,10 @@ properties: >> reg: >> maxItems: 1 >> >> + clocks: >> + minItems: 1 >> + maxItems: 2 > > Why is this flexible? Nothing in commit msg explains that. I gave the > same talk twice, gave there examples, yet it is not enough... > Clocks property is optional, and can be either 1 or 2 or none. I think "minItems: 1" should be removed. If no clock property is mentioned in node that means no clock is required to be enabled for QoS configuration. I will add back specific number of clocks based on interconnect compatible similar to what i did in v3. > https://elixir.bootlin.com/linux/v6.8/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml#L132 > >> + >> required: >> - compatible >> >> @@ -57,6 +61,7 @@ unevaluatedProperties: false >> >> examples: >> - | >> + #include >> interconnect { >> compatible = "qcom,sc7280-clk-virt"; >> #interconnect-cells = <2>; >> @@ -69,3 +74,12 @@ examples: >> #interconnect-cells = <2>; >> qcom,bcm-voters = <&apps_bcm_voter>; > > If all devices have clocks, then you could add them here. It seems not > all of them have clocks... > > Best regards, > Krzysztof > Thanks, Odelu