Skip to content
Commit 2bf61e51 authored by Yiding Jia's avatar Yiding Jia Committed by Benjamin Cabé
Browse files

drivers: sensor: Fix TMAG5273/TMAG3001 by adding a TMAG3001 compatible



Fixes issue introduced in #76460

The previous code attempted to detect whether TMAG5273 or TMAG3001 was
connected based on DEVICE ID register. This doesn't work as the bits that
denote the version on one part are undefined on the other part, and cannot
be relied on to be zero.

This commit adds a TMAG3001 compatible which (for now) is just derived from
the TMAG5273 compatible. This allows TMAG3001 to be specified directly in
the DT. The driver code is updated to support both compatibles.

Signed-off-by: default avatarYiding Jia <yiding.jia@gmail.com>
parent cc042a6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment