summaryrefslogtreecommitdiff
path: root/zephyr/include/dt-bindings/battery.h
blob: e6465e2a9be57109648043db19894035b650aa1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright 2022 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef DT_BINDINGS_BATTERY_H_
#define DT_BINDINGS_BATTERY_H_

/*
 * Macros used by LED devicetree files (led.dts) to define battery-level
 * range.
 */
#define BATTERY_LEVEL_EMPTY 0
#define BATTERY_LEVEL_SHUTDOWN 3
#define BATTERY_LEVEL_CRITICAL 5
#define BATTERY_LEVEL_LOW 10
#define BATTERY_LEVEL_NEAR_FULL 97
#define BATTERY_LEVEL_FULL 100

#endif /* DT_BINDINGS_BATTERY_H_ */