mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-28 09:49:02 +00:00
dt-bindings: power: supply: maxim,max17040: add temperature support
Add temperature monitoring support. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Iskren Chernev <me@iskren.info> Link: https://lore.kernel.org/r/20230731073613.10394-2-clamor95@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
bbaa6ffa5b
commit
ddf5bbee5f
@ -55,6 +55,14 @@ properties:
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
io-channels:
|
||||
items:
|
||||
- description: battery temperature
|
||||
|
||||
io-channel-names:
|
||||
items:
|
||||
- const: temp
|
||||
|
||||
wakeup-source:
|
||||
type: boolean
|
||||
description: |
|
||||
@ -95,3 +103,26 @@ examples:
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
- |
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
i2c {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
fuel-gauge@36 {
|
||||
compatible = "maxim,max17043";
|
||||
reg = <0x36>;
|
||||
|
||||
interrupt-parent = <&gpio>;
|
||||
interrupts = <144 IRQ_TYPE_EDGE_FALLING>;
|
||||
|
||||
monitored-battery = <&battery>;
|
||||
power-supplies = <&charger>;
|
||||
|
||||
io-channels = <&adc 8>;
|
||||
io-channel-names = "temp";
|
||||
|
||||
maxim,alert-low-soc-level = <10>;
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user