xref: /linux/include/dt-bindings/mux/ti-serdes.h (revision 4709b21a0566bee2f00b1bd8fb926c08dd838438)
1c65176fdSRoger Quadros /* SPDX-License-Identifier: GPL-2.0 */
2c65176fdSRoger Quadros /*
3c65176fdSRoger Quadros  * This header provides constants for SERDES MUX for TI SoCs
4c65176fdSRoger Quadros  */
5c65176fdSRoger Quadros 
6c65176fdSRoger Quadros #ifndef _DT_BINDINGS_MUX_TI_SERDES
7c65176fdSRoger Quadros #define _DT_BINDINGS_MUX_TI_SERDES
8c65176fdSRoger Quadros 
9c65176fdSRoger Quadros /* J721E */
10c65176fdSRoger Quadros 
11c65176fdSRoger Quadros #define J721E_SERDES0_LANE0_QSGMII_LANE1	0x0
12c65176fdSRoger Quadros #define J721E_SERDES0_LANE0_PCIE0_LANE0		0x1
13c65176fdSRoger Quadros #define J721E_SERDES0_LANE0_USB3_0_SWAP		0x2
14c65176fdSRoger Quadros #define J721E_SERDES0_LANE0_IP4_UNUSED		0x3
15c65176fdSRoger Quadros 
16c65176fdSRoger Quadros #define J721E_SERDES0_LANE1_QSGMII_LANE2	0x0
17c65176fdSRoger Quadros #define J721E_SERDES0_LANE1_PCIE0_LANE1		0x1
18c65176fdSRoger Quadros #define J721E_SERDES0_LANE1_USB3_0		0x2
19c65176fdSRoger Quadros #define J721E_SERDES0_LANE1_IP4_UNUSED		0x3
20c65176fdSRoger Quadros 
21c65176fdSRoger Quadros #define J721E_SERDES1_LANE0_QSGMII_LANE3	0x0
22c65176fdSRoger Quadros #define J721E_SERDES1_LANE0_PCIE1_LANE0		0x1
23c65176fdSRoger Quadros #define J721E_SERDES1_LANE0_USB3_1_SWAP		0x2
24c65176fdSRoger Quadros #define J721E_SERDES1_LANE0_SGMII_LANE0		0x3
25c65176fdSRoger Quadros 
26c65176fdSRoger Quadros #define J721E_SERDES1_LANE1_QSGMII_LANE4	0x0
27c65176fdSRoger Quadros #define J721E_SERDES1_LANE1_PCIE1_LANE1		0x1
28c65176fdSRoger Quadros #define J721E_SERDES1_LANE1_USB3_1		0x2
29c65176fdSRoger Quadros #define J721E_SERDES1_LANE1_SGMII_LANE1		0x3
30c65176fdSRoger Quadros 
31c65176fdSRoger Quadros #define J721E_SERDES2_LANE0_IP1_UNUSED		0x0
32c65176fdSRoger Quadros #define J721E_SERDES2_LANE0_PCIE2_LANE0		0x1
33c65176fdSRoger Quadros #define J721E_SERDES2_LANE0_USB3_1_SWAP		0x2
34c65176fdSRoger Quadros #define J721E_SERDES2_LANE0_SGMII_LANE0		0x3
35c65176fdSRoger Quadros 
36c65176fdSRoger Quadros #define J721E_SERDES2_LANE1_IP1_UNUSED		0x0
37c65176fdSRoger Quadros #define J721E_SERDES2_LANE1_PCIE2_LANE1		0x1
38c65176fdSRoger Quadros #define J721E_SERDES2_LANE1_USB3_1		0x2
39c65176fdSRoger Quadros #define J721E_SERDES2_LANE1_SGMII_LANE1		0x3
40c65176fdSRoger Quadros 
41c65176fdSRoger Quadros #define J721E_SERDES3_LANE0_IP1_UNUSED		0x0
42c65176fdSRoger Quadros #define J721E_SERDES3_LANE0_PCIE3_LANE0		0x1
43c65176fdSRoger Quadros #define J721E_SERDES3_LANE0_USB3_0_SWAP		0x2
44c65176fdSRoger Quadros #define J721E_SERDES3_LANE0_IP4_UNUSED		0x3
45c65176fdSRoger Quadros 
46c65176fdSRoger Quadros #define J721E_SERDES3_LANE1_IP1_UNUSED		0x0
47c65176fdSRoger Quadros #define J721E_SERDES3_LANE1_PCIE3_LANE1		0x1
48c65176fdSRoger Quadros #define J721E_SERDES3_LANE1_USB3_0		0x2
49c65176fdSRoger Quadros #define J721E_SERDES3_LANE1_IP4_UNUSED		0x3
50c65176fdSRoger Quadros 
51c65176fdSRoger Quadros #define J721E_SERDES4_LANE0_EDP_LANE0		0x0
52c65176fdSRoger Quadros #define J721E_SERDES4_LANE0_IP2_UNUSED		0x1
53c65176fdSRoger Quadros #define J721E_SERDES4_LANE0_QSGMII_LANE5	0x2
54c65176fdSRoger Quadros #define J721E_SERDES4_LANE0_IP4_UNUSED		0x3
55c65176fdSRoger Quadros 
56c65176fdSRoger Quadros #define J721E_SERDES4_LANE1_EDP_LANE1		0x0
57c65176fdSRoger Quadros #define J721E_SERDES4_LANE1_IP2_UNUSED		0x1
58c65176fdSRoger Quadros #define J721E_SERDES4_LANE1_QSGMII_LANE6	0x2
59c65176fdSRoger Quadros #define J721E_SERDES4_LANE1_IP4_UNUSED		0x3
60c65176fdSRoger Quadros 
61c65176fdSRoger Quadros #define J721E_SERDES4_LANE2_EDP_LANE2		0x0
62c65176fdSRoger Quadros #define J721E_SERDES4_LANE2_IP2_UNUSED		0x1
63c65176fdSRoger Quadros #define J721E_SERDES4_LANE2_QSGMII_LANE7	0x2
64c65176fdSRoger Quadros #define J721E_SERDES4_LANE2_IP4_UNUSED		0x3
65c65176fdSRoger Quadros 
66c65176fdSRoger Quadros #define J721E_SERDES4_LANE3_EDP_LANE3		0x0
67c65176fdSRoger Quadros #define J721E_SERDES4_LANE3_IP2_UNUSED		0x1
68c65176fdSRoger Quadros #define J721E_SERDES4_LANE3_QSGMII_LANE8	0x2
69c65176fdSRoger Quadros #define J721E_SERDES4_LANE3_IP4_UNUSED		0x3
70c65176fdSRoger Quadros 
71ba90e0c9SRoger Quadros /* J7200 */
72ba90e0c9SRoger Quadros 
73ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE0_QSGMII_LANE3	0x0
74ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE0_PCIE1_LANE0		0x1
75ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE0_IP3_UNUSED		0x2
76ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE0_IP4_UNUSED		0x3
77ba90e0c9SRoger Quadros 
78ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE1_QSGMII_LANE4	0x0
79ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE1_PCIE1_LANE1		0x1
80ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE1_IP3_UNUSED		0x2
81ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE1_IP4_UNUSED		0x3
82ba90e0c9SRoger Quadros 
83ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE2_QSGMII_LANE1	0x0
84ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE2_PCIE1_LANE2		0x1
85ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE2_IP3_UNUSED		0x2
86ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE2_IP4_UNUSED		0x3
87ba90e0c9SRoger Quadros 
88ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE3_QSGMII_LANE2	0x0
89ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE3_PCIE1_LANE3		0x1
90ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE3_USB			0x2
91ba90e0c9SRoger Quadros #define J7200_SERDES0_LANE3_IP4_UNUSED		0x3
92ba90e0c9SRoger Quadros 
93*4709b21aSKishon Vijay Abraham I /* AM64 */
94*4709b21aSKishon Vijay Abraham I 
95*4709b21aSKishon Vijay Abraham I #define AM64_SERDES0_LANE0_PCIE0		0x0
96*4709b21aSKishon Vijay Abraham I #define AM64_SERDES0_LANE0_USB			0x1
97*4709b21aSKishon Vijay Abraham I 
98c65176fdSRoger Quadros #endif /* _DT_BINDINGS_MUX_TI_SERDES */
99