Skip to content

Instantly share code, notes, and snippets.

@antony-jr
Created November 17, 2020 19:07
Show Gist options
  • Save antony-jr/82909ba8114f6087b2889ae9d9037115 to your computer and use it in GitHub Desktop.
Save antony-jr/82909ba8114f6087b2889ae9d9037115 to your computer and use it in GitHub Desktop.
bat: battery {
compatible = "simple-battery";
voltage-min-design-microvolt = <3400000>;
voltage-max-design-microvolt = <4400000>;
energy-full-design-microwatt-hours = <9500000>;
charge-full-design-microamp-hours = <2500000>;
ocv-capacity-celsius = <25>;
ocv-capacity-table-0 = <4378000 100>, <4312000 95>, <4253000 90>,
<4195000 85>, <4138000 80>, <4084000 75>, <4034000 70>,
<3986000 65>, <3936000 60>, <3886000 55>, <3854000 50>,
<3828000 45>, <3806000 40>, <3789000 35>, <3772000 30>,
<3755000 25>, <3736000 20>, <3716000 16>, <3698000 13>,
<3688000 11>, <3686000 10>, <3684000 9>, <3682000 8>,
<3678000 7>, <3666000 6>, <3638000 5>, <3592000 4>,
<3532000 3>, <3448000 2>, <3314000 1>, <3000000 0>;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment