summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2023-11-11 21:44:59 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-11-14 05:21:24 +0100
commit878ef51b012e911788b5210631f8af2707327344 (patch)
tree23053a4c1376aeb693b4e74f3d1af4dab53f7d93 /target
parent09b7e1955c92e0b05197174b7bd4aef2c4073a35 (diff)
downloadopenwrt-878ef51b012e911788b5210631f8af2707327344.tar.gz
openwrt-878ef51b012e911788b5210631f8af2707327344.tar.bz2
openwrt-878ef51b012e911788b5210631f8af2707327344.zip
qualcommax: add bindings for MAC modes
Since every board needs to define the correct MAC modes, it makes sense to document the allowed hex values with a humanly readable name. So, lets document all of the allowed MAC modes from SSDK 12.4 as bindings, so later we can replace all of the hex values in DTS-es with these. Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/qualcommax/files/include/dt-bindings/net/qcom-ipq-ess.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/qualcommax/files/include/dt-bindings/net/qcom-ipq-ess.h b/target/linux/qualcommax/files/include/dt-bindings/net/qcom-ipq-ess.h
index 0ecadb35c6..5b44620de5 100644
--- a/target/linux/qualcommax/files/include/dt-bindings/net/qcom-ipq-ess.h
+++ b/target/linux/qualcommax/files/include/dt-bindings/net/qcom-ipq-ess.h
@@ -12,4 +12,31 @@
#define ESS_PORT6 0x40
#define ESS_PORT7 0x80
+/* SSDK MAC/UNIPHY modes */
+#define MAC_MODE_PSGMII 0x0
+#define MAC_MODE_PSGMII_RGMII5 0x1
+#define MAC_MODE_SGMII0_RGMII5 0x2
+#define MAC_MODE_SGMII1_RGMII5 0x3
+#define MAC_MODE_PSGMII_RMII0 0x4
+#define MAC_MODE_PSGMII_RMII1 0x5
+#define MAC_MODE_PSGMII_RMII0_RMII1 0x6
+#define MAC_MODE_PSGMII_RGMII4 0x7
+#define MAC_MODE_SGMII0_RGMII4 0x8
+#define MAC_MODE_SGMII1_RGMII4 0x9
+#define MAC_MODE_SGMII4_RGMII4 0xa
+#define MAC_MODE_QSGMII 0xb
+#define MAC_MODE_SGMII_PLUS 0xc
+#define MAC_MODE_USXGMII 0xd
+#define MAC_MODE_10GBASE_R 0xe
+#define MAC_MODE_SGMII_CHANNEL0 0xf
+#define MAC_MODE_SGMII_CHANNEL1 0x10
+#define MAC_MODE_SGMII_CHANNEL4 0x11
+#define MAC_MODE_RGMII 0x12
+#define MAC_MODE_PSGMII_FIBER 0x13
+#define MAC_MODE_SGMII_FIBER 0x14
+#define MAC_MODE_UQXGMII 0x15
+#define MAC_MODE_UDXGMII 0x16
+#define MAC_MODE_UQXGMII_3CHANNELS 0x17
+#define MAC_MODE_DISABLED 0xff
+
#endif /* _DT_BINDINGS_NET_QCOM_IPQ_ESS_H */