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 8 title: AB8500 Battery Temperature Monitor 9 10 maintainers: 11 - Sebastian Reichel <sre@kernel.org> 12 13 allOf: 14 - $ref: power-supply.yaml# 15 16 properties: 17 compatible: 18 const: stericsson,ab8500-btemp 19 20 monitored-battery: 21 $ref: /schemas/types.yaml#/definitions/phandle 22 description: phandle to battery node 23 24 battery: 25 $ref: /schemas/types.yaml#/definitions/phandle 26 deprecated: true 27 28 interrupts: 29 maxItems: 5 30 31 interrupt-names: 32 items: 33 - const: BAT_CTRL_INDB 34 - const: BTEMP_LOW 35 - const: BTEMP_HIGH 36 - const: BTEMP_LOW_MEDIUM 37 - const: BTEMP_MEDIUM_HIGH 38 39 io-channels: 40 maxItems: 2 41 42 io-channel-names: 43 items: 44 - const: btemp_ball 45 - const: bat_ctrl 46 47 required: 48 - compatible 49 - monitored-battery 50 - interrupts 51 - interrupt-names 52 - io-channels 53 - io-channel-names 54 55 additionalProperties: false 56 57 examples: 58 - | 59 #include <dt-bindings/interrupt-controller/irq.h> 60 pmic { 61 battery-temperature { 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", 70 "BTEMP_LOW", 71 "BTEMP_HIGH", 72 "BTEMP_LOW_MEDIUM", 73 "BTEMP_MEDIUM_HIGH"; 74 io-channels = <&gpadc 0x02>, <&gpadc 0x01>; 75 io-channel-names = "btemp_ball", "bat_ctrl"; 76 }; 77 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.