[PATCH 1/2] dt-bindings: soc: qcom: pmic-glink: Document batteryless property
From: Rakesh Kota
Date: Mon May 18 2026 - 09:50:46 EST
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 <rakesh.kota@xxxxxxxxxxxxxxxx>
---
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