[PATCH v2 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'

Frank Li posted 4 patches 6 days, 20 hours ago
[PATCH v2 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
Posted by Frank Li 6 days, 20 hours ago
From: Han Xu <han.xu@nxp.com>

Add 'nxp,fxls8967af' compatible for the FXLS8967AF sensor, falling back to
'nxp,fxls8962af' as the only difference is the ID.

Signed-off-by: Han Xu <han.xu@nxp.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 .../devicetree/bindings/iio/accel/nxp,fxls8962af.yaml        | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
index 783c7ddfcd90a..a5c882bd7d06e 100644
--- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
@@ -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

-- 
2.34.1
Re: [PATCH v2 1/4] dt-bindings: iio: accel: fxls8962af: add compatible string 'nxp,fxls8967af'
Posted by Rob Herring (Arm) 2 days, 23 hours ago
On Fri, 15 Nov 2024 15:23:57 -0500, Frank Li wrote:
> From: Han Xu <han.xu@nxp.com>
> 
> Add 'nxp,fxls8967af' compatible for the FXLS8967AF sensor, falling back to
> 'nxp,fxls8962af' as the only difference is the ID.
> 
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Reviewed-by: Sean Nyekjaer <sean@geanix.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
>  .../devicetree/bindings/iio/accel/nxp,fxls8962af.yaml        | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>