From: Conor Dooley <conor@kernel.org>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
denis.ciocca@st.com, linus.walleij@linaro.org,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de
Subject: Re: [PATCH] dt-bindings: iio: st-sensors: Add IIS2MDC magnetometer
Date: Wed, 21 Feb 2024 19:27:45 +0000 [thread overview]
Message-ID: <20240221-imitate-molar-81d93285ac77@spud> (raw)
In-Reply-To: <20240221191644.5r3ylr5w3cnfnrzj@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 1689 bytes --]
On Wed, Feb 21, 2024 at 08:16:44PM +0100, Marco Felsch wrote:
> On 24-02-21, Conor Dooley wrote:
> > On Wed, Feb 21, 2024 at 06:58:10PM +0100, Marco Felsch wrote:
> > > Add the iis2mdc magnetometer support which is equivalent to the lis2mdl.
> > >
> > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > > ---
> > > Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> > > index fff7e3d83a02..ee593c8bbb65 100644
> > > --- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> > > +++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> > > @@ -64,6 +64,7 @@ properties:
> > > - st,lsm9ds0-gyro
> > > - description: STMicroelectronics Magnetometers
> > > enum:
> > > + - st,iis2mdc
> >
> > Without a fallback compatible to the equivilent device, how does a
> > driver bind to this device?
>
> I skimed the datasheets and the driver already handles this binding
> exactly the same as the st,lis2mdl, so my assumption is they do match.
>
> Why do I you think we need a fallback compatible here?
I didn't look at the driver, there was no mention of the driver already
having (undocumented) support for it. Since there was no driver change
alongside this patch, I thought you'd need a fallback compatible to
allow the driver to match against a compatible it recognises.
Besides, having fallback compatibles is the norm when one device has the
same programming model as another.
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-02-21 19:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 17:58 [PATCH] dt-bindings: iio: st-sensors: Add IIS2MDC magnetometer Marco Felsch
2024-02-21 18:54 ` Conor Dooley
2024-02-21 19:16 ` Marco Felsch
2024-02-21 19:27 ` Conor Dooley [this message]
2024-02-21 19:45 ` Marco Felsch
2024-02-21 21:37 ` Conor Dooley
2024-02-22 8:47 ` Marco Felsch
2024-02-22 10:29 ` Conor Dooley
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=20240221-imitate-molar-81d93285ac77@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=denis.ciocca@st.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kernel@pengutronix.de \
--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=m.felsch@pengutronix.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