From: Michael Opdenacker <michael.opdenacker@rootcommit.com>
To: Anshul Dalal <anshulusr@gmail.com>
Cc: michael.opdenacker@rootcommit.com, linux-input@vger.kernel.org,
linux-i2c@vger.kernel.org
Subject: Re: I2C: can't detect Adafruit Mini I2C Gamepad on Linux - other devices detected
Date: Fri, 11 Apr 2025 15:44:36 +0000 (UTC) [thread overview]
Message-ID: <8d0c8005-57fa-4883-8a01-343ab9170643@rootcommit.com> (raw)
In-Reply-To: <24f08a7b-4a3c-4cd6-82b7-0f2c9ab4bbef@rootcommit.com>
Greetings
On 4/11/25 07:21, Michael Opdenacker wrote:
> Hi Anshul
>
> I contact you as the maintainer for the Adafruit Mini I2C Gamepad driver.
>
> I'm trying to use the Adafruit Seesaw I2C gamepad in my embedded Linux
> training courses, to demonstrate driving I2C hardware, and the gamepad
> would be perfect to play an ASCII Pac-Man clone
> (https://github.com/michaelopdenacker/myman
> <https://github.com/michaelopdenacker/myman>).
>
> Even before your driver is loaded, the device has to be detected. My
> problem is the gamepad is never detected on Linux (running "i2cdetect
> -r <num>"), while other I2C devices connected to the same bus are,
> proving that the bus is correctly enabled. This happens on all these
> boards running recent kernels:
> - BeaglePlay (Linux 6.14.2!)
> - BeagleBone Black
> - Raspberry Pi5
>
> I double checked my gamepads (I have 4 of them) and wires: they work
> fine on Arduino Uno.
>
> Any clue why none of my 4 gamepads are never detected while two other
> types of I2C devices are detected on the same bus, and the same
> gamepads work on Arduino Uno?
Some progress here... On BeaglePlay, which is my primary target, I
realized that if I declare the device in the device tree AND load the
driver for the device, then the device seems to work fine. When I press
the buttons, I get data in /dev/input/event<x>.
Plus "i2cdetect -r <num>" shows the device as UU for address 0x50, as
usually happens with a driver is loaded.
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.
Cheers
Michael.
--
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
next prev parent reply other threads:[~2025-04-11 15:44 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 [this message]
2025-04-11 15:57 ` Wolfram Sang
2025-04-11 17:34 ` Michael Opdenacker
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=8d0c8005-57fa-4883-8a01-343ab9170643@rootcommit.com \
--to=michael.opdenacker@rootcommit.com \
--cc=anshulusr@gmail.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
/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).