blob: 5d72d197a76dcbf5ab16b5250efc6a49bfeda614 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/ {
named-i2c-ports {
i2c_ec_i2c_batt: ec_i2c_batt {
i2c-port = <&i2c_ctrl7>;
enum-names = "I2C_PORT_BATTERY";
};
};
usbc {
port0@0 {
chg = <&chg_port0>;
};
port1@1 {
chg = <&chg_port1>;
};
};
batteries {
default_battery: lgc {
compatible = "lgc,ap18c8k", "battery-smart";
};
};
};
&i2c_ctrl3 {
chg_port0: sm5803_primary@32 {
compatible = "cros,sm5803-emul", "siliconmitus,sm5803";
status = "okay";
reg = <0x32>;
interrupt-gpios = <&gpio0 1 GPIO_INPUT_PULL_UP>;
};
};
&i2c_ctrl5 {
chg_port1: sm5803_secondary@32 {
compatible = "cros,sm5803-emul", "siliconmitus,sm5803";
status = "okay";
reg = <0x32>;
interrupt-gpios = <&gpio0 2 GPIO_INPUT_PULL_UP>;
};
};
&i2c_ctrl7 {
battery: sb@b {
compatible = "zephyr,smart-battery-emul";
reg = <0xb>;
cycle-count = <6>;
version = "BATTERY_SPEC_VER_1_1_WITH_PEC";
desired-charg-volt = <11250>;
desired-charg-cur = <2400>;
mf-name = "LGC";
dev-name = "AP18C8K";
};
};
|