[PATCH v2 1/3] dt-bindings: timer: nxp,sysctr-timer: support i.MX95

Peng Fan (OSS) posted 3 patches 1 year, 11 months ago
There is a newer version of this series
[PATCH v2 1/3] dt-bindings: timer: nxp,sysctr-timer: support i.MX95
Posted by Peng Fan (OSS) 1 year, 11 months ago
From: Peng Fan <peng.fan@nxp.com>

Add i.MX95 System counter module compatible string, the SCMI
firmware blocks access to control register, so should not
add "nxp,sysctr-timer" as fallback.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml
index 2b9653dafab8..161c09d9e2c3 100644
--- a/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml
+++ b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml
@@ -18,7 +18,10 @@ description: |
 
 properties:
   compatible:
-    const: nxp,sysctr-timer
+    items:
+      - enum:
+          - nxp,imx95-sysctr-timer
+          - nxp,sysctr-timer
 
   reg:
     maxItems: 1

-- 
2.37.1
Re: [PATCH v2 1/3] dt-bindings: timer: nxp,sysctr-timer: support i.MX95
Posted by Conor Dooley 1 year, 11 months ago
On Thu, Jan 25, 2024 at 07:09:47PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Add i.MX95 System counter module compatible string, the SCMI
> firmware blocks access to control register, so should not
> add "nxp,sysctr-timer" as fallback.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml
> index 2b9653dafab8..161c09d9e2c3 100644
> --- a/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml
> +++ b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.yaml
> @@ -18,7 +18,10 @@ description: |
>  
>  properties:
>    compatible:
> -    const: nxp,sysctr-timer
> +    items

This is just an enum, no need for the items.

Thanks,
Conor.

> +      - enum:
> +          - nxp,imx95-sysctr-timer
> +          - nxp,sysctr-timer
>  
>    reg:
>      maxItems: 1
> 
> -- 
> 2.37.1
>