FILE
stericsson,ab8500-charger.yaml
File preview with syntax highlighting.
linux-6.19.14/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.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-charger.yaml# 6$schema: http://devicetree.org/meta-schemas/core.yaml# 7 8title: AB8500 Charger 9 10maintainers: 11 - Sebastian Reichel <sre@kernel.org> 12 13allOf: 14 - $ref: power-supply.yaml# 15 16properties: 17 compatible: 18 const: stericsson,ab8500-charger 19 20 monitored-battery: true 21 22 battery: 23 $ref: /schemas/types.yaml#/definitions/phandle 24 deprecated: true 25 26 vddadc-supply: 27 description: Supply for USB and Main charger 28 29 autopower_cfg: 30 type: boolean 31 description: automatic poweron after powerloss 32 33 interrupts: 34 maxItems: 14 35 36 interrupt-names: 37 items: 38 - const: MAIN_CH_UNPLUG_DET 39 - const: MAIN_CHARGE_PLUG_DET 40 - const: MAIN_EXT_CH_NOT_OK 41 - const: MAIN_CH_TH_PROT_R 42 - const: MAIN_CH_TH_PROT_F 43 - const: VBUS_DET_F 44 - const: VBUS_DET_R 45 - const: USB_LINK_STATUS 46 - const: USB_CH_TH_PROT_R 47 - const: USB_CH_TH_PROT_F 48 - const: USB_CHARGER_NOT_OKR 49 - const: VBUS_OVV 50 - const: CH_WD_EXP 51 - const: VBUS_CH_DROP_END 52 53 io-channels: 54 minItems: 2 55 maxItems: 4 56 57 io-channel-names: 58 oneOf: 59 - items: 60 - const: main_charger_v 61 - const: main_charger_c 62 - const: vbus_v 63 - const: usb_charger_c 64 - items: 65 - const: vbus_v 66 - const: usb_charger_c 67 68required: 69 - compatible 70 - monitored-battery 71 - vddadc-supply 72 - interrupts 73 - interrupt-names 74 - io-channels 75 - io-channel-names 76 77additionalProperties: false 78 79examples: 80 - | 81 #include <dt-bindings/interrupt-controller/irq.h> 82 pmic { 83 charger { 84 compatible = "stericsson,ab8500-charger"; 85 monitored-battery = <&battery>; 86 vddadc-supply = <&ab8500_ldo_tvout_reg>; 87 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>, 88 <11 IRQ_TYPE_LEVEL_HIGH>, 89 <0 IRQ_TYPE_LEVEL_HIGH>, 90 <107 IRQ_TYPE_LEVEL_HIGH>, 91 <106 IRQ_TYPE_LEVEL_HIGH>, 92 <14 IRQ_TYPE_LEVEL_HIGH>, 93 <15 IRQ_TYPE_LEVEL_HIGH>, 94 <79 IRQ_TYPE_LEVEL_HIGH>, 95 <105 IRQ_TYPE_LEVEL_HIGH>, 96 <104 IRQ_TYPE_LEVEL_HIGH>, 97 <89 IRQ_TYPE_LEVEL_HIGH>, 98 <22 IRQ_TYPE_LEVEL_HIGH>, 99 <21 IRQ_TYPE_LEVEL_HIGH>, 100 <16 IRQ_TYPE_LEVEL_HIGH>; 101 interrupt-names = "MAIN_CH_UNPLUG_DET", 102 "MAIN_CHARGE_PLUG_DET", 103 "MAIN_EXT_CH_NOT_OK", 104 "MAIN_CH_TH_PROT_R", 105 "MAIN_CH_TH_PROT_F", 106 "VBUS_DET_F", 107 "VBUS_DET_R", 108 "USB_LINK_STATUS", 109 "USB_CH_TH_PROT_R", 110 "USB_CH_TH_PROT_F", 111 "USB_CHARGER_NOT_OKR", 112 "VBUS_OVV", 113 "CH_WD_EXP", 114 "VBUS_CH_DROP_END"; 115 io-channels = <&gpadc 0x03>, 116 <&gpadc 0x0a>, 117 <&gpadc 0x09>, 118 <&gpadc 0x0b>; 119 io-channel-names = "main_charger_v", 120 "main_charger_c", 121 "vbus_v", 122 "usb_charger_c"; 123 }; 124 };
~/
Read-only file preview.