File Index
Files and directories
Sign in
FILE

stericsson,ab8500-btemp.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-btemp.yaml YAML
 1# SPDX-License-Identifier: GPL-2.0
 2# Copyright (C) 2021 Sebastian Reichel
 3%YAML 1.2
 4---
 5$id: http://devicetree.org/schemas/power/supply/stericsson,ab8500-btemp.yaml#
 6$schema: http://devicetree.org/meta-schemas/core.yaml#
 7
 8title: AB8500 Battery Temperature Monitor
 9
10maintainers:
11  - Sebastian Reichel <sre@kernel.org>
12
13allOf:
14  - $ref: power-supply.yaml#
15
16properties:
17  compatible:
18    const: stericsson,ab8500-btemp
19
20  monitored-battery: true
21
22  battery:
23    $ref: /schemas/types.yaml#/definitions/phandle
24    deprecated: true
25
26  interrupts:
27    maxItems: 5
28
29  interrupt-names:
30    items:
31      - const: BAT_CTRL_INDB
32      - const: BTEMP_LOW
33      - const: BTEMP_HIGH
34      - const: BTEMP_LOW_MEDIUM
35      - const: BTEMP_MEDIUM_HIGH
36
37  io-channels:
38    maxItems: 2
39
40  io-channel-names:
41    items:
42      - const: btemp_ball
43      - const: bat_ctrl
44
45required:
46  - compatible
47  - monitored-battery
48  - interrupts
49  - interrupt-names
50  - io-channels
51  - io-channel-names
52
53additionalProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/interrupt-controller/irq.h>
58    pmic {
59      battery-temperature {
60        compatible = "stericsson,ab8500-btemp";
61        monitored-battery = <&battery>;
62        interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
63                     <80 IRQ_TYPE_LEVEL_HIGH>,
64                     <83 IRQ_TYPE_LEVEL_HIGH>,
65                     <81 IRQ_TYPE_LEVEL_HIGH>,
66                     <82 IRQ_TYPE_LEVEL_HIGH>;
67        interrupt-names = "BAT_CTRL_INDB",
68                          "BTEMP_LOW",
69                          "BTEMP_HIGH",
70                          "BTEMP_LOW_MEDIUM",
71                          "BTEMP_MEDIUM_HIGH";
72        io-channels = <&gpadc 0x02>, <&gpadc 0x01>;
73        io-channel-names = "btemp_ball", "bat_ctrl";
74      };
75    };
~/ Read-only file preview.