linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gregor Riepl <onitake@gmail.com>
To: sergk sergk2mail <sergk.admin@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: How to use ACPI for touchscreen
Date: Wed, 2 Mar 2016 17:49:32 +0100	[thread overview]
Message-ID: <56D7199C.8040808@gmail.com> (raw)
In-Reply-To: <CA+V1LzoZ9DEJsqKNggQHQ9B_tW8ZPMMuydsBma_jDdsKEJ6G0Q@mail.gmail.com>


> Probably I know the reason of this - I have taken chuwi vi8 with
> gsl1680, after modprobe i2c-dev, i2cdetect -r 3  - detects gsl1680 on
> 0x40 PERMANENTLY! In Android touch is on i2c-4, but on the same
> address.

The differing bus assignment by be caused by slightly different loading order
or DeviceTree or platform driver configurations.

> AFAIK - i2c devices could switch bus number but not their port on bus,
> this means that if you have chipone icn85xx it should answer on 0x48
> on one of the i2c bus.
> Am I right?

Yes, the device address is normally hardcoded into the device itself.
So, unless there is an internal register or a chip pin to change, it will
always be the same.
And since I2C addressing is standardised, the physical and logical addresses
are identical.

As mentioned above, the logical I2C bus number may change depending on certain
factors. The physical bus pins are still the same though.

> In case of Chuwi Vi10 with Chipone icn8528 situation with i2cdetect is
> very very strange.
> On kernels 4.4.2 and 4.0.1 - modprobe i2c-dev and then i2cdetect -r X
> (1,2,3,4) does NOT!!!!!!!! Detect NOTHING permanently on 0x48 on any
> bus!
> This make me confused completely! To wake up something it should be
> visible on i2c bus but it is NOT!

It's possible that the device simply doesn't answer until the wakeup pin has
turned it on. In the case of the Silead chips, I think they are already turned
on at system boot and stay on until they are shut down via PM commands.

So you definitely need to configure the GPIO pin, send the wakeup sequence,
and then you should be able to communicate with the chip.


  reply	other threads:[~2016-03-02 16:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-28 22:30 How to use ACPI for touchscreen sergk sergk2mail
2016-03-01 10:02 ` Gregor Riepl
2016-03-01 16:30   ` sergk sergk2mail
2016-03-01 16:55     ` sergk sergk2mail
2016-03-02 17:52       ` Dmitry Torokhov
2016-03-02 18:13         ` sergk sergk2mail
2016-03-02 18:25           ` Gregor Riepl
2016-03-02 19:00             ` sergk sergk2mail
2016-03-02 19:01               ` sergk sergk2mail
2016-03-02 19:11               ` sergk sergk2mail
2016-03-02 21:19           ` Dmitry Torokhov
2016-03-02 23:01             ` sergk sergk2mail
2016-03-13  0:15               ` sergk sergk2mail
2016-03-01 22:32   ` sergk sergk2mail
2016-03-01 22:56     ` Gregor Riepl
2016-03-02 12:50       ` sergk sergk2mail
2016-03-02 13:07         ` Gregor Riepl
2016-03-02 15:17           ` sergk sergk2mail
2016-03-02 16:49             ` Gregor Riepl [this message]
2016-03-02 15:56           ` sergk sergk2mail

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56D7199C.8040808@gmail.com \
    --to=onitake@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=sergk.admin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).