dt-bindings: phy: cadence-torrent: Add binding for refclk driver
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 10 Mar 2021 11:27:44 +0000 (16:57 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 17 Mar 2021 06:32:40 +0000 (12:02 +0530)
Add binding for refclk driver used to route the refclk out of torrent
SERDES.

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

index e266ade..4608599 100644 (file)
@@ -28,13 +28,27 @@ properties:
   '#size-cells':
     const: 0
 
+  '#clock-cells':
+    const: 1
+
   clocks:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
     description:
-      PHY reference clock. Must contain an entry in clock-names.
+      PHY reference clock for 1 item. Must contain an entry in clock-names.
+      Optional Parent to enable output reference clock.
 
   clock-names:
-    const: refclk
+    minItems: 1
+    items:
+      - const: refclk
+      - const: phy_en_refclk
+
+  assigned-clocks:
+    maxItems: 3
+
+  assigned-clock-parents:
+    maxItems: 3
 
   reg:
     minItems: 1
index e387b6a..3c92c61 100644 (file)
@@ -10,4 +10,6 @@
 #define TORRENT_SERDES_EXTERNAL_SSC    1
 #define TORRENT_SERDES_INTERNAL_SSC    2
 
+#define CDNS_TORRENT_REFCLK_DRIVER      0
+
 #endif /* _DT_BINDINGS_TORRENT_SERDES_H */