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 D8DCA3C4164 for ; Fri, 22 May 2026 09:24:25 +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=1779441867; cv=none; b=q2/yWMc5glVYe4PKHnr9Ga5n6Z29AuuPlX++N8d2PLioXf6thQYRWR1flgn023TJxAHVm4L3NfwkphSwvbXIu28PZkxGWtEZXRQPmIF0VRCA8mnkwFwiyatxqGp/QkGxolE12Ks03hLHsantvOolzvvUiU2yVnpN3kzwrNUxxRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779441867; c=relaxed/simple; bh=+IBidySudLXvX0hBrNR/qamTJH6kfsbZPwdiFk+FWSM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=su2NCvyoegPaVvcbsvSbVfv/8+pu2qaUPHazZhqShZF/LM9UCvCDZwzX2XoL/jRUzpuG6lsxeidP6Wi/aPLscdXPpAd5HGe/lJfLLIX2WEqrsIO9otk++dlGHtViwukmlCmexxn0l3PrSkKRKqDCzUlm6MFbh5ZJY6Q+lmNgs+w= 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=mqWlC/Vd; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=QrqWHb+P; 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="mqWlC/Vd"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="QrqWHb+P" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64M8agji399180 for ; Fri, 22 May 2026 09:24:25 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= +IBidySudLXvX0hBrNR/qamTJH6kfsbZPwdiFk+FWSM=; b=mqWlC/VdunaOrdlo yltyKLZEPW7gGXbYdkJoRFHNtW33urNBdJjOLZSfbyPEaTSNer/Y8UxnVKfkvYty q0aSmnK1ICe8nVcAXpRpTKj4CfMmqV6+TwYjmNhcYmuAAllqP9lskxqMxCoKbMH9 BS0ShXHsRzrrdR0hSwEtu3hfxLkKFxXlmdxYEV1OeJE++EMNCGegj5EEW/O/Fsfo lM4DhUb5R66cTGN+RXQc/9kixwBHkc4QeH+SAsGXBT+8fOBbEzN+uGDXFPc4j3fP hYsz2owceZxIzUGzvWL2gonuH1mW8XdroE5S1DYq2nf12RWZsK/oaoDdAOYou5C9 +hUxCA== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ea5p9umj8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 22 May 2026 09:24:25 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-91345d517bdso157450985a.3 for ; Fri, 22 May 2026 02:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1779441864; x=1780046664; 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=+IBidySudLXvX0hBrNR/qamTJH6kfsbZPwdiFk+FWSM=; b=QrqWHb+PTT0ISrwslDH1/lAr0iwyuOAw0Ze6b25NlZ0VOUWSWa40A41C86WtEaabHi jgbNSzCkf1vn0bR/GaiZWdXX4F55r4zT9nnZdCTxQPv0FblGWahwepep4VsV1DYvKT0K V96v398AW3/yXYACh/Nytok+ZpLEVSD0pGvvgX+Iy/0kcBmgB9codRpNPbkLyfC9W7uJ vkyYQPSpNfMNbyRtQy1MRcWte2pgHnhHw02DJ/R2wGWKT7Ud3Gfb4swG+rOz487+VyrH QEgdS2SDrli6IvqN0woxBZIGa0t6VaHy5pVx2ToMlQ8F7mB912xX1BYY2D6e2f4Dqq+m Hgdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779441864; x=1780046664; 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=+IBidySudLXvX0hBrNR/qamTJH6kfsbZPwdiFk+FWSM=; b=MiE8vQH/ii+m/MNGxzTODW1ed4n2iNCu0IToTBQx8eX1tRzEOKdHCtfRD5yfoCTZq6 i9Zp2CxFUWr073p4gZsxgLEJJzZiolsqwBGSGR3o/p7+j68E6RI2dI/d687xMwGrXk5Z k8KEeRFRHr9r/lzTmDR+Dnfw/nHZddKmwRwJa6dVeoPCtxBjmj3wwxP3zWwjU9ttAF1c KdVGtqBPf4rGKosXOaYZ3JDNe8IjfFCzCwHRLzfLp9AHXnwxmtBx/1UwmWlc2VB+ZWsG ZNU5Cxl1nwzaNLWNQajj5lPGy3q3hoH+F0aEuKmoql+14WjYJCLYKna19OXCvbGocxMB Z/eA== X-Forwarded-Encrypted: i=1; AFNElJ9Hr1Rjhkfe7BBLLSxY2MyLpazepUSiKyifdJs1GP/7R1jIsMtwX6P+FUEMJGIx6900O2Hmi/yM/Q==@vger.kernel.org X-Gm-Message-State: AOJu0Yzxou6DCkrEiM/6jrcRVaHI/UUwACgNoCAiyAqTPpU/ZvGT0FLJ Hs1VSbhVBKv+sqF5WlulCfy1yw6s0xNH/AsfRz+hYQr0hFsB8MphzzijoAKL6boBx/zOA8BfsS7 mgJBqNwZ5o1fsljbP6ZHPZ+PSb203MIfctimGtxJ3VrzICxwb43CZo12hTBCDtQ== X-Gm-Gg: Acq92OExQMQmMZOjZa1V1jJLF/MlH03/ONeIbfWgjfj/sjY1JM6mSYgRUE19B299wPM f1gaHL+EYsqwm766tWseQm5qkj0P6rzlY3sta+uIxviFRO0ojfsW3j74QkL50HxlM+DqlpkAROt ZqsP2Ak2teZUxI8kjW13/ftNVLVDJbd1IIi/PuhArg7LhU+iOwPfrtgcxppczsi4D8lmEAaNkSL BqLzlQB4c/4yKtl+HMnEtBfDtskCQHNJq7VEDB5DNY77Nvzjupj2xxlnFcquhMY4H7Q8DVn95PS 9Y/xixR4lRT1hPrikbSJ0kx4WZsGGkCr+rHtwsC69GI6bl4EVfFb76vc7tXOGKrRc2hqbeTC1TD 5Em8VpCOAUJNEJn8+wLsetIWx96fLdZof3zxGD3QgqpyNfQ== X-Received: by 2002:a05:620a:4109:b0:8ee:f43a:bb63 with SMTP id af79cd13be357-914b460262dmr299247385a.0.1779441864070; Fri, 22 May 2026 02:24:24 -0700 (PDT) X-Received: by 2002:a05:620a:4109:b0:8ee:f43a:bb63 with SMTP id af79cd13be357-914b460262dmr299244885a.0.1779441863651; Fri, 22 May 2026 02:24:23 -0700 (PDT) Received: from [192.168.119.254] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bddc62d6369sm34163566b.45.2026.05.22.02.24.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2026 02:24:22 -0700 (PDT) Message-ID: <82019c2e-6b6e-4edd-91b3-a28ef6eb09eb@oss.qualcomm.com> Date: Fri, 22 May 2026 11:24:19 +0200 Precedence: bulk X-Mailing-List: linux-pm@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> <6c595a5f-b979-4e8b-ae77-d28d24700588@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=DKm/JSNb c=1 sm=1 tr=0 ts=6a1020c9 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=diiQsov5Z0b7G057BPwA:9 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: wT3MJbJpLGxNb4XMTUwvUsvzByJW6YuF X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTIyMDA5MyBTYWx0ZWRfX1w/zks1jeBlF V6lmKX5R7axPU9zWJ1z3IoK/tHVQSn/3Df3eGKRR5n9xckC9dGf3G9U19tpFQzSv7Kfvx6JR0xD tYUM5BJK1zUjp0toEeyhR1qP4H3hI8d1WB50t3rcbGO8jOrrWGR6Pg7b7YwMsvzzGebkJAPuWx8 mr6BEn8kQE+wO/O/uCzsT6o4mAEXO4WH8YKKbKRNGCfIsAxjDedRBJ4R2PDdGPM9oX+SRGI5836 U+8ZarOzYkNEdmgFu9IEYwcRQg98ujuTWCdTugcSbMbxDcp+0yuOq5KjwfvFgZnH516gtKQSfoJ dHnv7yQqHxjU+BpceOdA0krXkpMQyNi3GaKr5vZvaJHv2c2FKLX6+iqJkq6LKxSI4Gv8AGnDGcD KsCL7GwODwii6VkmIZtLpflDwC4mpYwTHmHtrV9BDDVTogIf1Xwp4RU+Jn9lNwGelx5lcpPAbpt jgCOcB4bMPCJURe5pFQ== X-Proofpoint-ORIG-GUID: wT3MJbJpLGxNb4XMTUwvUsvzByJW6YuF 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-22_02,2026-05-18_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605220093 On 5/21/26 11:58 AM, Krzysztof Kozlowski wrote: > On 21/05/2026 10:46, Konrad Dybcio wrote: >> On 5/21/26 9:20 AM, Krzysztof Kozlowski wrote: >>>> 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 > But why? If for such device property "no battery" is suitable, then for > me "monitored-battery" is suitable as well. IOW, if you say that having > a property describing batter is not a accurate hardware property here, > then neither saying "no battery" is, because no batter is basically some > sort of battery (just like empty set is still a set, empty array is > still an array). The battmgr service running on one of the remoteprocs already has all the information about the battery and it also handles all the type-c, PD and charger configuration, only letting the OS know about the results. Hence, unless there's some other hardware at play (e.g. for custom 200 W charging), which wasn't fully implemented in the QC firmware, there is no reason to describe a battery separately, since the OS can't do anything useful with that information In some abstract way, perhaps monitored_battery = <&pmic_glink> could be thought of as valid (since that's the data source the OS gets to see) Konrad