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 9569E481FAA for ; Mon, 18 May 2026 13:50:07 +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=1779112209; cv=none; b=K18RL28QStNrMmmS5UeXTQFY8m3WFbq8+1ehbm33eQTw1EP8P+yEXC67bdrzEv+RwWh7JnEdmbCDML2NVkHEycbcfoqPlP/IAIo/N0GsR00XtTnevnJMX+oKXLkwc30c8mS2s5pQQXeYUaIZpsiWekpaf9C67vZucpiic+4VRfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779112209; c=relaxed/simple; bh=fpyfAuxqXVVXVUx6y23m8FTqtbLsqhHyF/u3USHTtCs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hPblKSLFqWBuADVn+ny3xj5P+f7gcwnumRZIQF8fEIsJpwdb9ySlyI1QfuOt+jdf0uIusYFhv9wtZZQeIv4F+CldQqJ/wX2N/Ab908/lzRyDuWVZTyBTN0nrJ/1cfMhYPWHpbci+s4pntO2Zfzgp3ufFLUs7Rg70Swo/ou6cNmI= 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=bTpu+gJa; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=FWGC5Ghs; 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="bTpu+gJa"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="FWGC5Ghs" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64IBHQ5R2482375 for ; Mon, 18 May 2026 13:50:06 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= lDqU1NSm48bX3qmgDYOZxIl1cMDyhT8rkY31oVrqSN8=; b=bTpu+gJafC/Md5Ay gqy4VZDNHJAD9K2NARbW4QAZ7U3yD1+hrSe8Vvqp/eczGsBKBP6FnzJUcXlEL+HC qzqAIl+QfXH1XFQB32V1XIHNIvY5+5qxI8VpnyefOR+Udzm3iWVQpwkWvEEG4pZn EeknNQLNNuKF8sKiSuimQPVdDpx+TR8s0gQClSBQKPLeBGENZzcdXisQXV5W1J3J CHf61FRZjzTY5DCu3QjQvhvjjMJo32DEsuSTEor5bfg9c3p+8Epv9nkWKQEnPVpX jHG6OKFSOutBD7NQdpwBIzkRgF5Z4vVo5zlQgJbj6MquoWmHIdovValZ3utEaA3r gbr5Pw== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e81rvghx3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 18 May 2026 13:50:06 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2bd6aeb3637so60651465ad.2 for ; Mon, 18 May 2026 06:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1779112206; x=1779717006; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lDqU1NSm48bX3qmgDYOZxIl1cMDyhT8rkY31oVrqSN8=; b=FWGC5GhsulFS/D8MYOuVaobmMNIZai8OsC9p9E9424WX3cKVzo9fUR6zbye9NxhJpf Uh+/fYUpKhejrznoSEe1cBgdFYQwic3tCdz8j/ID9hAYO+dP53SeCaskcOLL7SyLVEmr Wsn+2019cv6jJm9nYlLw6jCZMV95f0QaqaXVIx8of8crg0ahNhoprQagI2qCAtmezFoo q2vBtlL+4K2nBoY6NumiAhePHLWEiCH7UScZvuRT19eL1se054YBVRLgRCSGPIlJv673 JYkc/nXisWTeTzaF+Q68JUOjgtMAWtiUkXiHUeIISSoYH4OOsXj7sfi/TevA+8n/R/8l 8SBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779112206; x=1779717006; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=lDqU1NSm48bX3qmgDYOZxIl1cMDyhT8rkY31oVrqSN8=; b=foDjqpYDWFuRaW5utYMKAcTqm3JeFpVCge2RrckNvLaTK7wvGZSGinw/W/cnO7o8Ss WjJf3K18h3gEZEi7jlTKwCCfpuVrNYJeHTQHo+FU2MeRUB7PV83YbRWmxWl2CCLBp2pC c8VKsS1gUSxVxHFNXS9qDV54FBwVe3XPrVUgusqXzNii8rE1w3fDXwCrCCwYx6ErDws7 5NQNtKx2pfHl75TsGXnNlWeGbYGqkhgE4essw6Gp3dqKxNJ4xJzNcAdhQeaw7beo/1dc K0JIu9dnLE6RrrKBNroGDaVnSNwMKtBLC41peGhAdge6n5XNH89CgETw1zOYx7XcQPvg 8A1Q== X-Forwarded-Encrypted: i=1; AFNElJ/9vKjpy5Gf/oFP3hh+uj+VZvsn4yKJDAHnlY3orl7gii+RtR15LlCULmyKtTuaDuazTSL+mGmyU27GdOY=@vger.kernel.org X-Gm-Message-State: AOJu0YxHeHt/UVbMvqjnvWFKcyb5lxTpfwd2nchTgDC5AmlLpVmzBB+f jC+FqCi6TbwZLTa7f/QL+MqlcZBqVlyd+87Co2tt+8yL8Vd+8AUrcnwARvCRygy+Q2R3WgeIxnQ fHDYm+1yWg3OFtnJ7JBCy4NnDEY/ObAgyVFW19LqVNI10Woa/SEVdIk/J7CNKVIKAdg== X-Gm-Gg: Acq92OFmlUniOQA/i3Y+I8GFKmyLAMzOcjAz54yzUGTec7pgwwaOUgnYY/zWlus1ebg 8sjq3MhJ6AcvBhq0ZjAWO5fQsUJmhDZbhxvEJRjczEHNKrJ6Wie0xlTPrHxUeNjOhu7hn9LXSTp /4+59YjDeQ/ixlPdo/js3WlUkxj/bW2kUrzbKUy33bDZp8UMjafdPwBAwNBdIyA8U+zVYBReBS4 P6NbVG/w4pbkx5p6iRkjDZF78kOkN/Y6DIt7pv/v3d4zKxmnzlCVEO6FuXhpckbXPC2QYEqmwII awxHBcjrv8T45VuON/Lm93h8/6UTFxBVvlNN/9cSlz3j2J93SSAk4Ena1B4HqOYV8T46YCaxg3H IayCTIrDIHP6Shtq/3edMvdoe46TbZ1DAP3fbI2ubUZ3uWV+xRK4= X-Received: by 2002:a17:903:1b65:b0:2b9:8d39:5e87 with SMTP id d9443c01a7336-2bd7e7bdd94mr167994655ad.10.1779112205572; Mon, 18 May 2026 06:50:05 -0700 (PDT) X-Received: by 2002:a17:903:1b65:b0:2b9:8d39:5e87 with SMTP id d9443c01a7336-2bd7e7bdd94mr167994375ad.10.1779112205060; Mon, 18 May 2026 06:50:05 -0700 (PDT) Received: from hu-kotarake-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2bd5c05f36fsm185411275ad.21.2026.05.18.06.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 06:50:04 -0700 (PDT) From: Rakesh Kota Date: Mon, 18 May 2026 19:19:39 +0530 Subject: [PATCH 1/2] dt-bindings: soc: qcom: pmic-glink: Document batteryless property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260518-add_dc_in_support-v1-1-31fbaa329879@oss.qualcomm.com> References: <20260518-add_dc_in_support-v1-0-31fbaa329879@oss.qualcomm.com> In-Reply-To: <20260518-add_dc_in_support-v1-0-31fbaa329879@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Rakesh Kota X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779112197; l=1556; i=rakesh.kota@oss.qualcomm.com; s=20250919; h=from:subject:message-id; bh=fpyfAuxqXVVXVUx6y23m8FTqtbLsqhHyF/u3USHTtCs=; b=a433+0G5gAjzs/fjzv/ee4VIv5e8wLfIG3YETXZBCngvo7LDy2S4jbgYYUlm3abtaqzLO5dW8 YvLxWXvlnJDDuc5sMFwGzndvlROvj73H3Wxb92lYhYXgVPQWSBLTUwn X-Developer-Key: i=rakesh.kota@oss.qualcomm.com; a=ed25519; pk=dFhv9yPC8egZglsSLDMls08cOvZKZkG6QQn1a/ofwNU= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTE4MDEzNCBTYWx0ZWRfXzWvGoNa8n47t JeGDHiJ+GytNEU8JR290R/bxmyMIb5xJ1/2LJVTaGiAXIskPfe+72ey2J53MRmrF+cKD1O41Z/x Q4TMVQKUp2utxQQvNSpkaaMz5OKFFPfUJrLCZFGTz1xbuDVw9a0Iqmnfiwar+vHGtu+gg+rkUb8 hkpeb7jXiQ8kPlY47dRo2pisbtHtpkXsDnI+VdAiKpMQCVdVIWPKkuLEj0cfq9aKoC14jd8v5YE rOev/OEk3YjQL1ls7NahP9BRNbUesV3lO0RqcAF1qosiLn0vD4LFoXmLBJkJnsbBPlynYhEalei or/X/j5szBdteU+l2N2DkxFxwvb+GW4OeXVJLJl8KdJ6cLJJiYQt7LiHDVqd2/5wWh21pi8dbpx ONPpOHIV637bHri/PGgAeHnkTcTmEnSI2bBgj3uHJXxxRBDRBNyVLQngQyZSWm00bvfVDoLVhUG LEI9UVpEKaUiyxm9mfg== X-Proofpoint-GUID: O6Az8Oj6Q_MgClgZjBZgQIhU1zek4Z9i X-Proofpoint-ORIG-GUID: O6Az8Oj6Q_MgClgZjBZgQIhU1zek4Z9i X-Authority-Analysis: v=2.4 cv=Lf0MLDfi c=1 sm=1 tr=0 ts=6a0b190e cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=Lbdm12_SwBOpIOl6TaEA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 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-18_03,2026-05-15_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 adultscore=0 clxscore=1015 impostorscore=0 malwarescore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605180134 Document the "qcom,batteryless" boolean device tree property for the PMIC Glink battery manager node. When this property is present, the battery manager driver registers the power supply as POWER_SUPPLY_TYPE_MAINS instead of BATTERY. This is intended for 12V DC adapters, where presenting the supply as a battery would cause userspace to incorrectly trigger battery power-saving sequences. Signed-off-by: Rakesh Kota --- Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml index ff01d2f3ee5be18e404591e3f0382ff2b3f7d168..5f7b90d37ea09d9aacff463b2ff4b76d218bbeac 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml @@ -72,6 +72,14 @@ properties: - const: charge_limit_end - const: charge_limit_delta + qcom,batteryless: + $ref: /schemas/types.yaml#/definitions/flag + description: + When present, the battery manager registers the power supply as + POWER_SUPPLY_TYPE_MAINS instead of BATTERY. This is intended for + 12V DC adapters, where exposing the supply as a battery would + incorrectly trigger userspace battery power-saving sequences. + patternProperties: '^connector@\d$': $ref: /schemas/connector/usb-connector.yaml# -- 2.34.1