dt-bindings: phy: ti,phy-j721e-wiz: Add bindings for AM64 SERDES Wrapper
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 10 Mar 2021 11:27:43 +0000 (16:57 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 17 Mar 2021 06:32:40 +0000 (12:02 +0530)
Add bindings for AM64 SERDES Wrapper.

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-2-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml
include/dt-bindings/phy/phy-ti.h [new file with mode: 0644]

index bbbd85501ada84565dd648da6057917f8b9192e8..57e1d013a5028badeaf05f5ed88c68d946c9e73c 100644 (file)
@@ -15,6 +15,7 @@ properties:
     enum:
       - ti,j721e-wiz-16g
       - ti,j721e-wiz-10g
+      - ti,am64-wiz-10g
 
   power-domains:
     maxItems: 1
@@ -42,6 +43,9 @@ properties:
   "#reset-cells":
     const: 1
 
+  "#clock-cells":
+    const: 1
+
   ranges: true
 
   assigned-clocks:
diff --git a/include/dt-bindings/phy/phy-ti.h b/include/dt-bindings/phy/phy-ti.h
new file mode 100644 (file)
index 0000000..ad955d3
--- /dev/null
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * This header provides constants for TI SERDES.
+ */
+
+#ifndef _DT_BINDINGS_TI_SERDES
+#define _DT_BINDINGS_TI_SERDES
+
+/* Clock index for output clocks from WIZ */
+
+/* MUX Clocks */
+#define TI_WIZ_PLL0_REFCLK     0
+#define TI_WIZ_PLL1_REFCLK     1
+#define TI_WIZ_REFCLK_DIG      2
+
+/* Reserve index here for future additions */
+
+/* MISC Clocks */
+#define TI_WIZ_PHY_EN_REFCLK   16
+
+#endif /* _DT_BINDINGS_TI_SERDES */