Recent Debugging I2C Drive (Pca9544,pcf8574,pi3. Encountered a lot of problems, not timely record, also did not tidy up, the first to solve the problem recorded.
1, the I2C adapter driver and the device-driven resource information in the Board file registration;
2, and then add the drivers to the kernel to compile;
3, compiled kernel image on the board run, the drive are normal.
However, after loading the
compared the linux directory before and after the power plugging, but there was no clue when I looked for it for a long time. Why did I check CPU and memory for commands, check the power supply and there will be no command? Later, I found that this may not exist!
I don't know the driver, I don't know the hardware, and I can't use the scripts written by others. I try to understand it. The following is your understanding. Please refer to Hai Han for errors.
The first thing we can understand is th
Reprinted, please indicate the source and author of the article!
Source: http://blog.csdn.net/xl19862005
By xandy)
Hardware Platform: Ti dm37xxSENSOR: lsm330dlc (ACC + gyr)1. Place the lsm330dlc driver code in the drivers/input/MISC directory, and add the following fields to the kconfig and makefile files in the directory:
KconfigConfig sensors_lsm330dlcTristate "ST's family of MEMS sensor modules of lsm330dlc"Depends on I2C input mach_zt6810Select
Sensor: lsm330dlc (acc + gyr)1. Place the lsm330dlc driver code in the drivers/input/misc directory and add the following fields to the kconfig and Makefile files:
KconfigConfig SENSORS_LSM330DLCTristate "ST's family of MEMS sensor modules of LSM330DLC"Depends on I2C INPUT MACH_ZT6810Select INPUT_POLLDEVDefault yHelpThis driver provides support for the LSM330DLC gyroscope and accelerator connected via I2C
equipment. The basic idea is to implement a parent device for the public part of these functions, in order to share certain system resources and functions, then each child function is implemented as its sub device, so that both resources and code are shared, and a reasonable device hierarchy can be achieved, the main use of the API is: Mfd_add_devices (), Mfd_remove_devices (), mfd_cell_enable (), mfd_cell_disable (), Mfd_clone_cell ().
Back in wm8994-core.c, because WM8994 uses
},{0x7e,0x10},{0x7f,0x28},{0x80,0x36},{0x81,0x44},{0x82,0x52},{0x83,0x60},{0x84,0x6c},{0x85,0x78},{0x86,0x8c},{0x87,0x9e},{0x88,0xbb},{0x89,0xd2},{0x8a,0xe6},};
The above is the address of the register that needs to write ov9650 sequentially and the written value (transmitted using I2C subsystem)
The I2C subsystem transmission has been analyzed. The platform device resources can be initialized in the Bo
Transferred from http://m.blog.csdn.net/article/details?id=51362009
This blog post will explain the TP driver based on the Goodix touch chip. If there are deficiencies, please point out. Initialization of
static int __init tpd_driver_init (void)
{
gtp_info ("MediaTek gt91xx touch Panel driver init\n");
#if defined (tpd_i2c_number)
i2c_register_board_info (Tpd_i2c_number, I2C_TPD, 1);
#else
i2c_register_board_info (0, I2C_TPD, 1);
#endif
if (Tpd_driver_add (tpd_device_driver)
1 Overview
This task is to debug the touch screen driver on the flykar I. mx 6 quqd sabrelite Development Board. The touch screen chip is goodix's gt828 chip and the touch screen interface is I2C.
Operating System: Android 4.0.4
Kernel version: 3.0.15
2 debugging steps 2.1 hardware connection 2.1.1 development board hardware interface
The Development Board has provided independent interfaces for touch screen, which are as follows:
It provides a set
Write a program, use the I2C interface of S3C2410 to read/write the serial EEPROM 24lc04 (I2C interface), write a set of data, read and display it, and check whether it is correct.
Analysis: the I2C of S3C2410 is the master device, and the I2C of EEPROM is the slave device. The operations are written and read by the m
Use MRTG to monitor CPU temperature-Linux Enterprise Application-Linux server application information. The following is a detailed description. It's time to roll again in summer ~ I believe many people are concerned about whether their CPU will go on strike due to overheating? Is there any software under Linux that can monitor the temperature?
That is lm-sensor. How can I install it?
If your core version is 2.2.X
Download the i2c and lm-sensor kits.
Article Summary:
At present, the major motherboard vendors use overclocking software is based on the frequency generator This hardware implementation, and most of the frequency generator is a I2C bus equipment, this article introduces the basic principles of I2C equipment and overclocking the fundamental methods and principles.
Key words: I2C, frequency generat
! [GY-85] (http://images.cnblogs.com/cnblogs_com/hangxin1940/466697/o_gy85.jpg "GY-85 ")
9-axis IMU sensor (GY-85 module) can also be seen as three modules 'itg3205 Three-Axis Gyroscope sensor ''' adxl345 three-axis accelerator tilt sensor ''' hmc5883l Electronic Compass'
The GY-85 Module Interface is I2C and can be easily linked to the Arduino/Raspberry Pi.
# PreparationsMake sure the system has installed the quick2wire library, if not, move here to
Author: Liu Xuhui Raymond reprinted. Please indicate the source
Email:Colorant@163.com
Blog:Http://blog.csdn.net/colorant/
Home page:Http://sites.google.com/site/rgbbones/
Camera Sensor Used on embedded systems, such as mobile phones, is usually controlled by a bus like I2C, and the Controller on the CPU provides the required driver timing, generally, data formats such as YUV and RGB are supported. Some sensor need to be processed by the CP
I2c1 and ds2460 driver Linux 2.6.27 on I2C not 2.6.29 on maturity, can not follow that set to do, such as in the board-smartarm.c to add: 499 // static struct i2c_board_info _ initdata smartarm3250_i2c_ds2460_info [] = {500 // {501 // i2c_board_info ("epc-ds2460", 0x40), 502 //}, 503 //}; 698/* I2C based ds2460 on i2c1 */699 // i2c_register_board_info (0, smartarm3250_i2c_ds2460_info, 700 // array_size (byt
code implementation: drivers/i2c/ BUSSES/I2C-GPIO.C, we need to do only the configuration of the device tree, in the Arch/arm/boot/dts/exynos4412-tiny4412.dts to add software i²c hardware information, you can refer to: documentation/ Devicetree/bindings/i2c/i2c-gpio.txt: 1: i2c_mma7660:
facilitates the design and implementation of the system management software.The overall architecture of a typical IPMI is as follows:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/42/wKioL1X49ZTxH46tAANUQv_feQI521.jpg "title=" Ipmb.png "alt=" Wkiol1x49ztxh46taanuqv_feqi521.jpg "/>As you can see from the above diagram, there may be multiple BMC,BMC on a system that can connect to some non-intelligent cards or sensor, which is connected to the BMC and BMC via IPMB. Interfaces to th
have up to 256 buses, and each bus can support 32 devices, therefore, the device number is five bits, and each device can have a maximum of eight functions, so the function number is three bits. As a result, we can obtain that the IP address of the above PCI device is the No. 1 function of the No. 31 device on the Bus No. 0 in the 0 domain.So what is the above PCI device? The following is the output of the lspci command on my computer:. 0 host bridge: Intel Corporation 82845 845 (Brookdale) chi
introduced. Each PCI domain can have up to 256 buses, and each bus can support 32 devices, therefore, the device number is five bits, and each device can have a maximum of eight functions, so the function number is three bits. As a result, we can obtain that the IP address of the above PCI device is the No. 1 function of the No. 31 device on the Bus No. 0 in the 0 domain. So what is the above PCI device? The following is the output of the lspci command on my computer:. 0 host bridge: Intel Corp
domain can have up to 256 buses, and each bus can support 32 devices, therefore, the device number is five bits, and each device can have a maximum of eight functions, so the function number is three bits. As a result, we can obtain that the IP address of the above PCI device is the No. 1 function of the No. 31 device on the Bus No. 0 in the 0 domain.So what is the above PCI device? The following is the output of the lspci command on my computer:. 0 host bridge: Intel Corporation 82845 845 (Bro
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.