| .. | .. |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | Required properties : |
|---|
| 5 | 5 | - compatible : "charger-manager" |
|---|
| 6 | | - - <>-supply : for regulator consumer |
|---|
| 7 | | - - cm-num-chargers : number of chargers |
|---|
| 6 | + - <>-supply : for regulator consumer, named according to cm-regulator-name |
|---|
| 8 | 7 | - cm-chargers : name of chargers |
|---|
| 9 | 8 | - cm-fuel-gauge : name of battery fuel gauge |
|---|
| 10 | 9 | - subnode <regulator> : |
|---|
| 11 | 10 | - cm-regulator-name : name of charger regulator |
|---|
| 12 | 11 | - subnode <cable> : |
|---|
| 13 | | - - cm-cable-name : name of charger cable |
|---|
| 12 | + - cm-cable-name : name of charger cable - one of USB, USB-HOST, |
|---|
| 13 | + SDP, DCP, CDP, ACA, FAST-CHARGER, SLOW-CHARGER, WPT, |
|---|
| 14 | + PD, DOCK, JIG, or MECHANICAL |
|---|
| 14 | 15 | - cm-cable-extcon : name of extcon dev |
|---|
| 15 | 16 | (optional) - cm-cable-min : minimum current of cable |
|---|
| 16 | 17 | (optional) - cm-cable-max : maximum current of cable |
|---|
| 17 | 18 | |
|---|
| 18 | 19 | Optional properties : |
|---|
| 19 | 20 | - cm-name : charger manager's name (default : "battery") |
|---|
| 20 | | - - cm-poll-mode : polling mode (enum polling_modes) |
|---|
| 21 | | - - cm-poll-interval : polling interval |
|---|
| 22 | | - - cm-battery-stat : battery status (enum data_source) |
|---|
| 23 | | - - cm-fullbatt-* : data for full battery checking |
|---|
| 21 | + - cm-poll-mode : polling mode - 0 for disabled, 1 for always, 2 for when |
|---|
| 22 | + external power is connected, or 3 for when charging. If not present, |
|---|
| 23 | + then polling is disabled |
|---|
| 24 | + - cm-poll-interval : polling interval (in ms) |
|---|
| 25 | + - cm-battery-stat : battery status - 0 for battery always present, 1 for no |
|---|
| 26 | + battery, 2 to check presence via fuel gauge, or 3 to check presence |
|---|
| 27 | + via charger |
|---|
| 28 | + - cm-fullbatt-vchkdrop-volt : voltage drop (in uV) before restarting charging |
|---|
| 29 | + - cm-fullbatt-voltage : voltage (in uV) of full battery |
|---|
| 30 | + - cm-fullbatt-soc : state of charge to consider as full battery |
|---|
| 31 | + - cm-fullbatt-capacity : capcity (in uAh) to consider as full battery |
|---|
| 24 | 32 | - cm-thermal-zone : name of external thermometer's thermal zone |
|---|
| 25 | 33 | - cm-battery-* : threshold battery temperature for charging |
|---|
| 26 | 34 | -cold : critical cold temperature of battery for charging |
|---|
| .. | .. |
|---|
| 28 | 36 | -hot : critical hot temperature of battery for charging |
|---|
| 29 | 37 | -temp-diff : temperature difference to allow recharging |
|---|
| 30 | 38 | - cm-dis/charging-max = limits of charging duration |
|---|
| 39 | + |
|---|
| 40 | +Deprecated properties: |
|---|
| 41 | + - cm-num-chargers |
|---|
| 42 | + - cm-fullbatt-vchkdrop-ms |
|---|
| 31 | 43 | |
|---|
| 32 | 44 | Example : |
|---|
| 33 | 45 | charger-manager@0 { |
|---|
| .. | .. |
|---|
| 39 | 51 | cm-poll-mode = <1>; |
|---|
| 40 | 52 | cm-poll-interval = <30000>; |
|---|
| 41 | 53 | |
|---|
| 42 | | - cm-fullbatt-vchkdrop-ms = <30000>; |
|---|
| 43 | 54 | cm-fullbatt-vchkdrop-volt = <150000>; |
|---|
| 44 | 55 | cm-fullbatt-soc = <100>; |
|---|
| 45 | 56 | |
|---|
| 46 | 57 | cm-battery-stat = <3>; |
|---|
| 47 | 58 | |
|---|
| 48 | | - cm-num-chargers = <3>; |
|---|
| 49 | 59 | cm-chargers = "charger0", "charger1", "charger2"; |
|---|
| 50 | 60 | |
|---|
| 51 | 61 | cm-fuel-gauge = "fuelgauge0"; |
|---|
| .. | .. |
|---|
| 71 | 81 | cm-cable-max = <500000>; |
|---|
| 72 | 82 | }; |
|---|
| 73 | 83 | cable@1 { |
|---|
| 74 | | - cm-cable-name = "TA"; |
|---|
| 84 | + cm-cable-name = "SDP"; |
|---|
| 75 | 85 | cm-cable-extcon = "extcon-dev.0"; |
|---|
| 76 | 86 | cm-cable-min = <650000>; |
|---|
| 77 | 87 | cm-cable-max = <675000>; |
|---|