1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/stericsson,ab8500-btemp.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: AB8500 Battery Temperature Monitor
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
18 const: stericsson,ab8500-btemp
21 $ref: /schemas/types.yaml#/definitions/phandle
22 description: phandle to battery node
25 $ref: /schemas/types.yaml#/definitions/phandle
33 - const: BAT_CTRL_INDB
36 - const: BTEMP_LOW_MEDIUM
37 - const: BTEMP_MEDIUM_HIGH
55 additionalProperties: false
59 #include <dt-bindings/interrupt-controller/irq.h>
62 compatible = "stericsson,ab8500-btemp";
63 monitored-battery = <&battery>;
64 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
65 <80 IRQ_TYPE_LEVEL_HIGH>,
66 <83 IRQ_TYPE_LEVEL_HIGH>,
67 <81 IRQ_TYPE_LEVEL_HIGH>,
68 <82 IRQ_TYPE_LEVEL_HIGH>;
69 interrupt-names = "BAT_CTRL_INDB",
74 io-channels = <&gpadc 0x02>, <&gpadc 0x01>;
75 io-channel-names = "btemp_ball", "bat_ctrl";