iio: accel: fxls8962af: add fxls8967af and fxls8974cf
Subsystems (3)
Frank Li
maintainerv2 cover iio: accel: fxls8962af: add fxls8967af and fxls8974cf
fxls8967af and fxls8974cf are similar with fxls8962af, only change ID.
---
Changes in v2:
- make nxp,fxls8967af and nxp,fxls8974cf fallback to nxp,fxls8962af.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Haibo Chen (1):
iio: accel: fxls8962af: add fxls8974cf support
Han Xu (3):
dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf'
iio: accel: fxls8962af: add fxls8967af support
.../devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 14 +++++++++++--- drivers/iio/accel/fxls8962af-core.c | 14 ++++++++++++++ drivers/iio/accel/fxls8962af-i2c.c | 2 ++ drivers/iio/accel/fxls8962af.h | 2 ++ 4 files changed, 29 insertions(+), 3 deletions(-)
---
base-commit: bd05b9a700c10473c2f52bf12c5c5938c30e80b0
change-id: 20241113-fxls-d93a888889f7
Best regards,
---
Frank Li <[email protected]>
Frank Li
maintainerPATCH v2 1/4 dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
From: Han Xu <[email protected]>
Add 'nxp,fxls8967af' compatible for the FXLS8967AF sensor, falling back to 'nxp,fxls8962af' as the only difference is the ID.
--- .../devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml +9 -3
@@ -14,12 +14,18 @@ description: | SPI and I2C interface. https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf + https://www.nxp.com/docs/en/data-sheet/FXLS8967AF.pdf properties: compatible: - enum: - - nxp,fxls8962af - - nxp,fxls8964af + oneOf: + - enum: + - nxp,fxls8962af + - nxp,fxls8964af + - items: + - enum: + - nxp,fxls8967af + - const: nxp,fxls8962af reg: maxItems: 1
Signature · 1 line
2.34.1
Re: [PATCH v2 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
Quoted 5 lines · Frank Li
From: Han Xu <[email protected]>
Add 'nxp,fxls8967af' compatible for the FXLS8967AF sensor, falling back to 'nxp,fxls8962af' as the only difference is the ID.
Quoted 7 lines
Signed-off-by Han Xu <[email protected]>Reviewed-by Sean Nyekjaer <[email protected]>Signed-off-by Frank Li <[email protected]>--- .../devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Frank Li
maintainerPATCH v2 2/4 dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf'
In reply to Frank LiFrom: Han Xu <[email protected]>
Add 'nxp,fxls8974cf' compatible for the FXLS8974CF sensor, falling back to 'nxp,fxls8962af' as the only difference is the ID.
--- Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml +2 -0
@@ -15,6 +15,7 @@ description: | https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf https://www.nxp.com/docs/en/data-sheet/FXLS8967AF.pdf + https://www.nxp.com/docs/en/data-sheet/FXLS8974CF.pdf properties: compatible:
@@ -25,6 +26,7 @@ properties: - items: - enum: - nxp,fxls8967af + - nxp,fxls8974cf - const: nxp,fxls8962af reg:
Signature · 1 line
2.34.1
Re: [PATCH v2 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf'
Quoted 5 lines · Frank Li
From: Han Xu <[email protected]>
Add 'nxp,fxls8974cf' compatible for the FXLS8974CF sensor, falling back to 'nxp,fxls8962af' as the only difference is the ID.
Quoted 7 lines
Signed-off-by Han Xu <[email protected]>Reviewed-by Sean Nyekjaer <[email protected]>Signed-off-by Frank Li <[email protected]>--- Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 2 ++ 1 file changed, 2 insertions(+)
Frank Li
maintainerPATCH v2 3/4 iio: accel: fxls8962af: add fxls8974cf support
In reply to Frank LiFrom: Haibo Chen <[email protected]>
fxls8974cf is similar with fxls8962af, the only difference is the device id change to 0x86.
--- drivers/iio/accel/fxls8962af-core.c | 7 +++++++ drivers/iio/accel/fxls8962af-i2c.c | 1 + drivers/iio/accel/fxls8962af.h | 1 + 3 files changed, 9 insertions(+)
drivers/iio/accel/fxls8962af-core.c +7 -0
@@ -129,6 +129,7 @@#define FXLS8962AF_DEVICE_ID 0x62#define FXLS8964AF_DEVICE_ID 0x84 +#define FXLS8974CF_DEVICE_ID 0x86/* Raw temp channel offset */ #define FXLS8962AF_TEMP_CENTER_VAL 25
@@ -766,6 +767,12 @@ static const struct fxls8962af_chip_info fxls_chip_info_table[] = { .channels = fxls8962af_channels, .num_channels = ARRAY_SIZE(fxls8962af_channels), }, + [fxls8974cf] = { + .chip_id = FXLS8974CF_DEVICE_ID, + .name = "fxls8974cf", + .channels = fxls8962af_channels, + .num_channels = ARRAY_SIZE(fxls8962af_channels), + }, }; static const struct iio_info fxls8962af_info = {
drivers/iio/accel/fxls8962af-i2c.c +1 -0
@@ -30,6 +30,7 @@ static int fxls8962af_probe(struct i2c_client *client)static const struct i2c_device_id fxls8962af_id[] = { {"fxls8962af" , fxls8962af }, {"fxls8964af" , fxls8964af }, + {"fxls8974cf" , fxls8974cf }, {} };MODULE_DEVICE_TABLE (i2c, fxls8962af_id);
drivers/iio/accel/fxls8962af.h +1 -0
@@ -11,6 +11,7 @@ struct device;enum { fxls8962af, fxls8964af, + fxls8974cf, };int fxls8962af_core_probe (struct device *dev,struct regmap *regmap,int irq);
Signature · 1 line
2.34.1
Frank Li
maintainerPATCH v2 4/4 iio: accel: fxls8962af: add fxls8967af support
In reply to Frank LiFrom: Han Xu <[email protected]>
fxls8967af is similar with fxls8962af, the only difference is the device id change to 0x87.
--- drivers/iio/accel/fxls8962af-core.c | 7 +++++++ drivers/iio/accel/fxls8962af-i2c.c | 1 + drivers/iio/accel/fxls8962af.h | 1 + 3 files changed, 9 insertions(+)
drivers/iio/accel/fxls8962af-core.c +7 -0
@@ -130,6 +130,7 @@#define FXLS8962AF_DEVICE_ID 0x62#define FXLS8964AF_DEVICE_ID 0x84#define FXLS8974CF_DEVICE_ID 0x86 +#define FXLS8967AF_DEVICE_ID 0x87/* Raw temp channel offset */ #define FXLS8962AF_TEMP_CENTER_VAL 25
@@ -767,6 +768,12 @@ static const struct fxls8962af_chip_info fxls_chip_info_table[] = { .channels = fxls8962af_channels, .num_channels = ARRAY_SIZE(fxls8962af_channels), }, + [fxls8967af] = { + .chip_id = FXLS8967AF_DEVICE_ID, + .name = "fxls8967af", + .channels = fxls8962af_channels, + .num_channels = ARRAY_SIZE(fxls8962af_channels), + }, [fxls8974cf] = { .chip_id = FXLS8974CF_DEVICE_ID, .name = "fxls8974cf",
drivers/iio/accel/fxls8962af-i2c.c +1 -0
@@ -30,6 +30,7 @@ static int fxls8962af_probe(struct i2c_client *client)static const struct i2c_device_id fxls8962af_id[] = { {"fxls8962af" , fxls8962af }, {"fxls8964af" , fxls8964af }, + {"fxls8967af" , fxls8967af }, {"fxls8974cf" , fxls8974cf }, {} };
drivers/iio/accel/fxls8962af.h +1 -0
@@ -11,6 +11,7 @@ struct device;enum { fxls8962af, fxls8964af, + fxls8967af, fxls8974cf, };
Signature · 1 line
2.34.1
Jonathan Cameron
maintainerQuoted 3 lines · On Fri, 15 Nov 2024 15:23:56 -0500 Frank Li <[email protected]> wrote:
fxls8967af and fxls8974cf are similar with fxls8962af, only change ID.
Signed-off-by Frank Li <[email protected]>
Applied to the togreg branch of iio.git and initially pushed out as testing for 0-day to take a look. I'll rebase on rc1 once available.
Thanks,
Jonathan
Quoted 27 lines
---
Changes in v2:
- make nxp,fxls8967af and nxp,fxls8974cf fallback to nxp,fxls8962af.
- Link to v1: https://lore.kernel.org/r/[email protected]---
Haibo Chen (1):
iio: accel: fxls8962af: add fxls8974cf supportHan Xu (3):
dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf'
iio: accel: fxls8962af: add fxls8967af support.../devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 14 +++++++++++--- drivers/iio/accel/fxls8962af-core.c | 14 ++++++++++++++ drivers/iio/accel/fxls8962af-i2c.c | 2 ++ drivers/iio/accel/fxls8962af.h | 2 ++ 4 files changed, 29 insertions(+), 3 deletions(-)---
base-commit:bd05b9a700c10473c2f52bf12c5c5938c30e80b0
change-id: 20241113-fxls-d93a888889f7Best regards,
---
Frank Li <[email protected]>