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