1. Home
  2. Software Development for MediaTek X20
  3. Sensor Porting Guide
  4. 5.Sensor Compatible

5.Sensor Compatible

5.1 Detection principle

– Using i2c connection and device information to detect the different


– If using one i2c address to connect device fail, then don’t choose this


– When i2c connection is success, then read the device information. If the

information is right, then choose this device. Otherwise, don’t choose it.

5.2 There use accelerometer as example

Step 1:

– The first sensor driver do not need change.

– It still use DCT to configure the first sensor’s i2c address.

Step 2:

– Modify the second sensor driver.


Step 3:

– Configure the second sensor’s i2c address in $(project).dts


Step 4:

– Configure the customization parameter for second sensor in $(project).dts


Was this article helpful to you? Yes No

How can we help?