Skip to content

Commit 17656d2

Browse files
Stanislav Jakubeksre
authored andcommitted
dt-bindings: power: supply: sc27xx-fg: add low voltage alarm IRQ
The SC27XX fuel gauge supports a low voltage alarm IRQ, which is used for more accurate battery capacity measurements with lower voltages. This was unfortunately never documented in bindings, do so now. The only in-tree user (sc2731.dtsi) has had interrupts specified since its initial fuel-gauge submission and the current kernel driver returns an error when no interrupt is specified, so also add it to the required list. Signed-off-by: Stanislav Jakubek <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/Zr3SAHlq5A78QvrW@standask-GA-A55M-S2HP Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 7b2e5b9 commit 17656d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/power/supply/sc27xx-fg.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ properties:
2727
battery-detect-gpios:
2828
maxItems: 1
2929

30+
interrupts:
31+
maxItems: 1
32+
3033
io-channels:
3134
items:
3235
- description: Battery Temperature ADC
@@ -53,6 +56,7 @@ required:
5356
- compatible
5457
- reg
5558
- battery-detect-gpios
59+
- interrupts
5660
- io-channels
5761
- io-channel-names
5862
- nvmem-cells
@@ -88,6 +92,8 @@ examples:
8892
compatible = "sprd,sc2731-fgu";
8993
reg = <0xa00>;
9094
battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
95+
interrupt-parent = <&sc2731_pmic>;
96+
interrupts = <4>;
9197
io-channels = <&pmic_adc 5>, <&pmic_adc 14>;
9298
io-channel-names = "bat-temp", "charge-vol";
9399
nvmem-cells = <&fgu_calib>;

0 commit comments

Comments
 (0)