1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/stericsson,ab8500-charger.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
18 const: stericsson,ab8500-charger
21 $ref: /schemas/types.yaml#/definitions/phandle
22 description: phandle to battery node
25 $ref: /schemas/types.yaml#/definitions/phandle
29 description: Supply for USB and Main charger
33 description: automatic poweron after powerloss
40 - const: MAIN_CH_UNPLUG_DET
41 - const: MAIN_CHARGE_PLUG_DET
42 - const: MAIN_EXT_CH_NOT_OK
43 - const: MAIN_CH_TH_PROT_R
44 - const: MAIN_CH_TH_PROT_F
47 - const: USB_LINK_STATUS
48 - const: USB_CH_TH_PROT_R
49 - const: USB_CH_TH_PROT_F
50 - const: USB_CHARGER_NOT_OKR
53 - const: VBUS_CH_DROP_END
62 - const: main_charger_v
63 - const: main_charger_c
65 - const: usb_charger_c
68 - const: usb_charger_c
80 additionalProperties: false
84 #include <dt-bindings/interrupt-controller/irq.h>
87 compatible = "stericsson,ab8500-charger";
88 monitored-battery = <&battery>;
89 vddadc-supply = <&ab8500_ldo_tvout_reg>;
90 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
91 <11 IRQ_TYPE_LEVEL_HIGH>,
92 <0 IRQ_TYPE_LEVEL_HIGH>,
93 <107 IRQ_TYPE_LEVEL_HIGH>,
94 <106 IRQ_TYPE_LEVEL_HIGH>,
95 <14 IRQ_TYPE_LEVEL_HIGH>,
96 <15 IRQ_TYPE_LEVEL_HIGH>,
97 <79 IRQ_TYPE_LEVEL_HIGH>,
98 <105 IRQ_TYPE_LEVEL_HIGH>,
99 <104 IRQ_TYPE_LEVEL_HIGH>,
100 <89 IRQ_TYPE_LEVEL_HIGH>,
101 <22 IRQ_TYPE_LEVEL_HIGH>,
102 <21 IRQ_TYPE_LEVEL_HIGH>,
103 <16 IRQ_TYPE_LEVEL_HIGH>;
104 interrupt-names = "MAIN_CH_UNPLUG_DET",
105 "MAIN_CHARGE_PLUG_DET",
106 "MAIN_EXT_CH_NOT_OK",
114 "USB_CHARGER_NOT_OKR",
118 io-channels = <&gpadc 0x03>,
122 io-channel-names = "main_charger_v",