xref: /freebsd-src/sys/contrib/device-tree/include/dt-bindings/mux/ti-serdes.h (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
16be33864SEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
26be33864SEmmanuel Vadot /*
36be33864SEmmanuel Vadot  * This header provides constants for SERDES MUX for TI SoCs
46be33864SEmmanuel Vadot  */
56be33864SEmmanuel Vadot 
66be33864SEmmanuel Vadot #ifndef _DT_BINDINGS_MUX_TI_SERDES
76be33864SEmmanuel Vadot #define _DT_BINDINGS_MUX_TI_SERDES
86be33864SEmmanuel Vadot 
9*aa1a8ff2SEmmanuel Vadot /*
10*aa1a8ff2SEmmanuel Vadot  * These bindings are deprecated, because they do not match the actual
11*aa1a8ff2SEmmanuel Vadot  * concept of bindings but rather contain pure constants values used only
12*aa1a8ff2SEmmanuel Vadot  * in DTS board files.
13*aa1a8ff2SEmmanuel Vadot  * Instead include the header in the DTS source directory.
14*aa1a8ff2SEmmanuel Vadot  */
15*aa1a8ff2SEmmanuel Vadot #warning "These bindings are deprecated. Instead, use the header in the DTS source directory."
16*aa1a8ff2SEmmanuel Vadot 
176be33864SEmmanuel Vadot /* J721E */
186be33864SEmmanuel Vadot 
196be33864SEmmanuel Vadot #define J721E_SERDES0_LANE0_QSGMII_LANE1	0x0
206be33864SEmmanuel Vadot #define J721E_SERDES0_LANE0_PCIE0_LANE0		0x1
216be33864SEmmanuel Vadot #define J721E_SERDES0_LANE0_USB3_0_SWAP		0x2
226be33864SEmmanuel Vadot #define J721E_SERDES0_LANE0_IP4_UNUSED		0x3
236be33864SEmmanuel Vadot 
246be33864SEmmanuel Vadot #define J721E_SERDES0_LANE1_QSGMII_LANE2	0x0
256be33864SEmmanuel Vadot #define J721E_SERDES0_LANE1_PCIE0_LANE1		0x1
266be33864SEmmanuel Vadot #define J721E_SERDES0_LANE1_USB3_0		0x2
276be33864SEmmanuel Vadot #define J721E_SERDES0_LANE1_IP4_UNUSED		0x3
286be33864SEmmanuel Vadot 
296be33864SEmmanuel Vadot #define J721E_SERDES1_LANE0_QSGMII_LANE3	0x0
306be33864SEmmanuel Vadot #define J721E_SERDES1_LANE0_PCIE1_LANE0		0x1
316be33864SEmmanuel Vadot #define J721E_SERDES1_LANE0_USB3_1_SWAP		0x2
326be33864SEmmanuel Vadot #define J721E_SERDES1_LANE0_SGMII_LANE0		0x3
336be33864SEmmanuel Vadot 
346be33864SEmmanuel Vadot #define J721E_SERDES1_LANE1_QSGMII_LANE4	0x0
356be33864SEmmanuel Vadot #define J721E_SERDES1_LANE1_PCIE1_LANE1		0x1
366be33864SEmmanuel Vadot #define J721E_SERDES1_LANE1_USB3_1		0x2
376be33864SEmmanuel Vadot #define J721E_SERDES1_LANE1_SGMII_LANE1		0x3
386be33864SEmmanuel Vadot 
396be33864SEmmanuel Vadot #define J721E_SERDES2_LANE0_IP1_UNUSED		0x0
406be33864SEmmanuel Vadot #define J721E_SERDES2_LANE0_PCIE2_LANE0		0x1
416be33864SEmmanuel Vadot #define J721E_SERDES2_LANE0_USB3_1_SWAP		0x2
426be33864SEmmanuel Vadot #define J721E_SERDES2_LANE0_SGMII_LANE0		0x3
436be33864SEmmanuel Vadot 
446be33864SEmmanuel Vadot #define J721E_SERDES2_LANE1_IP1_UNUSED		0x0
456be33864SEmmanuel Vadot #define J721E_SERDES2_LANE1_PCIE2_LANE1		0x1
466be33864SEmmanuel Vadot #define J721E_SERDES2_LANE1_USB3_1		0x2
476be33864SEmmanuel Vadot #define J721E_SERDES2_LANE1_SGMII_LANE1		0x3
486be33864SEmmanuel Vadot 
496be33864SEmmanuel Vadot #define J721E_SERDES3_LANE0_IP1_UNUSED		0x0
506be33864SEmmanuel Vadot #define J721E_SERDES3_LANE0_PCIE3_LANE0		0x1
516be33864SEmmanuel Vadot #define J721E_SERDES3_LANE0_USB3_0_SWAP		0x2
526be33864SEmmanuel Vadot #define J721E_SERDES3_LANE0_IP4_UNUSED		0x3
536be33864SEmmanuel Vadot 
546be33864SEmmanuel Vadot #define J721E_SERDES3_LANE1_IP1_UNUSED		0x0
556be33864SEmmanuel Vadot #define J721E_SERDES3_LANE1_PCIE3_LANE1		0x1
566be33864SEmmanuel Vadot #define J721E_SERDES3_LANE1_USB3_0		0x2
576be33864SEmmanuel Vadot #define J721E_SERDES3_LANE1_IP4_UNUSED		0x3
586be33864SEmmanuel Vadot 
596be33864SEmmanuel Vadot #define J721E_SERDES4_LANE0_EDP_LANE0		0x0
606be33864SEmmanuel Vadot #define J721E_SERDES4_LANE0_IP2_UNUSED		0x1
616be33864SEmmanuel Vadot #define J721E_SERDES4_LANE0_QSGMII_LANE5	0x2
626be33864SEmmanuel Vadot #define J721E_SERDES4_LANE0_IP4_UNUSED		0x3
636be33864SEmmanuel Vadot 
646be33864SEmmanuel Vadot #define J721E_SERDES4_LANE1_EDP_LANE1		0x0
656be33864SEmmanuel Vadot #define J721E_SERDES4_LANE1_IP2_UNUSED		0x1
666be33864SEmmanuel Vadot #define J721E_SERDES4_LANE1_QSGMII_LANE6	0x2
676be33864SEmmanuel Vadot #define J721E_SERDES4_LANE1_IP4_UNUSED		0x3
686be33864SEmmanuel Vadot 
696be33864SEmmanuel Vadot #define J721E_SERDES4_LANE2_EDP_LANE2		0x0
706be33864SEmmanuel Vadot #define J721E_SERDES4_LANE2_IP2_UNUSED		0x1
716be33864SEmmanuel Vadot #define J721E_SERDES4_LANE2_QSGMII_LANE7	0x2
726be33864SEmmanuel Vadot #define J721E_SERDES4_LANE2_IP4_UNUSED		0x3
736be33864SEmmanuel Vadot 
746be33864SEmmanuel Vadot #define J721E_SERDES4_LANE3_EDP_LANE3		0x0
756be33864SEmmanuel Vadot #define J721E_SERDES4_LANE3_IP2_UNUSED		0x1
766be33864SEmmanuel Vadot #define J721E_SERDES4_LANE3_QSGMII_LANE8	0x2
776be33864SEmmanuel Vadot #define J721E_SERDES4_LANE3_IP4_UNUSED		0x3
786be33864SEmmanuel Vadot 
796be33864SEmmanuel Vadot /* J7200 */
806be33864SEmmanuel Vadot 
816be33864SEmmanuel Vadot #define J7200_SERDES0_LANE0_QSGMII_LANE3	0x0
826be33864SEmmanuel Vadot #define J7200_SERDES0_LANE0_PCIE1_LANE0		0x1
836be33864SEmmanuel Vadot #define J7200_SERDES0_LANE0_IP3_UNUSED		0x2
846be33864SEmmanuel Vadot #define J7200_SERDES0_LANE0_IP4_UNUSED		0x3
856be33864SEmmanuel Vadot 
866be33864SEmmanuel Vadot #define J7200_SERDES0_LANE1_QSGMII_LANE4	0x0
876be33864SEmmanuel Vadot #define J7200_SERDES0_LANE1_PCIE1_LANE1		0x1
886be33864SEmmanuel Vadot #define J7200_SERDES0_LANE1_IP3_UNUSED		0x2
896be33864SEmmanuel Vadot #define J7200_SERDES0_LANE1_IP4_UNUSED		0x3
906be33864SEmmanuel Vadot 
916be33864SEmmanuel Vadot #define J7200_SERDES0_LANE2_QSGMII_LANE1	0x0
926be33864SEmmanuel Vadot #define J7200_SERDES0_LANE2_PCIE1_LANE2		0x1
936be33864SEmmanuel Vadot #define J7200_SERDES0_LANE2_IP3_UNUSED		0x2
946be33864SEmmanuel Vadot #define J7200_SERDES0_LANE2_IP4_UNUSED		0x3
956be33864SEmmanuel Vadot 
966be33864SEmmanuel Vadot #define J7200_SERDES0_LANE3_QSGMII_LANE2	0x0
976be33864SEmmanuel Vadot #define J7200_SERDES0_LANE3_PCIE1_LANE3		0x1
986be33864SEmmanuel Vadot #define J7200_SERDES0_LANE3_USB			0x2
996be33864SEmmanuel Vadot #define J7200_SERDES0_LANE3_IP4_UNUSED		0x3
1006be33864SEmmanuel Vadot 
1012eb4d8dcSEmmanuel Vadot /* AM64 */
1022eb4d8dcSEmmanuel Vadot 
1032eb4d8dcSEmmanuel Vadot #define AM64_SERDES0_LANE0_PCIE0		0x0
1042eb4d8dcSEmmanuel Vadot #define AM64_SERDES0_LANE0_USB			0x1
1052eb4d8dcSEmmanuel Vadot 
106e67e8565SEmmanuel Vadot /* J721S2 */
107e67e8565SEmmanuel Vadot 
108e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE0_EDP_LANE0		0x0
109e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE0_PCIE1_LANE0	0x1
110e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE0_IP3_UNUSED		0x2
111e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE0_IP4_UNUSED		0x3
112e67e8565SEmmanuel Vadot 
113e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE1_EDP_LANE1		0x0
114e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE1_PCIE1_LANE1	0x1
115e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE1_USB		0x2
116e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE1_IP4_UNUSED		0x3
117e67e8565SEmmanuel Vadot 
118e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE2_EDP_LANE2		0x0
119e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE2_PCIE1_LANE2	0x1
120e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE2_IP3_UNUSED		0x2
121e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE2_IP4_UNUSED		0x3
122e67e8565SEmmanuel Vadot 
123e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE3_EDP_LANE3		0x0
124e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE3_PCIE1_LANE3	0x1
125e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE3_USB		0x2
126e67e8565SEmmanuel Vadot #define J721S2_SERDES0_LANE3_IP4_UNUSED		0x3
127e67e8565SEmmanuel Vadot 
128f126890aSEmmanuel Vadot /* J784S4 */
129f126890aSEmmanuel Vadot 
130f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE0_IP1_UNUSED		0x0
131f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE0_PCIE1_LANE0	0x1
132f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE0_IP3_UNUSED		0x2
133f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE0_IP4_UNUSED		0x3
134f126890aSEmmanuel Vadot 
135f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE1_IP1_UNUSED		0x0
136f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE1_PCIE1_LANE1	0x1
137f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE1_IP3_UNUSED		0x2
138f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE1_IP4_UNUSED		0x3
139f126890aSEmmanuel Vadot 
140f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE2_PCIE3_LANE0	0x0
141f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE2_PCIE1_LANE2	0x1
142f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE2_IP3_UNUSED		0x2
143f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE2_IP4_UNUSED		0x3
144f126890aSEmmanuel Vadot 
145f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE3_PCIE3_LANE1	0x0
146f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE3_PCIE1_LANE3	0x1
147f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE3_USB		0x2
148f126890aSEmmanuel Vadot #define J784S4_SERDES0_LANE3_IP4_UNUSED		0x3
149f126890aSEmmanuel Vadot 
150f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE0_QSGMII_LANE3	0x0
151f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE0_PCIE0_LANE0	0x1
152f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE0_IP3_UNUSED		0x2
153f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE0_IP4_UNUSED		0x3
154f126890aSEmmanuel Vadot 
155f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE1_QSGMII_LANE4	0x0
156f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE1_PCIE0_LANE1	0x1
157f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE1_IP3_UNUSED		0x2
158f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE1_IP4_UNUSED		0x3
159f126890aSEmmanuel Vadot 
160f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE2_QSGMII_LANE1	0x0
161f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE2_PCIE0_LANE2	0x1
162f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE2_PCIE2_LANE0	0x2
163f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE2_IP4_UNUSED		0x3
164f126890aSEmmanuel Vadot 
165f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE3_QSGMII_LANE2	0x0
166f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE3_PCIE0_LANE3	0x1
167f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE3_PCIE2_LANE1	0x2
168f126890aSEmmanuel Vadot #define J784S4_SERDES1_LANE3_IP4_UNUSED		0x3
169f126890aSEmmanuel Vadot 
170f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE0_QSGMII_LANE5	0x0
171f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE0_IP2_UNUSED		0x1
172f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE0_IP3_UNUSED		0x2
173f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE0_IP4_UNUSED		0x3
174f126890aSEmmanuel Vadot 
175f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE1_QSGMII_LANE6	0x0
176f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE1_IP2_UNUSED		0x1
177f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE1_IP3_UNUSED		0x2
178f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE1_IP4_UNUSED		0x3
179f126890aSEmmanuel Vadot 
180f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE2_QSGMII_LANE7	0x0
181f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE2_QSGMII_LANE1	0x1
182f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE2_IP3_UNUSED		0x2
183f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE2_IP4_UNUSED		0x3
184f126890aSEmmanuel Vadot 
185f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE3_QSGMII_LANE8	0x0
186f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE3_QSGMII_LANE2	0x1
187f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE3_IP3_UNUSED		0x2
188f126890aSEmmanuel Vadot #define J784S4_SERDES2_LANE3_IP4_UNUSED		0x3
189f126890aSEmmanuel Vadot 
1906be33864SEmmanuel Vadot #endif /* _DT_BINDINGS_MUX_TI_SERDES */
191