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 * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef DTS_ARM64_TI_K3_SERDES_H
962306a36Sopenharmony_ci#define DTS_ARM64_TI_K3_SERDES_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci/* J721E */
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_QSGMII_LANE1	0x0
1462306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_PCIE0_LANE0		0x1
1562306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_USB3_0_SWAP		0x2
1662306a36Sopenharmony_ci#define J721E_SERDES0_LANE0_IP4_UNUSED		0x3
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_QSGMII_LANE2	0x0
1962306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_PCIE0_LANE1		0x1
2062306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_USB3_0		0x2
2162306a36Sopenharmony_ci#define J721E_SERDES0_LANE1_IP4_UNUSED		0x3
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_QSGMII_LANE3	0x0
2462306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_PCIE1_LANE0		0x1
2562306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_USB3_1_SWAP		0x2
2662306a36Sopenharmony_ci#define J721E_SERDES1_LANE0_SGMII_LANE0		0x3
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_QSGMII_LANE4	0x0
2962306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_PCIE1_LANE1		0x1
3062306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_USB3_1		0x2
3162306a36Sopenharmony_ci#define J721E_SERDES1_LANE1_SGMII_LANE1		0x3
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_IP1_UNUSED		0x0
3462306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_PCIE2_LANE0		0x1
3562306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_USB3_1_SWAP		0x2
3662306a36Sopenharmony_ci#define J721E_SERDES2_LANE0_SGMII_LANE0		0x3
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_IP1_UNUSED		0x0
3962306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_PCIE2_LANE1		0x1
4062306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_USB3_1		0x2
4162306a36Sopenharmony_ci#define J721E_SERDES2_LANE1_SGMII_LANE1		0x3
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_IP1_UNUSED		0x0
4462306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_PCIE3_LANE0		0x1
4562306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_USB3_0_SWAP		0x2
4662306a36Sopenharmony_ci#define J721E_SERDES3_LANE0_IP4_UNUSED		0x3
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_IP1_UNUSED		0x0
4962306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_PCIE3_LANE1		0x1
5062306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_USB3_0		0x2
5162306a36Sopenharmony_ci#define J721E_SERDES3_LANE1_IP4_UNUSED		0x3
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_EDP_LANE0		0x0
5462306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_IP2_UNUSED		0x1
5562306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_QSGMII_LANE5	0x2
5662306a36Sopenharmony_ci#define J721E_SERDES4_LANE0_IP4_UNUSED		0x3
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_EDP_LANE1		0x0
5962306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_IP2_UNUSED		0x1
6062306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_QSGMII_LANE6	0x2
6162306a36Sopenharmony_ci#define J721E_SERDES4_LANE1_IP4_UNUSED		0x3
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_EDP_LANE2		0x0
6462306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_IP2_UNUSED		0x1
6562306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_QSGMII_LANE7	0x2
6662306a36Sopenharmony_ci#define J721E_SERDES4_LANE2_IP4_UNUSED		0x3
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_EDP_LANE3		0x0
6962306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_IP2_UNUSED		0x1
7062306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_QSGMII_LANE8	0x2
7162306a36Sopenharmony_ci#define J721E_SERDES4_LANE3_IP4_UNUSED		0x3
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci/* J7200 */
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_QSGMII_LANE3	0x0
7662306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_PCIE1_LANE0		0x1
7762306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_IP3_UNUSED		0x2
7862306a36Sopenharmony_ci#define J7200_SERDES0_LANE0_IP4_UNUSED		0x3
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_QSGMII_LANE4	0x0
8162306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_PCIE1_LANE1		0x1
8262306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_IP3_UNUSED		0x2
8362306a36Sopenharmony_ci#define J7200_SERDES0_LANE1_IP4_UNUSED		0x3
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_QSGMII_LANE1	0x0
8662306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_PCIE1_LANE2		0x1
8762306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_IP3_UNUSED		0x2
8862306a36Sopenharmony_ci#define J7200_SERDES0_LANE2_IP4_UNUSED		0x3
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_QSGMII_LANE2	0x0
9162306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_PCIE1_LANE3		0x1
9262306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_USB			0x2
9362306a36Sopenharmony_ci#define J7200_SERDES0_LANE3_IP4_UNUSED		0x3
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci/* AM64 */
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ci#define AM64_SERDES0_LANE0_PCIE0		0x0
9862306a36Sopenharmony_ci#define AM64_SERDES0_LANE0_USB			0x1
9962306a36Sopenharmony_ci
10062306a36Sopenharmony_ci/* J721S2 */
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_EDP_LANE0		0x0
10362306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_PCIE1_LANE0	0x1
10462306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_IP3_UNUSED		0x2
10562306a36Sopenharmony_ci#define J721S2_SERDES0_LANE0_IP4_UNUSED		0x3
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_EDP_LANE1		0x0
10862306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_PCIE1_LANE1	0x1
10962306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_USB		0x2
11062306a36Sopenharmony_ci#define J721S2_SERDES0_LANE1_IP4_UNUSED		0x3
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_EDP_LANE2		0x0
11362306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_PCIE1_LANE2	0x1
11462306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_IP3_UNUSED		0x2
11562306a36Sopenharmony_ci#define J721S2_SERDES0_LANE2_IP4_UNUSED		0x3
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_EDP_LANE3		0x0
11862306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_PCIE1_LANE3	0x1
11962306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_USB		0x2
12062306a36Sopenharmony_ci#define J721S2_SERDES0_LANE3_IP4_UNUSED		0x3
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ci/* J784S4 */
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_IP1_UNUSED		0x0
12562306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_PCIE1_LANE0	0x1
12662306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_IP3_UNUSED		0x2
12762306a36Sopenharmony_ci#define J784S4_SERDES0_LANE0_IP4_UNUSED		0x3
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_IP1_UNUSED		0x0
13062306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_PCIE1_LANE1	0x1
13162306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_IP3_UNUSED		0x2
13262306a36Sopenharmony_ci#define J784S4_SERDES0_LANE1_IP4_UNUSED		0x3
13362306a36Sopenharmony_ci
13462306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_PCIE3_LANE0	0x0
13562306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_PCIE1_LANE2	0x1
13662306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_IP3_UNUSED		0x2
13762306a36Sopenharmony_ci#define J784S4_SERDES0_LANE2_IP4_UNUSED		0x3
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_PCIE3_LANE1	0x0
14062306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_PCIE1_LANE3	0x1
14162306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_USB		0x2
14262306a36Sopenharmony_ci#define J784S4_SERDES0_LANE3_IP4_UNUSED		0x3
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_QSGMII_LANE3	0x0
14562306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_PCIE0_LANE0	0x1
14662306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_IP3_UNUSED		0x2
14762306a36Sopenharmony_ci#define J784S4_SERDES1_LANE0_IP4_UNUSED		0x3
14862306a36Sopenharmony_ci
14962306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_QSGMII_LANE4	0x0
15062306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_PCIE0_LANE1	0x1
15162306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_IP3_UNUSED		0x2
15262306a36Sopenharmony_ci#define J784S4_SERDES1_LANE1_IP4_UNUSED		0x3
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_QSGMII_LANE1	0x0
15562306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_PCIE0_LANE2	0x1
15662306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_PCIE2_LANE0	0x2
15762306a36Sopenharmony_ci#define J784S4_SERDES1_LANE2_IP4_UNUSED		0x3
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_QSGMII_LANE2	0x0
16062306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_PCIE0_LANE3	0x1
16162306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_PCIE2_LANE1	0x2
16262306a36Sopenharmony_ci#define J784S4_SERDES1_LANE3_IP4_UNUSED		0x3
16362306a36Sopenharmony_ci
16462306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_QSGMII_LANE5	0x0
16562306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_IP2_UNUSED		0x1
16662306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_IP3_UNUSED		0x2
16762306a36Sopenharmony_ci#define J784S4_SERDES2_LANE0_IP4_UNUSED		0x3
16862306a36Sopenharmony_ci
16962306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_QSGMII_LANE6	0x0
17062306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_IP2_UNUSED		0x1
17162306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_IP3_UNUSED		0x2
17262306a36Sopenharmony_ci#define J784S4_SERDES2_LANE1_IP4_UNUSED		0x3
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_QSGMII_LANE7	0x0
17562306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_QSGMII_LANE1	0x1
17662306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_IP3_UNUSED		0x2
17762306a36Sopenharmony_ci#define J784S4_SERDES2_LANE2_IP4_UNUSED		0x3
17862306a36Sopenharmony_ci
17962306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_QSGMII_LANE8	0x0
18062306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_QSGMII_LANE2	0x1
18162306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_IP3_UNUSED		0x2
18262306a36Sopenharmony_ci#define J784S4_SERDES2_LANE3_IP4_UNUSED		0x3
18362306a36Sopenharmony_ci
18462306a36Sopenharmony_ci#define J784S4_SERDES4_LANE0_EDP_LANE0		0x0
18562306a36Sopenharmony_ci#define J784S4_SERDES4_LANE0_QSGMII_LANE5	0x1
18662306a36Sopenharmony_ci#define J784S4_SERDES4_LANE0_IP3_UNUSED		0x2
18762306a36Sopenharmony_ci#define J784S4_SERDES4_LANE0_IP4_UNUSED		0x3
18862306a36Sopenharmony_ci
18962306a36Sopenharmony_ci#define J784S4_SERDES4_LANE1_EDP_LANE1		0x0
19062306a36Sopenharmony_ci#define J784S4_SERDES4_LANE1_QSGMII_LANE6	0x1
19162306a36Sopenharmony_ci#define J784S4_SERDES4_LANE1_IP3_UNUSED		0x2
19262306a36Sopenharmony_ci#define J784S4_SERDES4_LANE1_IP4_UNUSED		0x3
19362306a36Sopenharmony_ci
19462306a36Sopenharmony_ci#define J784S4_SERDES4_LANE2_EDP_LANE2		0x0
19562306a36Sopenharmony_ci#define J784S4_SERDES4_LANE2_QSGMII_LANE7	0x1
19662306a36Sopenharmony_ci#define J784S4_SERDES4_LANE2_IP3_UNUSED		0x2
19762306a36Sopenharmony_ci#define J784S4_SERDES4_LANE2_IP4_UNUSED		0x3
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ci#define J784S4_SERDES4_LANE3_EDP_LANE3		0x0
20062306a36Sopenharmony_ci#define J784S4_SERDES4_LANE3_QSGMII_LANE8	0x1
20162306a36Sopenharmony_ci#define J784S4_SERDES4_LANE3_USB		0x2
20262306a36Sopenharmony_ci#define J784S4_SERDES4_LANE3_IP4_UNUSED		0x3
20362306a36Sopenharmony_ci
20462306a36Sopenharmony_ci#endif /* DTS_ARM64_TI_K3_SERDES_H */
205