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 3101B227E8B for ; Sat, 26 Apr 2025 10:48:42 +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=1745664524; cv=none; b=Mt0BfbE/FItL9D4IhlrEypS0gP48riRxL0KHLYiNJzE6yIy3Vjasx81gabYRuXPgwMuSMw049E/D2UrRc+XAtFxKA8SqZiVhMiCzTPctShwykhm9A9ktQ61Av8m32RZzLJskXCrqGziAjWa5WuhRZCnTte+BATshKERtlb4mxfU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745664524; c=relaxed/simple; bh=4sRaghWWcD60w7uXTlO9CQBIPxZMoc5Qe6bm0cuHaKk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ap28rsPSR2Km+gjFDzoxYvtUUBovTOBv51kxvkdYPXSS9vD8eOHPeKtqkuTrHefhem55Kh/6yJycTyh1QZTkJRwdIRABUaeqTCqDvMSdkz9AdpoCT9HPCKdYbt0XMRfPLicvqZAKOwBI1brWT6f8dtNaWwp9xD9tKZHD8nZzP4g= 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=G1XVeFCq; 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="G1XVeFCq" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53Q0iCwo024812 for ; Sat, 26 Apr 2025 10:48:42 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= DJpZvWXgtHuZU26lIpKxv2J9vl2iSDRp1jpslHEmWKI=; b=G1XVeFCqeV64K18k D+nNmwVTTSzGjSYxggyku5VPu1UdxPOxm85OuA7HWLzt4AUAXEatMgGS767fDH4R W/6oyMft4wNca25RNUIm1/xD0s00h7OmjiUbruR6cbA3qcbtx/l9I8qIvLGAXoEw 1V8rYvjFA6Or3PbhOucfyRqD38miP7BFEhBS/0ZySZ7SM8u4PHdGmFJKUf+wOvtr gOUEWy/QDhqDT+kdzOuspZwDMVNcQj8CKt5Ajsa3oq1Glogk6Onzz3KBZu5D/uEI +HJkRuDIh6izodPEcC2iDS+EvKVUhXcttEr+2FgbDyPUexOBwgzcCw9JN893uPs1 KJtvmg== Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 468n6j958s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 26 Apr 2025 10:48:42 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6ece59c3108so7660326d6.2 for ; Sat, 26 Apr 2025 03:48:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745664521; x=1746269321; 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=DJpZvWXgtHuZU26lIpKxv2J9vl2iSDRp1jpslHEmWKI=; b=vC5eVB1Hb/YjbIDvA701PaC8Rqe4BGMC7fFxpus+6K2TANdfdiLkqkS6CFOM3OgYl0 VHyYVvZmwT/qriv5df4LmlnkoyX6jFV88PbQxMvTUvzfxgQf7vGkVqsfL2cprl6ML3aQ C7A+fawT450dOq17/gQB0ENJaZN4YMQQB+fkgf0COwAzBCurXwpYLQyLdbM6QODEUrxG ULbZsm546cYFiLtcubqcRBIxSoC5G05Yl7bXM/oTUsml1APDHqmP9BUnh5aJqhNbiUeZ PUVuywPDgXUhMAOT4wjymYxzd4RksRlueiQU34iEKXSH3rPQDn9VnWyvyL1YIfjaVzVp dMWg== X-Forwarded-Encrypted: i=1; AJvYcCVqwufnYqqlMzCm8/LegiqYkSYB2o/5gSHTyDsMbTjiPNCWiOQJlz4T4dkdRRy8KAN+8SSE0PchRB7sdff2@vger.kernel.org X-Gm-Message-State: AOJu0YxiOplviQlWaSPPqKE4jukSxOiDDL4C+S3dxTFZ1olQrvpd7GLH cQcTjKga79nfwH2IWyBVssZAVITQbl+i/RJTfNBxIoTSTiWQHWzSk8wEItKPO7j2jg9flRWxrdL GMwEOrm27OHqUXbfkG0MjlaQn9quITX8hBhbowoLyzhc0M86izKYJXiGuUZM414gO X-Gm-Gg: ASbGncuQTt7I2aYlYKgVeizwNr9Hefg5EcFpcO2zA03CoK7uGImlvk4B/tc/DPIcY9p PgIOOC8i2qkO3s8/Ux0gM6+BGN7mQoCyfQDbyi0lN9tOiuo3d/iEvdqbBJxdDBpYDb2in7lyT8r i5gXqhDM8BDQ7Qfu4WxQLf+atMhOHNKZs+XzH+i0hy4ADgLmHWcgppXsdLAbuWHoDSMQytR50U8 7d428198VhH+e10HGeTrmsE143BG9pixj4JdcykmXBtlBahsuAmX9LyG3XiyeH7Z4yN9qC6FvdH 8j0Tm6OA02jm/PxY22aLGo5RQ/4woVT9E6I49AFgtZC2Qn+cecqkus5PRKdiYEOEG6s= X-Received: by 2002:ad4:5ca8:0:b0:6e8:fcd2:360e with SMTP id 6a1803df08f44-6f4cba61ff7mr32939206d6.8.1745664520780; Sat, 26 Apr 2025 03:48:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF66thbVT17q0t+hsUlfIDPNUs130uihaEVBIxsM6mBjrr8hzmW8LMlanJd82uYVVyB8uTOEg== X-Received: by 2002:ad4:5ca8:0:b0:6e8:fcd2:360e with SMTP id 6a1803df08f44-6f4cba61ff7mr32939076d6.8.1745664520440; Sat, 26 Apr 2025 03:48:40 -0700 (PDT) Received: from [192.168.65.154] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5f7014006desm2478040a12.31.2025.04.26.03.48.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Apr 2025 03:48:39 -0700 (PDT) Message-ID: <17a1a4d9-fdc5-477a-bf4e-91cae5a62479@oss.qualcomm.com> Date: Sat, 26 Apr 2025 12:48:38 +0200 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/4] arm64: dts: qcom: x1e80100-qcp: Add qref supply for PCIe PHYs To: Johan Hovold , Konrad Dybcio Cc: Wenbin Yao , catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, krishna.chundru@oss.qualcomm.com, quic_vbadigan@quicinc.com, quic_mrana@quicinc.com, quic_cang@quicinc.com, quic_qianyu@quicinc.com References: <20250425092955.4099677-1-quic_wenbyao@quicinc.com> <20250425092955.4099677-5-quic_wenbyao@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNDI2MDA3MiBTYWx0ZWRfXz20WpmJ4K/Bk GyniDpSw8ClkxVvImDZCr4m1jhC6Mxkb0JY3LhweguplZPed0eCL+oS+fxvVzoauZHEFuRdahGr /Z3sE9qTky6IFBEBF1zc9mGhfpGVSuINSlzl6M0vjakORk/KaEnWLO2bPuG20y95qqZc45m/FUO HRn44v0SXdbT9vdAvTBDgTI/Qcg8xIg1s9nZGSEAt7amtbpJYiJQ5z/Q0lyLRmx3A0Wn40ZcXpB X6RDpVsYB1zFf47xxMZ1l0z8SI4WG4w53A4hXimuvSERQPBUbEcBVhgFqs6wA+Hv1VPj+r4LtKd 1eV5ePAgmSmU4rij8TElmrpq/UmjAzOJXu1NQNejV5VAk7hk03sMbyUUd+T7apol/8Eyy7ZU0gZ BGcXTmGBepuSipKBGu1I5C/CBAv+Z0DPrRWzDWsH4T3jFaQKS4HlYx9GL9SVcfmvwZYPkTtN X-Proofpoint-GUID: vcvAKO2i3qB-g3eGa6iWcr40sbtg8oAs X-Proofpoint-ORIG-GUID: vcvAKO2i3qB-g3eGa6iWcr40sbtg8oAs X-Authority-Analysis: v=2.4 cv=C8fpyRP+ c=1 sm=1 tr=0 ts=680cba0a cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=8SvZGl_aAWB78hht054A:9 a=QEXdDO2ut3YA:10 a=OIgjcC2v60KrkQgK7BGD:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-04-26_02,2025-04-24_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 mlxscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2504260072 On 4/25/25 2:02 PM, Johan Hovold wrote: > On Fri, Apr 25, 2025 at 12:03:06PM +0200, Konrad Dybcio wrote: >> On 4/25/25 11:51 AM, Johan Hovold wrote: >>> On Fri, Apr 25, 2025 at 05:29:55PM +0800, Wenbin Yao wrote: >>>> From: Qiang Yu >>>> >>>> All PCIe PHYs on X1E80100 require vdda-qref power supplies, but this is >>>> missing in the current PHY device tree node. The PCIe port can still >>>> function because the regulator L3J, which vdda-qref consumes, is voted by >>>> other components. >>>> >>>> Since the device tree should accurately describe the hardware, add the >>>> vdda-qref power supply explicitly in all PCIe PHY device nodes. >>> >>> AFAIU the PHYs do not use this qref supply directly so it does not >>> belong in the PHY node (but possibly in the tcsr node that provides the >>> refclk). >>> >>> Since commit 031b46b4729b ("phy: qcom: qmp-pcie: drop bogus x1e80100 >>> qref supplies") it also won't have any effect for pcie4 and pcie6. >> >> QREF is a separate hw block distributing the reference clocks across >> certain on-SoC peripherals >> >> If its power goes out, I don't think much of the platform would be >> functional anyway, so it's redundant here.. >> >> It doesn't have its own single register region and it's frankly >> one-shot-configured way before Linux starts up, so there should be >> no need of describing it at all. > > Then it sounds like the qref supplies should be marked as always-on. Can > they be disabled at all? The best answer I can say is "maybe". I would (without knowing any better) assume RPMh wouldn't let you turn them off. QREF predictably takes VDD_CX/MX and some additional lines Konrad