| 
 | 1 | + | 
 | 2 | +SAI - Linear Pluggable Optics (LPO) support  | 
 | 3 | +============================================  | 
 | 4 | + | 
 | 5 | +| Title       | SAI LPO attributes         |  | 
 | 6 | +|-------------|----------------------------|  | 
 | 7 | +| Authors     | Pulla Rao, Broadcom Inc    |  | 
 | 8 | +| Status      | In Review                  |  | 
 | 9 | +| Type        | Standards Track            |  | 
 | 10 | +| Created     | 06/09/2025                 |  | 
 | 11 | +| SAI-Version | 1.16                       |  | 
 | 12 | + | 
 | 13 | +### 1. Overview  | 
 | 14 | +---------------  | 
 | 15 | +LPO optics are designed specifically to meet the data center requirements for low power consumption, low cost, low latency, compact form factor, reach up to 500meters.   | 
 | 16 | + | 
 | 17 | +This document defines the port serdes attributes used to tune the Linear Pluggable Optics (LPO). At a port level, the attributes define the non-linear compensation percentage values, Error Correcting Decoder (ECD) state and Tx/Rx polarity settings.   | 
 | 18 | + | 
 | 19 | +### 2. Specification  | 
 | 20 | +--------------------  | 
 | 21 | + | 
 | 22 | +#### 2.1 Changes to saiport.h  | 
 | 23 | +-----------------------------  | 
 | 24 | +    /**  | 
 | 25 | +     * @brief Serdes Rx Error Correcting Decoder/Maximum Likelihood  | 
 | 26 | +     * Sequence Estimation control state  | 
 | 27 | +     */  | 
 | 28 | +    typedef enum _sai_port_serdes_rx_ecd_mlse_state_t  | 
 | 29 | +    {  | 
 | 30 | +        /** Disable */  | 
 | 31 | +	SAI_PORT_SERDES_RX_ECD_MLSE_STATE_DISABLE,  | 
 | 32 | +        /** Enable */  | 
 | 33 | +        SAI_PORT_SERDES_RX_ECD_MLSE_STATE_ENABLE  | 
 | 34 | +	  | 
 | 35 | +    } sai_port_serdes_rx_ecd_mlse_state_t;  | 
 | 36 | + | 
 | 37 | +    /**  | 
 | 38 | +     * @brief Serdes polarity setting value  | 
 | 39 | +     */  | 
 | 40 | +    typedef enum _sai_port_serdes_polarity_t  | 
 | 41 | +    {  | 
 | 42 | +        /** Normal polarity */  | 
 | 43 | +        SAI_PORT_SERDES_POLARITY_NORMAL,  | 
 | 44 | +        /** Inverted polarity */  | 
 | 45 | +        SAI_PORT_SERDES_POLARITY_INVERTED  | 
 | 46 | +	  | 
 | 47 | +    } sai_port_serdes_polarity_t;  | 
 | 48 | +		  | 
 | 49 | + | 
 | 50 | +The following attributes are added to `sai_port_serdes_attr_t`:  | 
 | 51 | + | 
 | 52 | +    /**  | 
 | 53 | +     * @brief Port serdes Tx upper eye non linear compensation percentage value  | 
 | 54 | +     *  | 
 | 55 | +     * List of port serdes Tx upper eye non linear compensation percentage value  | 
 | 56 | +     * The values are of type sai_u32_list_t where the count is number of lanes  | 
 | 57 | +     * in a port and the list specifies list of values to be applied to each  | 
 | 58 | +     * lane.  | 
 | 59 | +     *  | 
 | 60 | +     * @type sai_u32_list_t  | 
 | 61 | +     * @flags CREATE_AND_SET  | 
 | 62 | +     * @default internal  | 
 | 63 | +     */  | 
 | 64 | +    SAI_PORT_SERDES_ATTR_TX_NLC_PERCENTAGE,  | 
 | 65 | + | 
 | 66 | +    /**  | 
 | 67 | +     * @brief Port serdes Tx lower eye non linear compensation percentage value  | 
 | 68 | +     *  | 
 | 69 | +     * List of port serdes Tx lower eye non linear compensation percentage value  | 
 | 70 | +     * The values are of type sai_u32_list_t where the count is number of lanes  | 
 | 71 | +     * in a port and the list specifies list of values to be applied to each  | 
 | 72 | +     * lane.  | 
 | 73 | +     *  | 
 | 74 | +     * @type sai_u32_list_t  | 
 | 75 | +     * @flags CREATE_AND_SET  | 
 | 76 | +     * @default internal  | 
 | 77 | +     */  | 
 | 78 | +    SAI_PORT_SERDES_ATTR_TX_NLC_LOWER_EYE_PERCENTAGE,  | 
 | 79 | + | 
 | 80 | +    /**  | 
 | 81 | +     * @brief Port serdes Rx Error Correcting Decoder/Maximum Likelihood  | 
 | 82 | +     * Sequence Estimation control  | 
 | 83 | +     *  | 
 | 84 | +     * To enable/disable Rx ECD for a port with back plane media type.  | 
 | 85 | +     *  | 
 | 86 | +     * @type sai_s32_list_t sai_port_serdes_rx_ecd_mlse_state_t  | 
 | 87 | +     * @flags CREATE_AND_SET  | 
 | 88 | +     * @default empty  | 
 | 89 | +     */  | 
 | 90 | +    SAI_PORT_SERDES_ATTR_RX_ECD_MLSE_STATE,  | 
 | 91 | + | 
 | 92 | +     /**  | 
 | 93 | +     * @brief Port serdes control for inverted TX polarity setting  | 
 | 94 | +     *  | 
 | 95 | +     * TX polarity setting value  | 
 | 96 | +     * The values are of type sai_s32_list_t where the count is number of lanes in  | 
 | 97 | +     * a port and the list specifies list of values to be applied to each lane.  | 
 | 98 | +     * This extension is added to support both create and set operations.  | 
 | 99 | +     *  | 
 | 100 | +     * @type sai_s32_list_t sai_port_serdes_polarity_t  | 
 | 101 | +     * @flags CREATE_AND_SET  | 
 | 102 | +     * @default internal  | 
 | 103 | +     */  | 
 | 104 | +    SAI_PORT_SERDES_ATTR_TX_POLARITY,  | 
 | 105 | + | 
 | 106 | +    /**  | 
 | 107 | +     * @brief Port serdes control for inverted RX polarity setting  | 
 | 108 | +     *  | 
 | 109 | +     * RX polarity setting value  | 
 | 110 | +     * The values are of type sai_s32_list_t where the count is number of lanes in  | 
 | 111 | +     * a port and the list specifies list of values to be applied to each lane.  | 
 | 112 | +     * This extension is added to support both create and set operations.  | 
 | 113 | +     *  | 
 | 114 | +     * @type sai_s32_list_t sai_port_serdes_polarity_t  | 
 | 115 | +     * @flags CREATE_AND_SET  | 
 | 116 | +     * @default internal  | 
 | 117 | +     */  | 
 | 118 | +    SAI_PORT_SERDES_ATTR_RX_POLARITY,  | 
 | 119 | + | 
0 commit comments