linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Kepplinger <martin.kepplinger@puri.sm>
To: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Cc: "jic23@kernel.org" <jic23@kernel.org>,
	"knaack.h@gmx.de" <knaack.h@gmx.de>,
	"lars@metafoo.de" <lars@metafoo.de>,
	"pmeerw@pmeerw.net" <pmeerw@pmeerw.net>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [PATCH v3 4/5] iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9sd1
Date: Sat, 27 Jul 2019 10:51:50 +0200	[thread overview]
Message-ID: <28c23fd8-7d95-efab-3bd5-ea9cf060b3f8@puri.sm> (raw)
In-Reply-To: <CAA2SeN+xZGykSos=j6rFGM1cJBVEV5BTYSpoKYPWTLKFnEjKtw@mail.gmail.com>

On 25.07.19 18:04, Lorenzo Bianconi wrote:
> 
>     On 25.07.19 09:04, Lorenzo Bianconi wrote:
>     >
>     >     The LSM9DS1's accelerometer / gyroscope unit and it's magnetometer
>     >     (separately
>     >     supported in iio/magnetometer/st_magn*) are located on a separate
>     >     i2c addresses
>     >     on the bus.
>     >
>     >     For the datasheet, see
>     >     https://www.st.com/resource/en/datasheet/lsm9ds1.pdf
>     <https://www.st.com/resource/en/datasheet/lsm9ds1.pdf>
>     >     <https://www.st.com/resource/en/datasheet/lsm9ds1.pdf
>     <https://www.st.com/resource/en/datasheet/lsm9ds1.pdf>>
>     >
>     >     Treat it just like the LSM6* devices and, despite it's name,
>     hook it up
>     >     to the st_lsm6dsx driver, using it's basic functionality.
>     >
>     >     Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm
>     <mailto:martin.kepplinger@puri.sm>
>     >     <mailto:martin.kepplinger@puri.sm
>     <mailto:martin.kepplinger@puri.sm>>>
>     >
>     >
>     >
>     >  Hi Martin,
>     >
>     > could you please check if LSM9DS1 and LSM6DS0 have a common
>     register map
>     > for the supported features (I think so)? If so I think it is better to
>     > rename LSM9DS1 in LSM6DS0 since st_lsm6dsx supports just acc and gyro
>     > (we will support LSM9DS1 with a proper dts configuration)
>     >
>     > Regards,
>     > Lorenzo
> 
>     Hi Lorenzo,
> 
>     The register mappings of LSM6DSO and LSM9DS1 don't match (gyro out for
>     example). The LSM9DS1 magnetometer is a *different* device on the bus
>     than accel/gyro (despite being on the same chip). That one is already
>     supported in drivers/iio/magnetometer/st_magn_*
> 
>     So LSM9DS1 in the imu driver (lsm6dsx) can also just support accel and
>     gyro in order to complete the support for the device.
> 
>     Besides, that's the device I have and test here. I can't really name it
>     differently.
> 
> 
> I mean LSM6DS0, not LSMDSO..the datasheet is not on st website, but you
> can find easily on the web..AFAIK this device shares the registermap
> with LSM9DS1 imu device. So I guess we can rename the struct from
> st_lsm9ds1 (which is not just an imu) to st_lsm6ds0. I guess it is more
> correct. 
> 

Seems like they are equal enough (LSM6DS0 has only one interrupt line,
but we should be able to add it anyways I guess).

Makes sense to name things after that then, yes. At least in code. I'll
update next week.

thanks,
                            martin



  parent reply	other threads:[~2019-07-27  8:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-25  5:31 [PATCH v3 0/5] iio: imu: st_lsm6dsx: Add support for LSM9DS1 Martin Kepplinger
2019-07-25  5:31 ` [PATCH v3 1/5] iio: imu: st_lsm6dsx: move odr_table in st_lsm6dsx_sensor_settings Martin Kepplinger
2019-07-25  5:31 ` [PATCH v3 2/5] iio: imu: st_lsm6dsx: move fs_table " Martin Kepplinger
2019-07-25  5:31 ` [PATCH v3 3/5] iio: imu: st_lsm6sdx: move register definitions to sensor_settings struct Martin Kepplinger
2019-07-25  5:31 ` [PATCH v3 4/5] iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9sd1 Martin Kepplinger
     [not found]   ` <CAA2SeNK-pjkSWVsrv5dehEJbakZqR0oPF3DQ5mzhiiOD3Npxkg@mail.gmail.com>
2019-07-25  8:14     ` Martin Kepplinger
     [not found]       ` <CAA2SeN+xZGykSos=j6rFGM1cJBVEV5BTYSpoKYPWTLKFnEjKtw@mail.gmail.com>
2019-07-27  8:51         ` Martin Kepplinger [this message]
2019-07-27 17:48   ` Jonathan Cameron
2019-07-28  6:04     ` Martin Kepplinger
2019-07-28  8:34       ` Jonathan Cameron
2019-07-28 17:52         ` Lorenzo Bianconi
2019-08-05 13:44           ` Jonathan Cameron
2019-07-25  5:31 ` [PATCH v3 5/5] dt-bindings: iio: imu: st_lsm6dsx: add lsm9ds1 device bindings Martin Kepplinger

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=28c23fd8-7d95-efab-3bd5-ea9cf060b3f8@puri.sm \
    --to=martin.kepplinger@puri.sm \
    --cc=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=lorenzo.bianconi83@gmail.com \
    --cc=pmeerw@pmeerw.net \
    /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).