mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Wolfram Sang <wsa@kernel.org>
Cc: "Jean Delvare" <jdelvare@suse.com>,
	linux-i2c@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Dell.Client.Kernel@dell.com, "Pali Rohár" <pali@kernel.org>
Subject: Re: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration
Date: Tue, 28 Feb 2023 11:56:52 +0100	[thread overview]
Message-ID: <1669a3d8-1d19-e91b-8f6e-36f5037fff47@molgen.mpg.de> (raw)
In-Reply-To: <Y/3cYL0s1Ul9fgR+@ninjato>

Dear Wolfram,


Thank you again for the prompt reply.

Am 28.02.23 um 11:50 schrieb Wolfram Sang:

>> So, 29 shows up in the dump. Let’s see if I am going to find the time to
>> build a Linux kernel. (I couldn’t find a module parameter to force loading
>> at a specific address.)
> 
> We do this via sysfs:
> 
> # echo lis3lv02d 0x29 > /sys/bus/i2c/devices/i2c-6/new_device
> 
> (Depending on your system, you might need to ensure the lis3 driver is
> loaded before)
> 
> Hope it works!

It does. After your command, Linux logs:

```
[ 2110.787000] i2c i2c-6: new_device: Instantiated device lis3lv02d at 0x29
[ 2110.791932] lis3lv02d_i2c 6-0029: supply Vdd not found, using dummy 
regulator
[ 2110.791981] lis3lv02d_i2c 6-0029: supply Vdd_IO not found, using 
dummy regulator
[ 2110.809233] lis3lv02d: 8 bits 3DC sensor found
[ 2110.900668] input: ST LIS3LV02DL Accelerometer as 
/devices/platform/lis3lv02d/input/input23
```

I can cook up a patch, if you want.


Kind regards,

Paul

  reply	other threads:[~2023-02-28 10:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-27 14:23 Paul Menzel
2023-02-27 19:27 ` Wolfram Sang
2023-02-28 10:39   ` Paul Menzel
2023-02-28 10:50     ` Wolfram Sang
2023-02-28 10:56       ` Paul Menzel [this message]
2023-02-28 11:00         ` Wolfram Sang
2023-07-19 19:32           ` Pali Rohár

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=1669a3d8-1d19-e91b-8f6e-36f5037fff47@molgen.mpg.de \
    --to=pmenzel@molgen.mpg.de \
    --cc=Dell.Client.Kernel@dell.com \
    --cc=jdelvare@suse.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pali@kernel.org \
    --cc=wsa@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

all inboxes | Powered by JetHome®