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 50D80365A12 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=1779353185; cv=none; b=IU+/Q0vwyIg2XyI0XeBVuNvxjcEAWaZAahbeTJR91TEWFWFSdrVMrMmesFYJ+q39+9sTn5VSQVJjxlLO/R2u1JkShVnhpSVKUi4MvrrkBvHY9QngyT6VLtUWBTiSgu+IBWh6XJSHoalHB0CXrzhS2bl4rz0XuNQ8MKDPv5UIn6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779353185; c=relaxed/simple; bh=qjlCjnHDgkFX4Bewdv0p/IUYKwUYhW4nEKsn3bhJzSs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JizDPt/YM6PgzHk08krtdOLkoxr0fSoOfkLBO7wsht6P9M1YNf1N+Phrkz4N0MC0cJxZF7Er56G9VjXs5N1FcOij9G3EBmOdzGheB64RS2w6jdarEnOiAt2InlxQLYPeHSGAgGIKY3raFYf+XOH9L68O2pKD0ZUOwdPv7o8D578= 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64L6FMBn2157616 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-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e9ma42a4u-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-f197.google.com with SMTP id af79cd13be357-914aa01cc21so6133185a.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=B4PtwBekP0OfZbGXhzQXS7b7ID29NjDBUZyvZpipIn7aNbP1clVEPxtoJwSXK4vKAq I6OplMvMIDh+qQFn0NGt+3/GbB8T1WXW2+c+Tas2W48qrFsdWHUzoEW29wViqdfvYxVV w1PC4xfEyy6ovhLkmQMHz3U8iFEBvnj46j32skRLp5JQIPm01RuEdntxymQLT1Y8bZud P4tNFfEcWzukBnivtXAzSRo65bzfIhvRoLcwqSl28dfJH3wCSgRWAj7gx4zjs2WWRVwW 4/Irle9J4cy7WQ7RgLIMr5AnbwGWPVXq/gUp8QQXqOGgdjyJ/FZRFf3u51rNuAyaC83O Owug== X-Forwarded-Encrypted: i=1; AFNElJ9dLAhXKOLWz2CtNs0StMcAs7m4yVzigWEo87b5rzHj4amqg1vTLeiJK26SpS5s3Nht/sCbtocgqaHT@vger.kernel.org X-Gm-Message-State: AOJu0Yxw9uAwG6kooCxLa+Iv1WDaX74kVO8PawkX9eMK2lWxXd0RpG1n GgcqH7cfqQ7mDDszsOyPnwsra8LgOa9E6nKZJfpxd9COoLbReQGmuJh5gKMVGg8mzlFC3RBjP0X IBsSz31ojSKkijICx5o031sstwqbNN5ca/KXvM1gC6Vf+t35Q0WzSi0L7/ynI/Qrd X-Gm-Gg: Acq92OE8rfzzqXEvsei26B0s+FDycWTAAn6QKvPCmeFJIfXuRf8DUihC2/GpL6stQ+K q6BHJklmk4Bn53wFRC7bUfUpZZnm9s1Gy1SeG4KmTX1UaoICtkJH/YoMS7tA/afolx5pWIWJo3R uuNwkUWolZ22fTm178aKObyq9BWV/2UepaOhkfC5j0pgGnBxl+fFCkdYU2cjYTwzmVYC4TVUXgH OI2dLkRdpc/0Jx/cS/AoewWS1d/SJLS69/OiHkSvxxmcdi+iLiJGrS64dVF01jYm3TrA2iDm4xc uBDn4tWrlYEglC5fwg2bAxI6FkqNV4B8UVU+Aku1rpSoC+F6Ns4ydIQan8OLkP/s7Qdr81WV/YL 1+OEaqvsviT+bX7YAFCdGqPpTTcylx0m0i9twIBGdLyrM6rkK2dRecw7xEouUPVjP1CGiR4AgGZ 8fvMk= X-Received: by 2002:a05:620a:46a9:b0:911:295d:59a1 with SMTP id af79cd13be357-914a2e4093cmr149157485a.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: devicetree@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-Authority-Analysis: v=2.4 cv=K9kS2SWI c=1 sm=1 tr=0 ts=6a0ec65e cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=0kYgwNXdR7ZRvaqu29MA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-GUID: 3PbsZtcmugB2-jsyMtbo_fwTARLj9FrN X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTIxMDA4NSBTYWx0ZWRfX5ydNaQJlOnUL XtbPKwC2slsUkt5EBW8SVxpL8BMqDfEv8vpIJehZT1NMcpL8lUSmpjykiGxLJFR5s6IVVS8rsGe Baet20PApU2s1LoL1cwjrNVrKMQG5A3E7egyZAQOvAeen2Ccie9bUzMCsTQqDrXFkvYGAkxZqMa Nch2yv5c5TEOOwz68xmX6IAveLDl01g4+oApovSPUbndCUYTxTmdS+nuOeGq5M1eck7wa0QVPTO kUXUnX/3m4fZ3gVLKng4OvcP4f/n3l9N7SLj25O8GxnWjG/PDosKnhZVEgmdayZwk7hDIGAJSUz k7/HOqXlQTpAFvEda590rX5YJoRsF0NbqlB5Ju0ebfiSy2eN8GoiVBkfLS0TzgmqTQrUI6H4heX eY09BkZYL27BFQNUZC8rHelMd4LavZ896JhFS5kAKVrAfwQzCMLsJHEp5hs3yea2b6K3FTOlEyT aSnR0KsUEekMOHW53xw== X-Proofpoint-ORIG-GUID: 3PbsZtcmugB2-jsyMtbo_fwTARLj9FrN 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 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605210085 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