您尚未登录。

#2 2023-05-15 09:17:01

zzm24
会员
注册时间: 2018-05-07
已发帖子: 120
积分: 107

Re: AXP2101 PMU 资料

我这散客一看这充电方式是烧码决定就放弃了

离线

#3 2023-05-15 19:49:18

海石生风
会员
所在地: 深圳
注册时间: 2019-07-02
已发帖子: 654
积分: 787
个人网站

Re: AXP2101 PMU 资料

根据电池放电曲线模型进行电量检测,以后产品量产还不能换电池型号,难搞!

离线

#4 2023-05-16 10:09:37

zhangjink
会员
注册时间: 2020-07-02
已发帖子: 46
积分: 168

Re: AXP2101 PMU 资料

EVM SCH&PCB.7z文件失效了,能再上传下吗,谢谢

离线

#5 2023-05-16 17:00:35

so_so_so
会员
注册时间: 2020-03-31
已发帖子: 6
积分: 1

Re: AXP2101 PMU 资料

使用不是很方便。

离线

#6 2023-05-16 17:04:40

avrman
会员
注册时间: 2018-11-07
已发帖子: 20
积分: 0

Re: AXP2101 PMU 资料

AP2101 好像功耗很大

离线

#9 2023-09-28 17:25:55

lv_xiao
会员
注册时间: 2023-09-28
已发帖子: 2
积分: 2

Re: AXP2101 PMU 资料

大佬们,AXP2101充电管理这些如何搞啊?

离线

#10 2023-10-13 17:24:10

LittleQ
会员
注册时间: 2023-10-13
已发帖子: 5
积分: 0

Re: AXP2101 PMU 资料

有没有AXP202的资料?

离线

#11 2023-11-23 22:37:34

qinlinbin
会员
注册时间: 2022-06-16
已发帖子: 2
积分: 27

Re: AXP2101 PMU 资料

电池计量需要寄电池回原厂吗?上面的电池参数测试工具包是有什么用的

离线

#12 2024-05-10 14:18:26

online
会员
注册时间: 2022-05-13
已发帖子: 2
积分: 2

Re: AXP2101 PMU 资料

@memory
想请教一下,在设备树中如何配置pmu节点呀?没找到有pmu配置相关的文档。

离线

楼主 #13 2024-09-23 11:33:25

memory
会员
注册时间: 2021-08-11
已发帖子: 457
积分: 433

Re: AXP2101 PMU 资料

Tina_Linux_PMU_开发指南.pdf

读AXP2101全部寄存器:

cat /sys/kernel/debug/regmap/1-0034/registers
# cat /sys/kernel/debug/regmap/1-0034/registers
00: 38
01: 33
02: 00
03: 4a
04: 00
05: 00
06: 00
07: 00
08: 04
09: 00
0a: 00
0b: 00
0c: 00
0d: 00
0e: 00
0f: 00
10: 34
11: 00
12: 00
13: 03
14: 65
15: 06
16: 05
17: 00
18: 0a
19: 06
1a: a5
1b: 00
1c: 00
1d: 00
1e: 09
1f: 00
20: 01
21: 01
22: 06
23: 3f
24: 00
25: 1b
26: 08
27: 10
28: 00
29: 00
2a: 00
2b: 00
2c: 00
2d: 00
2e: 00
2f: 00
30: 03
31: 00
32: 00
33: 00
34: 50
35: 6a
36: 80
37: 00
38: 00
39: 00
3a: 00
3b: 00
3c: 00
3d: 00
3e: 00
3f: 00
40: cf
41: f3
42: 18
43: 00
44: 00
45: 00
46: 00
47: 00
48: 10
49: 00
4a: 00
4b: 00
4c: 00
4d: 00
4e: 00
4f: 00
50: 10
51: 00
52: 02
53: 01
54: 29
55: 58
56: 3e
57: 4c
58: 00
59: 14
5a: 37
5b: 1e
5c: 02
5d: 58
5e: 00
5f: 00
60: 02
61: 04
62: 0b
63: 12
64: 03
65: 02
66: 01
67: e6
68: 01
69: 00
6a: 03
6b: 00
6c: 00
6d: 00
6e: 00
6f: 00
70: 00
71: 00
72: 00
73: 00
74: 00
75: 00
76: 00
77: 00
78: 00
79: 00
7a: 00
7b: 00
7c: 00
7d: 00
7e: 00
7f: 00
80: 0f
81: 00
82: 12
83: 28
84: 28
85: 3c
86: 00
87: 00
88: 00
89: 00
8a: 00
8b: 00
8c: 00
8d: 00
8e: 00
8f: 00
90: 93
91: 00
92: 0d
93: 17
94: 1c
95: 18
96: 0d
97: 17
98: 08
99: 00
9a: 0e
9b: 00
9c: 00
9d: 00
9e: 00
9f: 00
a0: 00
a1: 00
a2: 10
a3: 58
a4: 62
a5: 00
a6: 00
a7: 51
a8: 00
a9: 01
aa: 00
ab: 03
ac: 00
ad: 00
ae: 00
af: 00
b0: 00
b1: 00
b2: 00
b3: 00
b4: 00
b5: 00
b6: 00
b7: 00
b8: 00
b9: 00
ba: 00
bb: 00
bc: 00
bd: 00
be: 00
bf: 00
c0: 00
c1: 00
c2: 00
c3: 00
c4: 00
c5: 00
c6: 00
c7: 00
c8: 00
c9: 00
ca: 00
cb: 00
cc: 00
cd: 00
ce: 00
cf: 00
d0: 00
d1: 00
d2: 00
d3: 00
d4: 00
d5: 00
d6: 00
d7: 00
d8: 00
d9: 00
da: 00
db: 00
dc: 00
dd: 00
de: 00
df: 00
e0: 00
e1: 00
e2: 00
e3: 00
e4: 00
e5: 00
e6: 00
e7: 00
e8: 00
e9: 00
ea: 00
eb: 00
ec: 00
ed: 00
ee: 00
ef: 00
f0: 00
f1: 00
f2: 00
f3: 00
f4: 00
f5: 00
f6: 00
f7: 00
f8: 00
f9: 00
fa: 00
fb: 00
fc: 00
fd: 00
fe: 00
ff: 00
#

读所有电压 cat /sys/kernel/debug/regulator/regulator_summary

# cat /sys/kernel/debug/regulator/regulator_summary
 regulator                      use open bypass voltage current     min     max
-------------------------------------------------------------------------------
 regulator-dummy                  0    7      0     0mV     0mA     0mV     0mV
    1-005d                                                          0mV     0mV
    codec                                                           0mV     0mV
    codec                                                           0mV     0mV
    5200000.ohci1-controller                                        0mV     0mV
    5200000.ehci1-controller                                        0mV     0mV
    uart1                                                           0mV     0mV
    twi1                                                            0mV     0mV
 usb1-vbus                        0    0      0  5000mV     0mA  5000mV  5000mV
 vdd_3v3                          0    0      0  3300mV     0mA  3300mV  3300mV
 axp2101-dcdc1                    0    1      0  3300mV     0mA  1500mV  3400mV
    reg-virt-consumer.1                                             0mV     0mV
 axp2101-dcdc2                    0    1      0   900mV     0mA   500mV  1540mV
    reg-virt-consumer.2                                             0mV     0mV
 axp2101-dcdc3                    0    1      0   900mV     0mA   500mV  3400mV
    reg-virt-consumer.3                                             0mV     0mV
 axp2101-dcdc4                    0    1      0  1100mV     0mA   500mV  1840mV
    reg-virt-consumer.4                                             0mV     0mV
 axp2101-dcdc5                    0    1      0  1400mV     0mA  1400mV  3700mV
    reg-virt-consumer.5                                             0mV     0mV
 axp2101-rtcldo                   0    0      0  1800mV     0mA  1800mV  1800mV
 axp2101-rtcldo1                  0    0      0  1800mV     0mA  1800mV  1800mV
 axp2101-aldo1                    0    1      0  1800mV     0mA   500mV  3500mV
    reg-virt-consumer.8                                             0mV     0mV
 axp2101-aldo2                    1    2      0  2800mV     0mA   500mV  3500mV
    uart0                                                           0mV     0mV
    reg-virt-consumer.9                                             0mV     0mV
 axp2101-aldo3                    0    1      0  3300mV     0mA   500mV  3500mV
    reg-virt-consumer.10                                            0mV     0mV
 axp2101-aldo4                    0    1      0  2900mV     0mA   500mV  3500mV
    reg-virt-consumer.11                                            0mV     0mV
 axp2101-bldo1                    0    1      0  1800mV     0mA   500mV  3500mV
    reg-virt-consumer.12                                            0mV     0mV
 axp2101-bldo2                    0    1      0  2800mV     0mA   500mV  3500mV
    reg-virt-consumer.13                                            0mV     0mV
 axp2101-dldo1                    0    1      0   500mV     0mA   500mV  3500mV
    reg-virt-consumer.14                                            0mV     0mV
 axp2101-dldo2                    0    1      0  1200mV     0mA   500mV  1400mV
    reg-virt-consumer.15                                            0mV     0mV
 axp2101-cpusldo                  0    0      0   900mV     0mA   500mV  1400mV
#
# cat /sys/devices/platform/soc/twi1/i2c-1/1-0034/reg-virt-consumer.1/of_node/name
virtual-dcdc1
#
#
# cat /sys/devices/platform/soc/twi1/i2c-1/1-0034/reg-virt-consumer.2/of_node/name
virtual-dcdc2
#
#
# cat /sys/devices/platform/soc/twi1/i2c-1/1-0034/reg-virt-consumer.3/of_node/name
virtual-dcdc3
#
#
# cat /sys/devices/platform/soc/twi1/i2c-1/1-0034/reg-virt-consumer.4/of_node/name
virtual-dcdc4
#
#
# cat /sys/devices/platform/soc/twi1/i2c-1/1-0034/reg-virt-consumer.5/of_node/name
virtual-dcdc5
#
#
#

按键测试:

# evtest /dev/input/event1
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "axp2101-pek"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 116 (KEY_POWER)
Key repeat handling:
  Repeat type 20 (EV_REP)
    Repeat code 0 (REP_DELAY)
      Value    250
    Repeat code 1 (REP_PERIOD)
      Value     33
Properties:
Testing ... (interrupt to exit)
Event: time 5636.684675, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 5636.684675, -------------- SYN_REPORT ------------
Event: time 5636.867305, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 5636.867305, -------------- SYN_REPORT ------------
Event: time 5637.060484, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 5637.060484, -------------- SYN_REPORT ------------
Event: time 5637.204751, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 5637.204751, -------------- SYN_REPORT ------------
Event: time 5637.352375, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 5637.352375, -------------- SYN_REPORT ------------
Event: time 5637.490476, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 5637.490476, -------------- SYN_REPORT ------------
Event: time 5637.690817, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 5637.690817, -------------- SYN_REPORT ------------
Event: time 5637.809573, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 5637.809573, -------------- SYN_REPORT ------------

配置DC-DC1电压:

# cd /sys/devices/platform/soc/twi1/i2c-1/1-0034/reg-virt-consumer.1/

//设置输出电压为3.0V
echo 3300000 > max_microvolts
echo 3000000 > min_microvolts
//关闭输出
echo 3300000 > max_microvolts
echo 3000000 > min_microvolts
echo 0 > min_microvolts

获取电池电压:

# cat /sys/class/power_supply/battery/voltage_now
4153000
#
#
#
#
#
# cat /sys/class/power_supply/battery/voltage_now
4153000
#

查询电池是否正在充电:

# cat /sys/class/power_supply/battery/status
Charging
#
#
# cat /sys/class/power_supply/battery/status
Discharging
#

显示电量:

# cat /sys/class/power_supply/battery/capacity
100
#

显示电池温度:
[code]
# cat /sys/class/power_supply/battery/temp
300
[/code]

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn