* [PATCH 0/4] iio: accel: fxls8962af: add fxls8967af and fxls8974cf
@ 2024-11-13 17:54 Frank Li
2024-11-13 17:54 ` [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af' Frank Li
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Frank Li @ 2024-11-13 17:54 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Sean Nyekjaer
Cc: linux-iio, devicetree, linux-kernel, imx, Frank Li, Han Xu,
Haibo Chen, Clark Wang
fxls8967af and fxls8974cf are similar with fxls8962af, only change ID.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
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 | 6 ++++++
drivers/iio/accel/fxls8962af-core.c | 14 ++++++++++++++
drivers/iio/accel/fxls8962af-i2c.c | 4 ++++
drivers/iio/accel/fxls8962af.h | 2 ++
4 files changed, 26 insertions(+)
---
base-commit: bd05b9a700c10473c2f52bf12c5c5938c30e80b0
change-id: 20241113-fxls-d93a888889f7
Best regards,
---
Frank Li <Frank.Li@nxp.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
2024-11-13 17:54 [PATCH 0/4] iio: accel: fxls8962af: add fxls8967af and fxls8974cf Frank Li
@ 2024-11-13 17:54 ` Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
2024-11-14 20:07 ` Conor Dooley
2024-11-13 17:54 ` [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf' Frank Li
` (2 subsequent siblings)
3 siblings, 2 replies; 11+ messages in thread
From: Frank Li @ 2024-11-13 17:54 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Sean Nyekjaer
Cc: linux-iio, devicetree, linux-kernel, imx, Frank Li, Han Xu
From: Han Xu <han.xu@nxp.com>
Add compatible string 'nxp,fxls8967af' for the NXP FXLS8967AF accelerometer
sensor.
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
index 783c7ddfcd90a..c375ef1bd083f 100644
--- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
@@ -14,12 +14,16 @@ 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:
+ description:
+ These chips are compatible with each other, just have different IDs.
enum:
- nxp,fxls8962af
- nxp,fxls8964af
+ - nxp,fxls8967af
reg:
maxItems: 1
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf'
2024-11-13 17:54 [PATCH 0/4] iio: accel: fxls8962af: add fxls8967af and fxls8974cf Frank Li
2024-11-13 17:54 ` [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af' Frank Li
@ 2024-11-13 17:54 ` Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
2024-11-14 20:08 ` Conor Dooley
2024-11-13 17:54 ` [PATCH 3/4] iio: accel: fxls8962af: add fxls8974cf support Frank Li
2024-11-13 17:54 ` [PATCH 4/4] iio: accel: fxls8962af: add fxls8967af support Frank Li
3 siblings, 2 replies; 11+ messages in thread
From: Frank Li @ 2024-11-13 17:54 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Sean Nyekjaer
Cc: linux-iio, devicetree, linux-kernel, imx, Frank Li, Han Xu
From: Han Xu <han.xu@nxp.com>
Add compatible string 'nxp,fxls8974cf' for the NXP FXLS8974CF accelerometer
sensor.
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
index c375ef1bd083f..93985f670aa7b 100644
--- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
@@ -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:
@@ -24,6 +25,7 @@ properties:
- nxp,fxls8962af
- nxp,fxls8964af
- nxp,fxls8967af
+ - nxp,fxls8974cf
reg:
maxItems: 1
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/4] iio: accel: fxls8962af: add fxls8974cf support
2024-11-13 17:54 [PATCH 0/4] iio: accel: fxls8962af: add fxls8967af and fxls8974cf Frank Li
2024-11-13 17:54 ` [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af' Frank Li
2024-11-13 17:54 ` [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf' Frank Li
@ 2024-11-13 17:54 ` Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
2024-11-13 17:54 ` [PATCH 4/4] iio: accel: fxls8962af: add fxls8967af support Frank Li
3 siblings, 1 reply; 11+ messages in thread
From: Frank Li @ 2024-11-13 17:54 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Sean Nyekjaer
Cc: linux-iio, devicetree, linux-kernel, imx, Frank Li, Haibo Chen,
Clark Wang
From: Haibo Chen <haibo.chen@nxp.com>
fxls8974cf is similar with fxls8962af, the only difference is the device id
change to 0x86.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/iio/accel/fxls8962af-core.c | 7 +++++++
drivers/iio/accel/fxls8962af-i2c.c | 2 ++
drivers/iio/accel/fxls8962af.h | 1 +
3 files changed, 10 insertions(+)
diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c
index f07fba17048e7..b5607e753a7db 100644
--- a/drivers/iio/accel/fxls8962af-core.c
+++ b/drivers/iio/accel/fxls8962af-core.c
@@ -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 = {
diff --git a/drivers/iio/accel/fxls8962af-i2c.c b/drivers/iio/accel/fxls8962af-i2c.c
index 1601246733083..ebdf6926db0a7 100644
--- a/drivers/iio/accel/fxls8962af-i2c.c
+++ b/drivers/iio/accel/fxls8962af-i2c.c
@@ -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);
@@ -37,6 +38,7 @@ MODULE_DEVICE_TABLE(i2c, fxls8962af_id);
static const struct of_device_id fxls8962af_of_match[] = {
{ .compatible = "nxp,fxls8962af" },
{ .compatible = "nxp,fxls8964af" },
+ { .compatible = "nxp,fxls8974cf" },
{}
};
MODULE_DEVICE_TABLE(of, fxls8962af_of_match);
diff --git a/drivers/iio/accel/fxls8962af.h b/drivers/iio/accel/fxls8962af.h
index 6eaa2803b26f0..733b69e01e1cc 100644
--- a/drivers/iio/accel/fxls8962af.h
+++ b/drivers/iio/accel/fxls8962af.h
@@ -11,6 +11,7 @@ struct device;
enum {
fxls8962af,
fxls8964af,
+ fxls8974cf,
};
int fxls8962af_core_probe(struct device *dev, struct regmap *regmap, int irq);
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/4] iio: accel: fxls8962af: add fxls8967af support
2024-11-13 17:54 [PATCH 0/4] iio: accel: fxls8962af: add fxls8967af and fxls8974cf Frank Li
` (2 preceding siblings ...)
2024-11-13 17:54 ` [PATCH 3/4] iio: accel: fxls8962af: add fxls8974cf support Frank Li
@ 2024-11-13 17:54 ` Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
3 siblings, 1 reply; 11+ messages in thread
From: Frank Li @ 2024-11-13 17:54 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Sean Nyekjaer
Cc: linux-iio, devicetree, linux-kernel, imx, Frank Li, Han Xu
From: Han Xu <han.xu@nxp.com>
fxls8967af is similar with fxls8962af, the only difference is the device id
change to 0x87.
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/iio/accel/fxls8962af-core.c | 7 +++++++
drivers/iio/accel/fxls8962af-i2c.c | 2 ++
drivers/iio/accel/fxls8962af.h | 1 +
3 files changed, 10 insertions(+)
diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c
index b5607e753a7db..fd9b461904c20 100644
--- a/drivers/iio/accel/fxls8962af-core.c
+++ b/drivers/iio/accel/fxls8962af-core.c
@@ -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",
diff --git a/drivers/iio/accel/fxls8962af-i2c.c b/drivers/iio/accel/fxls8962af-i2c.c
index ebdf6926db0a7..029ba849a0423 100644
--- a/drivers/iio/accel/fxls8962af-i2c.c
+++ b/drivers/iio/accel/fxls8962af-i2c.c
@@ -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 },
{}
};
@@ -38,6 +39,7 @@ MODULE_DEVICE_TABLE(i2c, fxls8962af_id);
static const struct of_device_id fxls8962af_of_match[] = {
{ .compatible = "nxp,fxls8962af" },
{ .compatible = "nxp,fxls8964af" },
+ { .compatible = "nxp,fxls8967af" },
{ .compatible = "nxp,fxls8974cf" },
{}
};
diff --git a/drivers/iio/accel/fxls8962af.h b/drivers/iio/accel/fxls8962af.h
index 733b69e01e1cc..1c9adfc8c0dc1 100644
--- a/drivers/iio/accel/fxls8962af.h
+++ b/drivers/iio/accel/fxls8962af.h
@@ -11,6 +11,7 @@ struct device;
enum {
fxls8962af,
fxls8964af,
+ fxls8967af,
fxls8974cf,
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
2024-11-13 17:54 ` [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af' Frank Li
@ 2024-11-14 7:33 ` Sean Nyekjaer
2024-11-14 20:07 ` Conor Dooley
1 sibling, 0 replies; 11+ messages in thread
From: Sean Nyekjaer @ 2024-11-14 7:33 UTC (permalink / raw)
To: Frank Li
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-iio, devicetree,
linux-kernel, imx, Han Xu
On Wed, Nov 13, 2024 at 12:54:39PM +0100, Frank Li wrote:
> From: Han Xu <han.xu@nxp.com>
>
> Add compatible string 'nxp,fxls8967af' for the NXP FXLS8967AF accelerometer
> sensor.
>
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
> ---
> Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> index 783c7ddfcd90a..c375ef1bd083f 100644
> --- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> +++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> @@ -14,12 +14,16 @@ 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:
> + description:
> + These chips are compatible with each other, just have different IDs.
> enum:
> - nxp,fxls8962af
> - nxp,fxls8964af
> + - nxp,fxls8967af
>
> reg:
> maxItems: 1
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf'
2024-11-13 17:54 ` [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf' Frank Li
@ 2024-11-14 7:33 ` Sean Nyekjaer
2024-11-14 20:08 ` Conor Dooley
1 sibling, 0 replies; 11+ messages in thread
From: Sean Nyekjaer @ 2024-11-14 7:33 UTC (permalink / raw)
To: Frank Li
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-iio, devicetree,
linux-kernel, imx, Han Xu
On Wed, Nov 13, 2024 at 12:54:40PM +0100, Frank Li wrote:
> From: Han Xu <han.xu@nxp.com>
>
> Add compatible string 'nxp,fxls8974cf' for the NXP FXLS8974CF accelerometer
> sensor.
>
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
> ---
> Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> index c375ef1bd083f..93985f670aa7b 100644
> --- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> +++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> @@ -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:
> @@ -24,6 +25,7 @@ properties:
> - nxp,fxls8962af
> - nxp,fxls8964af
> - nxp,fxls8967af
> + - nxp,fxls8974cf
>
> reg:
> maxItems: 1
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/4] iio: accel: fxls8962af: add fxls8974cf support
2024-11-13 17:54 ` [PATCH 3/4] iio: accel: fxls8962af: add fxls8974cf support Frank Li
@ 2024-11-14 7:33 ` Sean Nyekjaer
0 siblings, 0 replies; 11+ messages in thread
From: Sean Nyekjaer @ 2024-11-14 7:33 UTC (permalink / raw)
To: Frank Li
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-iio, devicetree,
linux-kernel, imx, Haibo Chen, Clark Wang
On Wed, Nov 13, 2024 at 12:54:41PM +0100, Frank Li wrote:
> From: Haibo Chen <haibo.chen@nxp.com>
>
> fxls8974cf is similar with fxls8962af, the only difference is the device id
> change to 0x86.
>
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
> ---
> drivers/iio/accel/fxls8962af-core.c | 7 +++++++
> drivers/iio/accel/fxls8962af-i2c.c | 2 ++
> drivers/iio/accel/fxls8962af.h | 1 +
> 3 files changed, 10 insertions(+)
>
> diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c
> index f07fba17048e7..b5607e753a7db 100644
> --- a/drivers/iio/accel/fxls8962af-core.c
> +++ b/drivers/iio/accel/fxls8962af-core.c
> @@ -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 = {
> diff --git a/drivers/iio/accel/fxls8962af-i2c.c b/drivers/iio/accel/fxls8962af-i2c.c
> index 1601246733083..ebdf6926db0a7 100644
> --- a/drivers/iio/accel/fxls8962af-i2c.c
> +++ b/drivers/iio/accel/fxls8962af-i2c.c
> @@ -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);
> @@ -37,6 +38,7 @@ MODULE_DEVICE_TABLE(i2c, fxls8962af_id);
> static const struct of_device_id fxls8962af_of_match[] = {
> { .compatible = "nxp,fxls8962af" },
> { .compatible = "nxp,fxls8964af" },
> + { .compatible = "nxp,fxls8974cf" },
> {}
> };
> MODULE_DEVICE_TABLE(of, fxls8962af_of_match);
> diff --git a/drivers/iio/accel/fxls8962af.h b/drivers/iio/accel/fxls8962af.h
> index 6eaa2803b26f0..733b69e01e1cc 100644
> --- a/drivers/iio/accel/fxls8962af.h
> +++ b/drivers/iio/accel/fxls8962af.h
> @@ -11,6 +11,7 @@ struct device;
> enum {
> fxls8962af,
> fxls8964af,
> + fxls8974cf,
> };
>
> int fxls8962af_core_probe(struct device *dev, struct regmap *regmap, int irq);
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 4/4] iio: accel: fxls8962af: add fxls8967af support
2024-11-13 17:54 ` [PATCH 4/4] iio: accel: fxls8962af: add fxls8967af support Frank Li
@ 2024-11-14 7:33 ` Sean Nyekjaer
0 siblings, 0 replies; 11+ messages in thread
From: Sean Nyekjaer @ 2024-11-14 7:33 UTC (permalink / raw)
To: Frank Li
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-iio, devicetree,
linux-kernel, imx, Han Xu
On Wed, Nov 13, 2024 at 12:54:42PM +0100, Frank Li wrote:
> From: Han Xu <han.xu@nxp.com>
>
> fxls8967af is similar with fxls8962af, the only difference is the device id
> change to 0x87.
>
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
> ---
> drivers/iio/accel/fxls8962af-core.c | 7 +++++++
> drivers/iio/accel/fxls8962af-i2c.c | 2 ++
> drivers/iio/accel/fxls8962af.h | 1 +
> 3 files changed, 10 insertions(+)
>
> diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c
> index b5607e753a7db..fd9b461904c20 100644
> --- a/drivers/iio/accel/fxls8962af-core.c
> +++ b/drivers/iio/accel/fxls8962af-core.c
> @@ -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",
> diff --git a/drivers/iio/accel/fxls8962af-i2c.c b/drivers/iio/accel/fxls8962af-i2c.c
> index ebdf6926db0a7..029ba849a0423 100644
> --- a/drivers/iio/accel/fxls8962af-i2c.c
> +++ b/drivers/iio/accel/fxls8962af-i2c.c
> @@ -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 },
> {}
> };
> @@ -38,6 +39,7 @@ MODULE_DEVICE_TABLE(i2c, fxls8962af_id);
> static const struct of_device_id fxls8962af_of_match[] = {
> { .compatible = "nxp,fxls8962af" },
> { .compatible = "nxp,fxls8964af" },
> + { .compatible = "nxp,fxls8967af" },
> { .compatible = "nxp,fxls8974cf" },
> {}
> };
> diff --git a/drivers/iio/accel/fxls8962af.h b/drivers/iio/accel/fxls8962af.h
> index 733b69e01e1cc..1c9adfc8c0dc1 100644
> --- a/drivers/iio/accel/fxls8962af.h
> +++ b/drivers/iio/accel/fxls8962af.h
> @@ -11,6 +11,7 @@ struct device;
> enum {
> fxls8962af,
> fxls8964af,
> + fxls8967af,
> fxls8974cf,
> };
>
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
2024-11-13 17:54 ` [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af' Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
@ 2024-11-14 20:07 ` Conor Dooley
1 sibling, 0 replies; 11+ messages in thread
From: Conor Dooley @ 2024-11-14 20:07 UTC (permalink / raw)
To: Frank Li
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Sean Nyekjaer, linux-iio,
devicetree, linux-kernel, imx, Han Xu
[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]
On Wed, Nov 13, 2024 at 12:54:39PM -0500, Frank Li wrote:
> From: Han Xu <han.xu@nxp.com>
>
> Add compatible string 'nxp,fxls8967af' for the NXP FXLS8967AF accelerometer
> sensor.
>
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> index 783c7ddfcd90a..c375ef1bd083f 100644
> --- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> +++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> @@ -14,12 +14,16 @@ 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:
> + description:
> + These chips are compatible with each other, just have different IDs.
Then there should be a fallback. Please remove this description and add
the new device with a fallback to an existing one.
> enum:
> - nxp,fxls8962af
> - nxp,fxls8964af
> + - nxp,fxls8967af
>
> reg:
> maxItems: 1
>
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf'
2024-11-13 17:54 ` [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf' Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
@ 2024-11-14 20:08 ` Conor Dooley
1 sibling, 0 replies; 11+ messages in thread
From: Conor Dooley @ 2024-11-14 20:08 UTC (permalink / raw)
To: Frank Li
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Sean Nyekjaer, linux-iio,
devicetree, linux-kernel, imx, Han Xu
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
On Wed, Nov 13, 2024 at 12:54:40PM -0500, Frank Li wrote:
> From: Han Xu <han.xu@nxp.com>
>
> Add compatible string 'nxp,fxls8974cf' for the NXP FXLS8974CF accelerometer
> sensor.
>
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> index c375ef1bd083f..93985f670aa7b 100644
> --- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> +++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
> @@ -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:
> @@ -24,6 +25,7 @@ properties:
> - nxp,fxls8962af
> - nxp,fxls8964af
> - nxp,fxls8967af
> + - nxp,fxls8974cf
Ditto here.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-11-14 20:08 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 17:54 [PATCH 0/4] iio: accel: fxls8962af: add fxls8967af and fxls8974cf Frank Li
2024-11-13 17:54 ` [PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af' Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
2024-11-14 20:07 ` Conor Dooley
2024-11-13 17:54 ` [PATCH 2/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8974cf' Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
2024-11-14 20:08 ` Conor Dooley
2024-11-13 17:54 ` [PATCH 3/4] iio: accel: fxls8962af: add fxls8974cf support Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
2024-11-13 17:54 ` [PATCH 4/4] iio: accel: fxls8962af: add fxls8967af support Frank Li
2024-11-14 7:33 ` Sean Nyekjaer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox