162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * This header provides constants for SERDES MUX for TI SoCs
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_MUX_TI_SERDES
762306a36Sopenharmony_ci#define _DT_BINDINGS_MUX_TI_SERDES
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/*
1062306a36Sopenharmony_ci * These bindings are deprecated, because they do not match the actual
1162306a36Sopenharmony_ci * concept of bindings but rather contain pure constants values used only
1262306a36Sopenharmony_ci * in DTS board files.
1362306a36Sopenharmony_ci * Instead include the header in the DTS source directory.
1462306a36Sopenharmony_ci */
1562306a36Sopenharmony_ci#warning "These bindings are deprecated. Instead, use the header in the DTS source directory."
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/* J721E */
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_QSGMII_LANE1	0x0
2062306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_PCIE0_LANE0		0x1
2162306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_USB3_0_SWAP		0x2
2262306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_IP4_UNUSED		0x3
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_QSGMII_LANE2	0x0
2562306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_PCIE0_LANE1		0x1
2662306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_USB3_0		0x2
2762306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_IP4_UNUSED		0x3
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_QSGMII_LANE3	0x0
3062306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_PCIE1_LANE0		0x1
3162306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_USB3_1_SWAP		0x2
3262306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_SGMII_LANE0		0x3
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_QSGMII_LANE4	0x0
3562306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_PCIE1_LANE1		0x1
3662306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_USB3_1		0x2
3762306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_SGMII_LANE1		0x3
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_IP1_UNUSED		0x0
4062306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_PCIE2_LANE0		0x1
4162306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_USB3_1_SWAP		0x2
4262306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_SGMII_LANE0		0x3
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_IP1_UNUSED		0x0
4562306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_PCIE2_LANE1		0x1
4662306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_USB3_1		0x2
4762306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_SGMII_LANE1		0x3
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_IP1_UNUSED		0x0
5062306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_PCIE3_LANE0		0x1
5162306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_USB3_0_SWAP		0x2
5262306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_IP4_UNUSED		0x3
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_IP1_UNUSED		0x0
5562306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_PCIE3_LANE1		0x1
5662306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_USB3_0		0x2
5762306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_IP4_UNUSED		0x3
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_EDP_LANE0		0x0
6062306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_IP2_UNUSED		0x1
6162306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_QSGMII_LANE5	0x2
6262306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_IP4_UNUSED		0x3
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_EDP_LANE1		0x0
6562306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_IP2_UNUSED		0x1
6662306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_QSGMII_LANE6	0x2
6762306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_IP4_UNUSED		0x3
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_EDP_LANE2		0x0
7062306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_IP2_UNUSED		0x1
7162306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_QSGMII_LANE7	0x2
7262306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_IP4_UNUSED		0x3
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_EDP_LANE3		0x0
7562306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_IP2_UNUSED		0x1
7662306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_QSGMII_LANE8	0x2
7762306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_IP4_UNUSED		0x3
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ci/* J7200 */
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_QSGMII_LANE3	0x0
8262306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_PCIE1_LANE0		0x1
8362306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_IP3_UNUSED		0x2
8462306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_IP4_UNUSED		0x3
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_QSGMII_LANE4	0x0
8762306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_PCIE1_LANE1		0x1
8862306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_IP3_UNUSED		0x2
8962306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_IP4_UNUSED		0x3
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_QSGMII_LANE1	0x0
9262306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_PCIE1_LANE2		0x1
9362306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_IP3_UNUSED		0x2
9462306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_IP4_UNUSED		0x3
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_QSGMII_LANE2	0x0
9762306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_PCIE1_LANE3		0x1
9862306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_USB			0x2
9962306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_IP4_UNUSED		0x3
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ci/* AM64 */
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ci#define AM64_SERDES0_LANE0_PCIE0		0x0
10462306a36Sopenharmony_ci#define AM64_SERDES0_LANE0_USB			0x1
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_ci/* J721S2 */
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_EDP_LANE0		0x0
10962306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_PCIE1_LANE0	0x1
11062306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_IP3_UNUSED		0x2
11162306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_IP4_UNUSED		0x3
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_EDP_LANE1		0x0
11462306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_PCIE1_LANE1	0x1
11562306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_USB		0x2
11662306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_IP4_UNUSED		0x3
11762306a36Sopenharmony_ci
11862306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_EDP_LANE2		0x0
11962306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_PCIE1_LANE2	0x1
12062306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_IP3_UNUSED		0x2
12162306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_IP4_UNUSED		0x3
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_EDP_LANE3		0x0
12462306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_PCIE1_LANE3	0x1
12562306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_USB		0x2
12662306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_IP4_UNUSED		0x3
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ci/* J784S4 */
12962306a36Sopenharmony_ci
13062306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_IP1_UNUSED		0x0
13162306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_PCIE1_LANE0	0x1
13262306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_IP3_UNUSED		0x2
13362306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_IP4_UNUSED		0x3
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_IP1_UNUSED		0x0
13662306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_PCIE1_LANE1	0x1
13762306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_IP3_UNUSED		0x2
13862306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_IP4_UNUSED		0x3
13962306a36Sopenharmony_ci
14062306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_PCIE3_LANE0	0x0
14162306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_PCIE1_LANE2	0x1
14262306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_IP3_UNUSED		0x2
14362306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_IP4_UNUSED		0x3
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_PCIE3_LANE1	0x0
14662306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_PCIE1_LANE3	0x1
14762306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_USB		0x2
14862306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_IP4_UNUSED		0x3
14962306a36Sopenharmony_ci
15062306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_QSGMII_LANE3	0x0
15162306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_PCIE0_LANE0	0x1
15262306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_IP3_UNUSED		0x2
15362306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_IP4_UNUSED		0x3
15462306a36Sopenharmony_ci
15562306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_QSGMII_LANE4	0x0
15662306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_PCIE0_LANE1	0x1
15762306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_IP3_UNUSED		0x2
15862306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_IP4_UNUSED		0x3
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_QSGMII_LANE1	0x0
16162306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_PCIE0_LANE2	0x1
16262306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_PCIE2_LANE0	0x2
16362306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_IP4_UNUSED		0x3
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_QSGMII_LANE2	0x0
16662306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_PCIE0_LANE3	0x1
16762306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_PCIE2_LANE1	0x2
16862306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_IP4_UNUSED		0x3
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_QSGMII_LANE5	0x0
17162306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_IP2_UNUSED		0x1
17262306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_IP3_UNUSED		0x2
17362306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_IP4_UNUSED		0x3
17462306a36Sopenharmony_ci
17562306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_QSGMII_LANE6	0x0
17662306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_IP2_UNUSED		0x1
17762306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_IP3_UNUSED		0x2
17862306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_IP4_UNUSED		0x3
17962306a36Sopenharmony_ci
18062306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_QSGMII_LANE7	0x0
18162306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_QSGMII_LANE1	0x1
18262306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_IP3_UNUSED		0x2
18362306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_IP4_UNUSED		0x3
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_QSGMII_LANE8	0x0
18662306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_QSGMII_LANE2	0x1
18762306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_IP3_UNUSED		0x2
18862306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_IP4_UNUSED		0x3
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_ci#endif /* _DT_BINDINGS_MUX_TI_SERDES */
191