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 2DBFD175A8F for ; Thu, 21 May 2026 08:46:23 +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=1779353184; cv=none; b=kah6Y0Atlbb6wl5S8BQM7KouMRf0eyfyhardpbbWBqzhieidvgOC8PHDyQHeyZZoqmxfbCXGhgftruwDhdyGtbPeZnitar7b80ij3rdyUYgiEPLZwMSPTN2777TfZsi96eE++UWcHmNOn6tSOxbOZv/mHs4oYueomJOGUmaUaoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779353184; c=relaxed/simple; bh=qjlCjnHDgkFX4Bewdv0p/IUYKwUYhW4nEKsn3bhJzSs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GROqEzs0fQO+sBPR+5QpVxNUmeWmG4HgoJO7p0gpLc2mlyvI2qAPnbayzjRvm/sZFFEMwv1/vvJK5e3/JX9OSzXs2oHo05roi5d+xT782ExifzknMDzJ7A9aH9dFIy9Kptzia0RmlZMSQOqPotxE8TxdJFtFe2dWZW2GkntWCxs= 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=Qqqm80Cn; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ASWJpI9g; 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="Qqqm80Cn"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ASWJpI9g" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64L7PXR0119026 for ; Thu, 21 May 2026 08:46:22 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= v3zRO05Qu7fKgLjkp/xMatp8T5yK89ojyhoiV7Fp5xE=; b=Qqqm80CnAHvQhbgs LEaZvG0T48ihTA8AwycDLJc6JXDsrF+qUhF7Bf8vYQMrLm6cf0YJJfonheHB7i3N osvwicbWuGTpgFkpWwX86Fg1uN5TPHiY5omW82PsXBg6e+QXh9EMDbk1mbSp0Zkm kYTZhHjRgTMq7n7xGXYFbswnQtshOSGINFfk0dWzOj7V+4J5iHPhKU8lmVJJd2aw bCxFA/linaCkSMt7BDXlMwITchi7UKwuUB5UyNg7pG2y+skCnY/tkaWIQvpTY37g i1i6YiQZE4mcLtFn0L2Er2lUSPdFessSqD0AT7gpC8c53ZrS2icPEq84bwtWh0RF ITr0YA== Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e9ee8c2eu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 21 May 2026 08:46:22 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-914aa01cc21so6133085a.0 for ; Thu, 21 May 2026 01:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1779353181; x=1779957981; 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=v3zRO05Qu7fKgLjkp/xMatp8T5yK89ojyhoiV7Fp5xE=; b=ASWJpI9gLjtEXWiFW61SVJo2vaFUoKk8nXkEJBXRnZaTStBTw3pgvQiefxZMBRp6Rm vdG+rm08Z6//Ssx3MV3gYC0NpNujjfM20H8JIFsTLPGu0ZCDlir9iASjuKv6HuKqusCR spalZRCDSb8Org4n/UatpxCw4cLXAif4SWpfCqbUR+J9kHs1ReNgthTCu2d588m5Wco+ rV7PGW97qJuHUAKI0NnPDSZLMwhm41VDIgb4rwYdn3oLV9Pi9ZVBwpqGJcxgn4lXtePv hamAp0xz2zofr8qk2CJg3AmMcX1IE8bIEUsTZIyQBPUn2PWn3wPaI+aTqdi2IEWTEl/+ Gwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779353181; x=1779957981; 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=v3zRO05Qu7fKgLjkp/xMatp8T5yK89ojyhoiV7Fp5xE=; b=HbQ+3ETPIqMWo89cGTsNMUeI1WeeYIOuN4xyue8KJbTno+LVw6op6eeFvNkgh3GVhG HMQZx2VjGrQIbvsIwk5utRminC79SUVBiaWA8szVLA8INQh51e3XaW6xPDjqmcLm1r+X a/dZVPAuLg3P0JZx+YTXVNPTftrtDyz8mTCUjtqRDeDbWxlpUA/cpkQ6uFyoPfidPIUy d6H4uC47eTt6LLP3FzLdzkTL+foLk6TkVL5hJEXPFs/ViQGjmCwEdvZcz+ASRsUCIEDn M3pS0y9ugVt0W36rZ07Yd8gdSc0Vfg5ylyTW1tuFtmzZRvmW9cBe0oLlrwXwVio6J3cB G2jw== X-Forwarded-Encrypted: i=1; AFNElJ/2t7+TjvN39IkA9JJc66KEFCFYkEeWDeB4HimsUOkUMKj3TjSG0mNBSFKuzg6FktPnImjdfsVO7E/O05Q=@vger.kernel.org X-Gm-Message-State: AOJu0YwRdypL4D7cAlxMA1sAtr0A9uNAMyaPcOQbL6fr5lHndvKBzMNs Wxqwd0RHZpChplwxYVJXSs5vuuASs8A+ng9O556sk6/9Kou61/QezXvKpmuYmtDeWfJDBrxSEsT wYSvikdiTzjUqHA/6n0r/WsZMsZrztcvYig8owD6AzXb75CTZLwHlMd4nR5ZhnAsIL3s= X-Gm-Gg: Acq92OGWI+mdU/Cj/Ovrukc+1WS42o0d1eHz5bBfqIBUtY+z5TyoWmiYNVh1bFVoChk hXztXJmXkhzxJZyvCHYRv0nWqfp0vTjhIbdNM+Qry3xqWsULQDpSpDKozIAbIY+uHndAVBu0ONU xuqFPtdTXIlHc3KHEbdy/CX5aYpzkJeLLjtWMklDivIx9VJkcKAz3hjOQnX9wKpzx9/+ad8Df1h Jamcx9J9hr4xifpPMKIGKaOfEiR/v/uCBYTS3J+FNKUvCNPUUb0cd1ALNpHGKyg7fXwPu2H4ii+ obkQs8FoskIeWV95bd4eY9Zlq80sIPNAN0oIpQANzdktxGPMYPBAs8ptoU3IEdCtsXZxCJDgfgp r1VFnHWYPXj8dKI566rZxKFADn/fIfRTGioYPtby90aTny+JbnvGzvMOSy0bSGMXbeSRDwC8Xla l7yRc= X-Received: by 2002:a05:620a:46a9:b0:911:295d:59a1 with SMTP id af79cd13be357-914a2e4093cmr149157585a.8.1779353181497; Thu, 21 May 2026 01:46:21 -0700 (PDT) X-Received: by 2002:a05:620a:46a9:b0:911:295d:59a1 with SMTP id af79cd13be357-914a2e4093cmr149154985a.8.1779353180997; Thu, 21 May 2026 01:46:20 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bdc8a505905sm16770566b.37.2026.05.21.01.46.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2026 01:46:19 -0700 (PDT) Message-ID: <6c595a5f-b979-4e8b-ae77-d28d24700588@oss.qualcomm.com> Date: Thu, 21 May 2026 10:46:15 +0200 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 1/2] dt-bindings: soc: qcom: pmic-glink: Document batteryless property To: Krzysztof Kozlowski , Kamal Wadhwa , jishnu.prakash@oss.qualcomm.com Cc: Rakesh Kota , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <20260518-add_dc_in_support-v1-0-31fbaa329879@oss.qualcomm.com> <20260518-add_dc_in_support-v1-1-31fbaa329879@oss.qualcomm.com> <20260519082526.odmn5dqi2jftwnln@hu-kotarake-hyd.qualcomm.com> <20260519-first-wine-bulldog-a6a4c7@quoll> <20260521071341.q4efqssppvettaey@hu-kamalw-hyd.qualcomm.com> <86f76a81-832d-4ba5-81d5-38b46b7dc0a7@kernel.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <86f76a81-832d-4ba5-81d5-38b46b7dc0a7@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: aw_I3o5Igr03R_YBIoodEwWXtXLKZfOs X-Authority-Analysis: v=2.4 cv=e5k2j6p/ c=1 sm=1 tr=0 ts=6a0ec65e cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=0kYgwNXdR7ZRvaqu29MA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTIxMDA4NiBTYWx0ZWRfX8rdvVL4Gm/Of tD5MnqciidiCiPYkil6R4oDzTTUXHbS7Fr/acSRIzEAFwyYT7A7soG6AreC9ca+oflLBPcLGSV4 R6mJj5jqDICaS85OPwVzdyma3OoYwqd46PW7olG9O8Tbc0Iu2Y5Y9TCMUxT9vgmHBtWa5Zlec8b vnWbfeL3pJ9wngWxUGvlnqw73D25Jn/uiVeIkFiYomRK9dqPgpFkladmJUHyfm+5EbrQMJ1NdVU hPsBupQYY1roCPAGqi2tA+A/B9nkDljvH6y42gykOKchSafZC2qUg98XrKSlQLFpCsfX80k+Dof ZUHQXVvauzAL45aapw+NFefLyqyGYWr1MlO41XnAgqnnDhkOeH8LcS6yepJv/uMJnVd/VyYX8id LkaErGQ05HhCTFLV92Z/ZCdfLKM3lQywtlfjaTnaXLbrHA8VHeHrGOWBpB8jS6Poi4sWMUz/sK6 QJXL5pq/+kMrm0w4xNw== X-Proofpoint-GUID: aw_I3o5Igr03R_YBIoodEwWXtXLKZfOs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-21_01,2026-05-18_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605210086 On 5/21/26 9:20 AM, Krzysztof Kozlowski wrote: > On 21/05/2026 09:13, Kamal Wadhwa wrote: >> On Tue, May 19, 2026 at 12:35:13PM +0200, Krzysztof Kozlowski wrote: >>> On Tue, May 19, 2026 at 01:55:26PM +0530, Rakesh Kota wrote: >>>> >>>>> And isn't lack of monitored battery property enough to indicate that? >>>> >>>> Regarding monitored-battery — its absence alone isn't sufficient. The >>>> BATT_ID line on debug boards is pulled to ~10kΩ, which is used during >>>> development phase where some battery properties are still present. The >>>> same ~10kΩ value is also used on some genuinely battery-less production >>>> platforms where no battery properties exist, making auto-detection >>>> unreliable. Hence the need for an explicit DT property to identify >>>> hardware platforms where no battery populated. >>> >>> I don't understand this logic. So you claim you have debug boards which >>> do not have battery, but define monitored-battery? Then these are wrong >>> and fix them first. >> >> Actually our firmware treats the debug board as a "fake battery" rather then >> a "no-battery" case. >> >> This is done to avoid triggering shutdown or trigger power/thermal related >> mitigations to kick in from the HLOS (android) that is configured mainly for >> battery-backed devices. >> >> Note that we can know if its a debug board, just by looking at the battery >> ID resistance or the battery profile name in the power supply properties >> for `qcom-battmgr-bat` in sysfs. >> >> However, the problem started with the boards that are battery-less and >> unfortunetely used the same debug board batt ID resistance value, so from >> the firmware side the batteryless board is also seen same as a board with >> debug-board connected. Bumping up my other reply, are there other markers that could interpreted, perhaps design_capacity = 0? Or are those values reported based on hardcoded data which is chosen through the batt_id values you mentioned? >> Since firmware does not have a way to dynamically tell if it on a >> debug-board powered device or a DCIN powered device, We are required to >> add this new DT property. > > Neither debug-board powered device nor battery-less will have > monitored-battery, thus again, why lack of that property cannot tell you > what you need? A device with a battery will not have a monitored-battery either Konrad