From: Hans de Goede <hdegoede@redhat.com>
To: Marius Hoch <mail@mariushoch.de>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Denis Ciocca <denis.ciocca@st.com>,
Linus Walleij <linus.walleij@linaro.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/6] iio: st_sensors: Add lsm303d support
Date: Fri, 21 Apr 2023 09:55:22 +0200 [thread overview]
Message-ID: <fef45f01-81ee-c973-3d4f-86d537df98b6@redhat.com> (raw)
In-Reply-To: <3eb3de24-41b4-9566-9b11-a12d21904793@redhat.com>
Hi Marius,
On 4/16/23 22:19, Hans de Goede wrote:
<snip>
> 2: There are some other unsupported sensors on these models too,
> perhaps you are interested in adding support for these too?
>
> Here are my personal notes on this:
> -Light sensor should work with drivers/iio/light/al3320a.c
> https://github.com/JideTechnology/remixos-kernel/commit/c52d55b4bd907e87b7b115b3943219f3e089a77a
>
> -MXM1120 HALL sensor, have datasheet, measures angle of kickstand thingie, use
> for SW_TABLET_MODE. Do a pdx86 driver just for the Tab 2 which checks that the
> kick stand is out *and* the BT keyboard is paired, in that case report
> SW_TABLET_MODE=0, in all other cases report SW_TABLET_MODE=1 ??
> For the commit msg:
> Datasheet available here: http://haechitech.com/tech-support/
> Requires creating an account, once you have an account you can immediately download
> the provided datasheets (or let me know if you want me to email you a copy)
A quick follow up on this, since you said you were going to take a look.
I think with the way bluetooth works under Linux, with a bunch of the work
being done in userspace that figuring out if the BT keyboard is paired is
not going to work in kernelspace. So I think the best we can do here is
simply export the angle of the kickstand as an iio angle sensor.
Regards,
Hans
prev parent reply other threads:[~2023-04-21 7:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-15 23:11 [PATCH v3 0/6] iio: st_sensors: Add lsm303d support Marius Hoch
2023-04-15 23:11 ` [PATCH v3 1/6] iio: accel: st_accel: Add LSM303D Marius Hoch
2023-04-21 8:41 ` Linus Walleij
2023-04-15 23:11 ` [PATCH v3 2/6] iio: magnetometer: " Marius Hoch
2023-04-21 8:41 ` Linus Walleij
2023-04-15 23:11 ` [PATCH v3 3/6] iio: st_sensors: Add lsm303d support to the LSM9DS0 IMU driver Marius Hoch
2023-04-21 8:42 ` Linus Walleij
2023-04-15 23:11 ` [PATCH v3 4/6] iio: st_sensors: Add ACPI support for lsm303d " Marius Hoch
2023-04-21 8:43 ` Linus Walleij
2023-05-02 14:51 ` Marius Hoch
2023-05-07 13:50 ` Jonathan Cameron
2023-04-15 23:11 ` [PATCH v3 5/6] iio: Comment that the LSM303D also has the Magnetometer DRDY Marius Hoch
2023-04-21 8:43 ` Linus Walleij
2023-04-15 23:11 ` [PATCH v3 6/6] dt-bindings: iio: st-sensors: Add LSM303D accelerometer+magnetometer Marius Hoch
2023-04-16 7:29 ` Krzysztof Kozlowski
2023-04-16 12:23 ` Jonathan Cameron
2023-04-16 20:19 ` [PATCH v3 0/6] iio: st_sensors: Add lsm303d support Hans de Goede
2023-04-20 17:21 ` Marius Hoch
2023-04-21 7:55 ` Hans de Goede [this message]
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=fef45f01-81ee-c973-3d4f-86d537df98b6@redhat.com \
--to=hdegoede@redhat.com \
--cc=denis.ciocca@st.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@mariushoch.de \
--cc=robh+dt@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).