[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260102-kobo-aura-battery-v1-1-501f2a8fa575@jm0.eu>
Date: Fri, 02 Jan 2026 19:00:30 +0100
From: Josua Mayer <josua.mayer@....eu>
To: Jonathan Neuschäfer <j.neuschaefer@....net>,
Lee Jones <lee@...nel.org>, Sebastian Reichel <sre@...nel.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
devicetree@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, Josua Mayer <josua.mayer@....eu>
Subject: [PATCH 1/4] dt-bindings: mfd: netronix,ntxec: add reference to
power-supply
The Netronix Embedded Controller supports monitoring of battery voltage.
Voltage monitoring functionality is self-contained and requires no
supply- or battery-specific runtime configuration.
Battery design characteristics (e.g. voltage-min-design-microvolt) are
useful for users to understand the charge level and are commonly
provided by a separate battery node linked with monitored-battery
property.
Add reference to power-supply.yaml so that power-supplies and
monitored-battery properties become available.
Further drop reg property description and replace it with maxItems 1 as
is common for i2c devices with single bus address.
Finally replace additionalProperties with unevaluatedProperties to
allow properties from referenced schemas.
Signed-off-by: Josua Mayer <josua.mayer@....eu>
---
Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml b/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml
index 37fbb953ea12..6599dcf0eceb 100644
--- a/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml
+++ b/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml
@@ -13,13 +13,15 @@ description: |
This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino), and
is typically implemented as a TI MSP430 microcontroller.
+allOf:
+ - $ref: /schemas/power/supply/power-supply.yaml
+
properties:
compatible:
const: netronix,ntxec
reg:
- items:
- - description: The I2C address of the EC
+ maxItems: 1
system-power-controller:
type: boolean
@@ -42,7 +44,7 @@ required:
- compatible
- reg
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
@@ -61,5 +63,6 @@ examples:
interrupt-parent = <&gpio4>;
interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
#pwm-cells = <2>;
+ monitored-battery = <&battery>;
};
};
--
2.43.0
Powered by blists - more mailing lists