I.MX6 bq27441 driver porting
/**************************************************************************
* I.MX6 bq27441 driver porting
* 声明:
* 本文主要记录bq27441电池检测芯片驱动遇到的一些问题以及解决方法。
*
* 2016-1-28 深圳 南山平山村 曾剑锋
*************************************************************************/ 一、参考文档:
Linux Driver for BQ27XXX
http://www.ti.com/tool/bq27xxxsw-linux 二、官方驱动无效:
从官方指定的地方将驱动下来下来,编译时出各种问题,应该是我们内核版本过低造成的。 三、寻找bq27441驱动:
. 搜索
https://www.google.co.jp/search?q=bq27441+driver+linux+3.0&oq=bq27441+driver+linux+3.0&aqs=chrome..69i57j69i60.319j0j4&sourceid=chrome&es_sm=93&ie=UTF-8
. 采用
https://github.com/aneeshv/linux-bq27xxx/blob/master/drivers/power/bq27x00_battery.c 四、驱动注册:
. 板级文件配置
......
static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {
......
{ I2C_BOARD_INFO("bq274xx", 0x55), },
......
}
......
. 在make menuconfig中选择驱动。 五、查看电源状态:
root@android:/sys/class/power_supply/bq274xx- # ls
capacity
capacity_level
charge_full
charge_full_design
charge_now
current_now
device
power
present
status
subsystem
technology
temp
type
uevent
voltage_now
root@android:/sys/class/power_supply/bq274xx- # cat capacity root@android:/sys/class/power_supply/bq274xx- # cat voltage_now root@android:/sys/class/power_supply/bq274xx- # cat current_now |root@android:/sys/class/power_supply/bq274xx- #
I.MX6 bq27441 driver porting的更多相关文章
- I.MX6 bq27441 driver hacking
/************************************************************************* * I.MX6 bq27441 driver ha ...
- I.MX6 PMU MMPF0100 driver porting
/************************************************************************** * I.MX6 MMPF0100 driver ...
- I.MX6 Goodix GT9xx touchscreen driver porting
/************************************************************************ * I.MX6 Goodix GT9xx touch ...
- I.MX6 Ubuntu core porting
/*********************************************************************** * I.MX6 Ubuntu core porting ...
- I.MX6 Linux udev porting
/*********************************************************************** * I.MX6 Linux udev porting ...
- I.MX6 Android iperf3 porting failed
/***************************************************************************** * I.MX6 Android iperf ...
- I.MX6 Android i2c-tools porting
/************************************************************************** * I.MX6 Android i2c-tool ...
- I.MX6 gpio-keys driver hacking
/**************************************************************************** * I.MX6 gpio-keys driv ...
- I.MX6 bq27441 GPOUT interrupt
/******************************************************************** * I.MX6 bq27441 GPOUT interrup ...
随机推荐
- 【转载】Spring中的applicationContext.xml与SpringMVC的xxx-servlet.xml的区别
一直搞不明白两者的区别. 如果使用了SpringMVC,事实上,bean的配置完全可以在xxx-servlet.xml中进行配置.为什么需要applicationContext.xml?一定必须? 一 ...
- win下Maven安装和基本设置
注:本文介绍 Windows 平台上 Maven 的安装.Maven 3 需要运行在 JDK1.4 以上的版本上. 非原创:原创地址 http://www.ibm.com/developerworks ...
- vsftp在REDHAT,CENTOS 5中登录慢的解决办法
vsftp在REDHAT,CENTOS 5中登录慢的解决办法 vsftp在REDHAT,CENTOS 5中不仅登录慢,至少花30秒左右,而且上传文件的速度也受影响, 经过摸索,根本原因在DNS解析上花 ...
- C# foreach循环绑定key数组和value 数组(备用)
<div class="ContextualTab inner_warp clearfix" data-max="2" data-blur=false d ...
- IP地址总结
1.网际协议IP : 网际协议 IP 是 TCP/IP 体系中两个最主要的协议之一.与 IP 协议配套使用的还有四个协议: 地址解析协议 ARP (Address Resolution Protoco ...
- 01 - 编译链接第一个wxWidgets3.0例子
1. preprocessor #define __WXMSW__#define WXUSINGDLL 2. vc10中设置Include dir, lib dir, dll path VC++平台编 ...
- Project Euler 100 : Arranged probability 安排概率
Arranged probability If a box contains twenty-one coloured discs, composed of fifteen blue discs and ...
- NPOI操作EXCEL----------NPOI基础01
来源地址:http://www.cnblogs.com/csqb-511612371/p/4878059.html 先来介绍一下NPOI基本的东西: 1.下载地址:http://npoi.codepl ...
- 通过jcifs.jar 创建远程文件和文件夹
package com.project.remoteUrl;import java.io.File;import java.io.InputStream;import java.io.OutputSt ...
- WPF中Timer与DispatcherTimer类的区别
前几天在WPF中写了一个轨迹回放的功能,我想稍微做过类似项目的,都晓得采用一个时间控件或者时间对象作为调度器,我在这么做的时候,出现了问题,于是将程序中的Timer换成了DispatchTimer,然 ...