mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
f333253246
Currently the power supply device tree documentation is spread in .../bindings/power_supply and .../bindings/power. This unifies the files for chargers and battery fuel gauges in .../bindings/power/supply and the ones for system reset/shutdown in .../bindings/power/reset (same structure as used for the drivers itself). Signed-off-by: Sebastian Reichel <sre@kernel.org>
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
max17042_battery
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
Required properties :
|
|
- compatible : "maxim,max17042"
|
|
|
|
Optional properties :
|
|
- maxim,rsns-microohm : Resistance of rsns resistor in micro Ohms
|
|
(datasheet-recommended value is 10000).
|
|
Defining this property enables current-sense functionality.
|
|
|
|
Optional threshold properties :
|
|
If skipped the condition won't be reported.
|
|
- maxim,cold-temp : Temperature threshold to report battery
|
|
as cold (in tenths of degree Celsius).
|
|
- maxim,over-heat-temp : Temperature threshold to report battery
|
|
as over heated (in tenths of degree Celsius).
|
|
- maxim,dead-volt : Voltage threshold to report battery
|
|
as dead (in mV).
|
|
- maxim,over-volt : Voltage threshold to report battery
|
|
as over voltage (in mV).
|
|
|
|
Example:
|
|
|
|
battery-charger@36 {
|
|
compatible = "maxim,max17042";
|
|
reg = <0x36>;
|
|
maxim,rsns-microohm = <10000>;
|
|
maxim,over-heat-temp = <600>;
|
|
maxim,over-volt = <4300>;
|
|
};
|