openwrt/target/linux/qualcommbe/patches-6.6/300-dt-bindings-clock-Add-clock-ID-for-IPQ-PCS-UNIPHY.patch
Christian Marangi 93173aee96
qualcommbe: ipq95xx: Add initial support for new target
Add initial support for new target with the initial patch for ethernet
support using pending upstream patches for PCS UNIPHY, PPE and EDMA.

Only initramfs currently working as support for new SPI/NAND
implementation, USB, CPUFreq and other devices is still unfinished and
needs to be evaluated.

Link: https://github.com/openwrt/openwrt/pull/17725
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-01-25 21:24:06 +01:00

38 lines
1.2 KiB
Diff

From 82a6de914d0d6ff82333a4b65c81f71335e1f9d0 Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Wed, 4 Dec 2024 01:31:46 +0100
Subject: [PATCH] dt-bindings: clock: Add clock ID for IPQ PCS UNIPHY
IPQ9574 expose 3 PCS UNIPHY that expose all the same clock ID for RX and
TX clock. This is needed to correctly parent the EDMA ports and scale
to the correct frequency to permit correct function of attached PHY.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
include/dt-bindings/clock/qcom,ipq-pcs-uniphy.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 include/dt-bindings/clock/qcom,ipq-pcs-uniphy.h
diff --git a/include/dt-bindings/clock/qcom,ipq-pcs-uniphy.h b/include/dt-bindings/clock/qcom,ipq-pcs-uniphy.h
new file mode 100644
index 000000000000..c47d7191cda5
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,ipq-pcs-uniphy.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_IPQ_PCS_UNIPHY_H
+#define _DT_BINDINGS_CLK_QCOM_IPQ_PCS_UNIPHY_H
+
+/*
+ * IPQ9574 expose 3 PCS UNIPHY that expose all
+ * the same clock ID
+ */
+#define UNIPHY_NSS_RX_CLK 0
+#define UNIPHY_NSS_TX_CLK 1
+
+#endif
--
2.45.2