From mboxrd@z Thu Jan 1 00:00:00 1970 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 4238E19ABD8 for ; Fri, 17 Oct 2025 00:15:53 +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=1760660154; cv=none; b=GLnnkgGKMfaD+bcZXmirZojm4633w44IVLPl0bP7hdRyNvTH96YwRac45+FQDNAEWiBZYoULgfX8uIP3HZXE4LyABF0fHlgjXP1hdBikBMn/WBOM+aE+KiIiK4RRqH76uWlaL9twh1clPhC2rewUmflVuz8BUwmnZt2YXRFVDWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760660154; c=relaxed/simple; bh=dO4zPO78xPFJZCKd6Pi8qyXAaa2Q2Zu6U74fmgX7mkw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=chZelKLPO4S0JoO60VZ08ly2BM+fH63YpBaySooBNCEILTTBvx9EcMW8wZDU/IXsfzFm/hTz8UCIM1ENI84UMDgYS1UWVMLeHTFT/i2HqOd8SV2n02xamBwfwnkGXsJvqpsQjWmo67+NGZR8B1kSW+gHbJcbdd9lsivCUarF1K4= 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=NFJNagzG; 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="NFJNagzG" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 59GKLQLH025265 for ; Fri, 17 Oct 2025 00:15:52 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= dJ64cn4Jw2zoNd68Hcx2TgTpp/C+dSWYlA18Bl1jUjA=; b=NFJNagzG1l9y5lzX OPI+OcCYKz+fOxIKaZKO+hU6Q4zfOgf8tsGHHvoIGibPaXfurH2nW7rpONXpOXoF NpGolOJ4IqlY0dsXhRNUdbWg8KXjeGpTwqvGInfvZQuXtEXCYAxw9fh1WTxd3F6U Nwb/F6xtNeKEKTWCLhQflwSgBg2MYEap3dAuRBipNqnTbBOdx2pgzM3Z/PwmNDh1 0YwXYfm1WtWfGJ7dx8xBVmOB4vqnfsXD2EP/hphrBijCN0R9gDPethI5ED7v2im7 By0Gps3oZcIT3W/dLFhEZ5JBY+ALy95ivBl6ZM+RxxxGgyD62EL5PyYkC7uMzir1 Pa5cqw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 49qfdkj7t0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 17 Oct 2025 00:15:52 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-32eb18b5500so2147566a91.2 for ; Thu, 16 Oct 2025 17:15:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760660151; x=1761264951; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dJ64cn4Jw2zoNd68Hcx2TgTpp/C+dSWYlA18Bl1jUjA=; b=Hhade/5HX3cZ9jza55WFCvkQiSlcKEX/PLBUy9BVq0+J2090+nJ0tgR2HTvxd5jR9P ORKetgxmo42h0G3s3FhBt4TZ1xpC8AEGAhXSWB1Sgmvrhpd1TPd3YL5FJ5VY8GJeTYJ/ bpwf5yyy/CKe9dyplrKmqE+sCFPEDVC7a7AkAMQx0i6DsTPQGEgXOs7NY2kKAYE5gSDJ SBGm8ajVZIDlLL41qbququjA7F59v14hkVSUTQY1ltvIY99SY6r+MIjH//LFIARmz79M C4o4XbpiOS87kWKKBajOyulmvWpaVOA5eYJW4El7BASxRVZxk4J4mMmBtytBJrl0XPcg SN0w== X-Gm-Message-State: AOJu0Yw41YxJ3zV7bddAA9sX/B11IJzaGVrE3MGg7SNaXQWKm9tFVq0X Czc6B4ncYMwX4CBew5eUJ+Y/F/gK8ZgIdMi+nT3j/G8nSl4iJkJkRawLdXcC/X0b3z0XEE6Wx/V yDVM5Ah6ntDGYm9wPO4lJ/q3pkA2QevEoTADGrS+C+3jT3nk25tt5VUPMv7rhyewV2mDq X-Gm-Gg: ASbGncsoiz6H/5UrAyFHDRFEaqFEHF+7nu2Ie1JqR+mfvvSV7bqEmBvO91Ti3tW4BRH 6Ut8e/BN5NstjZN758dvqaRwXEJkoQ2xYXIn0678Yq/5yxHB/MYykvA6oH18FvDLICf8TqqupVJ K18BA6l8NTss536tWz/59qY6sB7Hsi/czCCIyy4ba9KRI/CRX9NplP+oaiJqEbFdtZui3qTIF37 g2Tx05XTX7jDaNpRhK7vjo1oeYoigTozz4YUhTg7ajhfEe8NkvstIhiyfQ6ZFnz2UALzZpdwo1P PP0Lf+M5dZr/a4z9QPZOvHJJTrtDw/3bRqFm41u+O5XiMK/F2+iNVsz/gAsGYV9U82sj7ryDQW+ MJxRyD9D1iHauSnhH9L9sqjLr1e/WOZDiSY4ANuWr X-Received: by 2002:a17:90b:3848:b0:32e:e18a:368c with SMTP id 98e67ed59e1d1-33bcf84e18emr2015502a91.7.1760660150934; Thu, 16 Oct 2025 17:15:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFchSn8iE1CbOL7qzU83o7j4yN2YGWnh+JCQIrTf0Qed/q51JsPPPVJjhMi3h/XLUNj365KXA== X-Received: by 2002:a17:90b:3848:b0:32e:e18a:368c with SMTP id 98e67ed59e1d1-33bcf84e18emr2015486a91.7.1760660150520; Thu, 16 Oct 2025 17:15:50 -0700 (PDT) Received: from [10.73.53.19] (pat_11.qualcomm.com. [192.35.156.11]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33bb6522fc6sm3313879a91.2.2025.10.16.17.15.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Oct 2025 17:15:49 -0700 (PDT) Message-ID: Date: Thu, 16 Oct 2025 17:15:48 -0700 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v5 02/10] dt-bindings: phy: qcom,qmp-usb: Add Glymur USB UNI PHY compatible To: Krzysztof Kozlowski , krzk+dt@kernel.org, conor+dt@kernel.org, konrad.dybcio@oss.qualcomm.com, dmitry.baryshkov@oss.qualcomm.com, kishon@kernel.org, vkoul@kernel.org, gregkh@linuxfoundation.org, robh@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251006222002.2182777-1-wesley.cheng@oss.qualcomm.com> <20251006222002.2182777-3-wesley.cheng@oss.qualcomm.com> <00408896-2e25-2dd1-6e6e-2195317ee7fb@oss.qualcomm.com> <14bc2a85-0f1d-3834-9b9c-32654348603a@oss.qualcomm.com> <387c707e-613d-433b-a76d-16ef10dabc59@kernel.org> <2a70f878-269c-1b40-2e8c-77b5851de9a1@oss.qualcomm.com> <99ab26d3-eb44-401d-8a7c-1d9efd2a1a10@kernel.org> Content-Language: en-US From: Wesley Cheng In-Reply-To: <99ab26d3-eb44-401d-8a7c-1d9efd2a1a10@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: 8yjlIEz2Yn_qNB1-C5eA5k8Z2HUyZA2g X-Authority-Analysis: v=2.4 cv=MrNfKmae c=1 sm=1 tr=0 ts=68f18ab8 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ZdW6uxA9NKXbfdqeeS2OGA==:17 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=VkNPw1HP01LnGYTKEx00:22 a=pJ4duzi49VOVWyagjcoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: 8yjlIEz2Yn_qNB1-C5eA5k8Z2HUyZA2g X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDExMDAxOCBTYWx0ZWRfX3cswrYmTJTvd 5k6+XSLlzdyDs4F9EuVsk8djqLoTpmq7gQ4okqReSLlpaZ719X2v8KXKW5s5gQGxfN3dr5R54cF uFQ0R3yNFZmPdJgR+fGWYqTzaeRrrEwFXUIofOGAGqKb+S+LQbsx3ZL0hzYrFuiwkLBTlcTeYCC V6zhYAwXJxWQXDFPjtulesjnckfyQN6MCM1ctPanGyuO4ztAzpYsfLtIvKpcekoUxJ00Smz9dAs McKuuRvD4745i4yUv1hbB13ALjzvldM2O9Tg9z9C151q/HIQu/eEHU1CLp7VcLnkkl25PXB5Oq2 NTWyiXuNrdJ4RZNEJ14+rKX0nC0CQX7hV+h0snTDT6rdh/tNUwe4UgYmpKZGRV5sd0PQyn4DTs7 YiiahAr9n3w8E9cSu7fxTMVZhzEhhA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-16_04,2025-10-13_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 clxscore=1015 adultscore=0 phishscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2510020000 definitions=main-2510110018 On 10/13/2025 9:36 PM, Krzysztof Kozlowski wrote: > On 14/10/2025 03:16, Wesley Cheng wrote: >>>> >>>>>>> +          maxItems: 5 >>>>>>> +        clock-names: >>>>>>> +          items: >>>>>>> +            - const: aux >>>>>>> +            - const: clkref >>>>>>> +            - const: ref >>>>>> >>>>>> What is the difference between these two? Which block INPUTs >>>>>> (important!) they represent? >>>>>> >>>>> >>>>> clkref is the TCSR reference clock switch, and the ref is the actual CXO >>>>> handle. >>> >>> >>> Then this should be named somehow differently. CXO is clock. Reference >>> clock is clock... To me it feels like you are describing the same clock, >>> just missing some gate in TCSR. But in case these are not the same >>> clocks, you need to name it accurately. >>> >> >> Technically its all handling the same clock branch (CXO), we have the >> TCSR clkref register that allows us to gate the CXO to the USB PHY, as > > > Ah, exactly. Then clkref is not a clock. You need rather proper clock > hierarchy. > >> CXO is shared across several HW blocks, so it allows us to properly >> powerdown the PHY even though other clients are voting for CXO on. Then >> we obviously have to remove our vote to the overall CXO, so that it can >> potentially be shutdown. >> >> Maybe we can rename it to "clkref" for the CXO handle and >> "clkref_switch" for the TCSRCC handle? > > Naming is better, but it is still not correct. This is not independent > clock signal. It is the same clock. > Hmmm... I guess that's why I kept the same clkref tag, to denote that its the same clock, but one is a switch/gate for it. Would you happen to have any suggestions you might have that makes it clearer for everyone to understand? Thanks Wesley Cheng