lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251229085636.4082852-2-Qing-wu.Li@leica-geosystems.com.cn>
Date: Mon, 29 Dec 2025 08:56:35 +0000
From: LI Qingwu <Qing-wu.Li@...ca-geosystems.com.cn>
To: sre@...nel.org,
	robh@...nel.org,
	krzk+dt@...nel.org,
	conor+dt@...nel.org,
	linux-pm@...r.kernel.org,
	devicetree@...r.kernel.org,
	linux-kernel@...r.kernel.org
Cc: bsp-development.geo@...ca-geosystems.com,
	LI Qingwu <Qing-wu.Li@...ca-geosystems.com.cn>
Subject: [PATCH V1 2/3] dt-bindings: power: sbs-battery: add polling interval property

Add the optional sbs,monitoring-interval-ms property for SBS-compliant
batteries to configure a periodic polling interval on systems without
interrupt support. The driver periodically checks the battery status and
notifies userspace of changes when this property is set, and ignores it
when a GPIO interrupt is available.

The property defaults to 0 to preserve existing behaviour.

Signed-off-by: LI Qingwu <Qing-wu.Li@...ca-geosystems.com.cn>
---
 .../bindings/power/supply/sbs,sbs-battery.yaml           | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml b/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml
index 90b9d3d882a4..fbdd5dd5dda8 100644
--- a/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml
+++ b/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml
@@ -59,6 +59,15 @@ properties:
       master implementation.
     type: boolean
 
+  sbs,monitoring-interval-ms:
+    description:
+      Polling interval in milliseconds for battery status monitoring on
+      systems without interrupt support. The driver periodically checks
+      the battery status and notifies userspace of changes. Ignored when
+      GPIO interrupt is available.
+    default: 0
+    $ref: /schemas/types.yaml#/definitions/uint32
+
 required:
   - compatible
   - reg
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ