iio: sx9324: Fix default precharge internal resistance register
Fix the default value for the register that set the resistance:
it has to be 0x10 per datasheet.
Fixes: 4c18a890df
("iio:proximity:sx9324: Add SX9324 support")
Cc: stable@vger.kernel.org
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20220406165011.10202-2-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
89a01cd688
commit
d79478a79c
@ -70,7 +70,8 @@
|
||||
#define SX9324_REG_AFE_PH2 0x2a
|
||||
#define SX9324_REG_AFE_PH3 0x2b
|
||||
#define SX9324_REG_AFE_CTRL8 0x2c
|
||||
#define SX9324_REG_AFE_CTRL8_RESFILTN_4KOHM 0x02
|
||||
#define SX9324_REG_AFE_CTRL8_RESERVED 0x10
|
||||
#define SX9324_REG_AFE_CTRL8_RESFILTIN_4KOHM 0x02
|
||||
#define SX9324_REG_AFE_CTRL9 0x2d
|
||||
#define SX9324_REG_AFE_CTRL9_AGAIN_1 0x08
|
||||
|
||||
@ -795,7 +796,8 @@ static const struct sx_common_reg_default sx9324_default_regs[] = {
|
||||
{ SX9324_REG_AFE_PH2, 0x1a },
|
||||
{ SX9324_REG_AFE_PH3, 0x16 },
|
||||
|
||||
{ SX9324_REG_AFE_CTRL8, SX9324_REG_AFE_CTRL8_RESFILTN_4KOHM },
|
||||
{ SX9324_REG_AFE_CTRL8, SX9324_REG_AFE_CTRL8_RESERVED |
|
||||
SX9324_REG_AFE_CTRL8_RESFILTIN_4KOHM },
|
||||
{ SX9324_REG_AFE_CTRL9, SX9324_REG_AFE_CTRL9_AGAIN_1 },
|
||||
|
||||
{ SX9324_REG_PROX_CTRL0,
|
||||
|
Loading…
Reference in New Issue
Block a user