i.MX6UL Linux BSP TSC Driver consistency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6UL Linux BSP TSC Driver consistency

1,735 Views
yurirellosa
Contributor IV


Hello

We are using the driver file below for Touch Screen input

\drivers\input\touchscreen\imx6ul_tsc.c

The input works fine and there are no problem with the coordinates received.

I would like to add some customization and functions to the driver but I have noticed some inconsistency

with the ADC registers and those written in the datasheet.

Below is the definitions for the register offsets

#define REG_ADC_HC0     0x00

#define REG_ADC_HC1     0x04

#define REG_ADC_HC2     0x08

#define REG_ADC_HC3     0x0C

#define REG_ADC_HC4     0x10

#define REG_ADC_HS      0x14

#define REG_ADC_R0      0x18

#define REG_ADC_CFG     0x2C

#define REG_ADC_GC      0x30

#define REG_ADC_GS      0x34

[HC0] and [HC1] and fine and consistent with the datasheet, but the rest I have no idea where they are based from.

There is no [HC2~4] and for example [HS]'s offset begins from 0x08 (Chapter 13.6.3 page 411) not 0x14

Am I missing some notes or is there some revisions to the datasheet?

Best Regards

Yuri

Labels (2)
7 Replies

1,166 Views
ko-hey
Senior Contributor II

Hi jimmychan‌, durmu?kurtulu?‌, Yuri

I have same question.

Do you have any update for the register ?

Ko-hey

0 Kudos

1,166 Views
jimmychan
NXP TechSupport
NXP TechSupport

We will update the RM.

For your reference, attach is the correct register information for ADC.

0 Kudos

1,166 Views
ko-hey
Senior Contributor II

Hi jimmychan

Thank you for providing the information.

Ko-hey

0 Kudos

1,166 Views
yurirellosa
Contributor IV

If IMX6UL datasheet is not reliable, does anyone know what are the "proper" register offset for:

1. ADC_CV (Compare value register, +20h offset in datasheet)

2. ADC_OFS (Offset correction value register, +24h offset in datasheet)

3. ADC_CAL (Calibration value register, +28h offset in datasheet)

Thanks

0 Kudos

1,166 Views
jimmychan
NXP TechSupport
NXP TechSupport

I will ask the expert and clarify this for you

0 Kudos

1,166 Views
yurirellosa
Contributor IV

Hello Jimmy

Any clarifications regarding this matter?

I have also tried this on a different system (iTron OS), following the registers from the Reference Manual (Document Number: IMX6ULRM, Rev. 1, 04/2016 ) results for the TSC module to not function.

Following the "mysterious" register addresses from the Linux driver makes it function.

Best Regards

Yuri

0 Kudos

1,166 Views
durmus
Contributor IV

So, any clarification yet?

0 Kudos