2024-3-29 09:02| 发布者: L_S_H| 查看: 30| 评论: 0
对比之下两个寄存器地址基本一致,我们修改设备树让其支持
ds2745: ds2745@48 {
compatible = "ds2782";
pinctrl-names = "default";
reg = <0x48>;
status ="okay";
};
驱动路径:OK8MP-linux-kernel/drivers/power/supply/ds2782_battery.c
修改makefile:obj-y += ds2782_battery.o
评论
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2025-6-23 10:36
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.