[PATCH 1/4] dt-bindings: clock: add support for lan969x

Daniel Machon posted 4 patches 2 months, 2 weeks ago
[PATCH 1/4] dt-bindings: clock: add support for lan969x
Posted by Daniel Machon 2 months, 2 weeks ago
Lan969x is going to reuse the existing lan966x clock driver - document
that by adding compatible strings for the different SKU's that we
support.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
---
 .../devicetree/bindings/clock/microchip,lan966x-gck.yaml    | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml
index df2bec188706..16106e8b637f 100644
--- a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml
+++ b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml
@@ -16,7 +16,18 @@ description: |
 
 properties:
   compatible:
-    const: microchip,lan966x-gck
+    oneOf:
+      - enum:
+          - microchip,lan966x-gck
+          - microchip,lan9691-gck
+      - items:
+          - enum:
+              - microchip,lan9698-gck
+              - microchip,lan9696-gck
+              - microchip,lan9694-gck
+              - microchip,lan9693-gck
+              - microchip,lan9692-gck
+          - const: microchip,lan9691-gck
 
   reg:
     minItems: 1

-- 
2.34.1
Re: [PATCH 1/4] dt-bindings: clock: add support for lan969x
Posted by Conor Dooley 2 months, 2 weeks ago
On Mon, Sep 16, 2024 at 11:49:19AM +0200, Daniel Machon wrote:
> Lan969x is going to reuse the existing lan966x clock driver - document
> that by adding compatible strings for the different SKU's that we
> support.
> 
> Signed-off-by: Daniel Machon <daniel.machon@microchip.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

> ---
>  .../devicetree/bindings/clock/microchip,lan966x-gck.yaml    | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml
> index df2bec188706..16106e8b637f 100644
> --- a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml
> +++ b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml
> @@ -16,7 +16,18 @@ description: |
>  
>  properties:
>    compatible:
> -    const: microchip,lan966x-gck
> +    oneOf:
> +      - enum:
> +          - microchip,lan966x-gck
> +          - microchip,lan9691-gck
> +      - items:
> +          - enum:
> +              - microchip,lan9698-gck
> +              - microchip,lan9696-gck
> +              - microchip,lan9694-gck
> +              - microchip,lan9693-gck
> +              - microchip,lan9692-gck
> +          - const: microchip,lan9691-gck
>  
>    reg:
>      minItems: 1
> 
> -- 
> 2.34.1
>