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
29 - const: BAT_CTRL_INDB
32 - const: BTEMP_LOW_MEDIUM
33 - const: BTEMP_MEDIUM_HIGH
51 additionalProperties: false
55 #include <dt-bindings/interrupt-controller/irq.h>
58 compatible = "stericsson,ab8500-btemp";
59 battery = <&ab8500_battery>;
60 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
61 <80 IRQ_TYPE_LEVEL_HIGH>,
62 <83 IRQ_TYPE_LEVEL_HIGH>,
63 <81 IRQ_TYPE_LEVEL_HIGH>,
64 <82 IRQ_TYPE_LEVEL_HIGH>;
65 interrupt-names = "BAT_CTRL_INDB",
70 io-channels = <&gpadc 0x02>, <&gpadc 0x01>;
71 io-channel-names = "btemp_ball", "bat_ctrl";