brintos

brintos / linux-shallow public Read only

0
0
Text · 1.8 KiB · 525abdf Raw
78 lines · yaml
1# SPDX-License-Identifier: GPL-2.02# Copyright (C) 2021 Sebastian Reichel3%YAML 1.24---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 Monitor9 10maintainers:11  - Sebastian Reichel <sre@kernel.org>12 13allOf:14  - $ref: power-supply.yaml#15 16properties:17  compatible:18    const: stericsson,ab8500-btemp19 20  monitored-battery:21    $ref: /schemas/types.yaml#/definitions/phandle22    description: phandle to battery node23 24  battery:25    $ref: /schemas/types.yaml#/definitions/phandle26    deprecated: true27 28  interrupts:29    maxItems: 530 31  interrupt-names:32    items:33      - const: BAT_CTRL_INDB34      - const: BTEMP_LOW35      - const: BTEMP_HIGH36      - const: BTEMP_LOW_MEDIUM37      - const: BTEMP_MEDIUM_HIGH38 39  io-channels:40    maxItems: 241 42  io-channel-names:43    items:44      - const: btemp_ball45      - const: bat_ctrl46 47required:48  - compatible49  - monitored-battery50  - interrupts51  - interrupt-names52  - io-channels53  - io-channel-names54 55additionalProperties: false56 57examples: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    };78