Re: [PATCH 2/2] iio: magnetometer: add Infineon TLE493D-W2B6 driver

From: Viral Patel

Date: Sun Nov 08 2026 - 09:48:36 EST


On Fri, 6 Nov 2026 at 19:13, Victor Chernyakin wrote:
> > Based on the TLE493D-W2B6 User Manual v1.11 and Datasheet v1.2.
> >
> > Datasheet: https://www.infineon.com/assets/row/public/documents/30/49/infineon-tle493d-w2b6-datasheet-en.pdf
>
> You should link to the user manual too, since that's where most of
> the information relevant to programming the driver is.
> I see that it's not available from the Infineon website without a login,
> but it's easy to find elsewhere:
>
> https://assets.sourcengine.com/datasheets/c9ebe749-34ab-4924-ab2b-aa7d4dd15e25.pdf

Agreed, thanks. In v2 I'll link Infineon's own copy:

Register details are from the TLE493D-W2B6 User Manual v1.11, which
Infineon provides after a free registration:
https://www.infineon.com/gated/infineon-tle493d-w2b6-usermanual-en_dc6d4e62-cde1-4d4b-87bb-c3368e25e35c

I'd rather use the vendor URL than a third-party mirror, which might
not stay up.

> > +/* I2C addresses selected by IICadr, i.e. the default of variants A0 to A3 */
> > +static const u8 tle493d_i2c_addrs[] = { 0x35, 0x22, 0x78, 0x44 };
>
> The manual seems to list these addresses as 0x6A, 0x44, 0xF0, 0x88 (Table 4,
> p. 14). Can you explain how you go from those values to the ones in
> the code?

Table 4 gives the addresses in 8-bit form, that is, the 7-bit address
shifted left by one with the R/W bit in bit 0. Linux uses 7-bit
addresses, so 0x6A >> 1 = 0x35, 0x44 >> 1 = 0x22, 0xF0 >> 1 = 0x78
and 0x88 >> 1 = 0x44. The hardware agrees: the driver probes my A0
part at 0x35 on a Pi 5.

I'll add that to the comment in v2.

Thanks,
Viral