dt-bindings: phy: phy-cadence-sierra: Add binding to model Sierra as clock provider
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 19 Mar 2021 12:41:26 +0000 (18:11 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 31 Mar 2021 11:13:21 +0000 (16:43 +0530)
Add #clock-cells binding to model Sierra as clock provider and include
clock IDs for PLL_CMNLC and PLL_CMNLC1.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210319124128.13308-12-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml
include/dt-bindings/phy/phy-cadence.h

index d210843863df084b646b5f07224117c7086562fd..84383e2e0b34d254fe2406a9cb35900d991280a8 100644 (file)
@@ -26,6 +26,9 @@ properties:
   '#size-cells':
     const: 0
 
+  '#clock-cells':
+    const: 1
+
   resets:
     minItems: 1
     maxItems: 2
@@ -49,12 +52,24 @@ properties:
     const: serdes
 
   clocks:
-    maxItems: 2
+    minItems: 2
+    maxItems: 4
 
   clock-names:
+    minItems: 2
     items:
       - const: cmn_refclk_dig_div
       - const: cmn_refclk1_dig_div
+      - const: pll0_refclk
+      - const: pll1_refclk
+
+  assigned-clocks:
+    minItems: 1
+    maxItems: 2
+
+  assigned-clock-parents:
+    minItems: 1
+    maxItems: 2
 
   cdns,autoconf:
     type: boolean
index 4a5ea52a856f1a9bb2703aa118563ddfd2554d60..4652bcb8626521a1f0768222a1a304cd938c29b5 100644 (file)
@@ -13,4 +13,8 @@
 
 #define CDNS_TORRENT_REFCLK_DRIVER      0
 
+/* Sierra */
+#define CDNS_SIERRA_PLL_CMNLC          0
+#define CDNS_SIERRA_PLL_CMNLC1         1
+
 #endif /* _DT_BINDINGS_CADENCE_SERDES_H */