linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Opdenacker <michael.opdenacker@rootcommit.com>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Anshul Dalal <anshulusr@gmail.com>,
	linux-input@vger.kernel.org, linux-i2c@vger.kernel.org
Cc: michael.opdenacker@rootcommit.com
Subject: Re: I2C: can't detect Adafruit Mini I2C Gamepad on Linux - other devices detected
Date: Fri, 11 Apr 2025 17:34:43 +0000 (UTC)	[thread overview]
Message-ID: <57906b7b-5d4a-4571-a5b2-1ed51ff09824@rootcommit.com> (raw)
In-Reply-To: <Z_k74yFvIHRy7UpP@shikoro>

Hi Wolfram

Thanks for your help!

On 4/11/25 17:57, Wolfram Sang wrote:
>> Plus "i2cdetect -r <num>" shows the device as UU for address 0x50, as
>> usually happens with a driver is loaded.
> Always. The address is blocked for userspace in any case.
>
>> I thought that connected I2C devices always showed in i2cdetect output,
>> whether they are declared in the device tree and have a driver or not.
> This is a valid expectation. Since you used 'i2cdetect -r', it means
> that the device does not react to the read_byte method. Very strange (if
> not even against the specs). Did you try without '-r' to use
> SMBUS_QUICK? What driver are we talking about anyhow?


Without the driver loaded, I get this...

~ # i2cdetect 5
i2cdetect: warning: can't use SMBus quick write command, will skip some 
addresses
i2cdetect: WARNING! This program can confuse your I2C bus
Continue? [y/N] y
      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60:
70:
~ #
~ # i2cdetect -r 5
i2cdetect: WARNING! This program can confuse your I2C bus
Continue? [y/N] y
      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

When the driver is loaded, there's UU as expected for address 0x50.

The driver is drivers/input/joystick/adafruit-seesaw.c
Cheers
Michael.

-- 
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/


  reply	other threads:[~2025-04-11 17:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-11  5:21 I2C: can't detect Adafruit Mini I2C Gamepad on Linux - other devices detected Michael Opdenacker
2025-04-11 15:44 ` Michael Opdenacker
2025-04-11 15:57   ` Wolfram Sang
2025-04-11 17:34     ` Michael Opdenacker [this message]
2025-04-11 19:21       ` Wolfram Sang

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=57906b7b-5d4a-4571-a5b2-1ed51ff09824@rootcommit.com \
    --to=michael.opdenacker@rootcommit.com \
    --cc=anshulusr@gmail.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=wsa+renesas@sang-engineering.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).