Harini Katakam | abe4503 | 2020-09-08 15:22:36 +0530 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| 2 | /* |
| 3 | * Device Tree constants for Microsemi VSC8531 PHY |
| 4 | * |
| 5 | * Author: Nagaraju Lakkaraju |
| 6 | * |
| 7 | * Copyright (c) 2017 Microsemi Corporation |
| 8 | */ |
| 9 | |
| 10 | #ifndef _DT_BINDINGS_MSCC_VSC8531_H |
| 11 | #define _DT_BINDINGS_MSCC_VSC8531_H |
| 12 | |
| 13 | /* PHY LED Modes */ |
| 14 | #define VSC8531_LINK_ACTIVITY 0 |
| 15 | #define VSC8531_LINK_1000_ACTIVITY 1 |
| 16 | #define VSC8531_LINK_100_ACTIVITY 2 |
| 17 | #define VSC8531_LINK_10_ACTIVITY 3 |
| 18 | #define VSC8531_LINK_100_1000_ACTIVITY 4 |
| 19 | #define VSC8531_LINK_10_1000_ACTIVITY 5 |
| 20 | #define VSC8531_LINK_10_100_ACTIVITY 6 |
| 21 | #define VSC8584_LINK_100FX_1000X_ACTIVITY 7 |
| 22 | #define VSC8531_DUPLEX_COLLISION 8 |
| 23 | #define VSC8531_COLLISION 9 |
| 24 | #define VSC8531_ACTIVITY 10 |
| 25 | #define VSC8584_100FX_1000X_ACTIVITY 11 |
| 26 | #define VSC8531_AUTONEG_FAULT 12 |
| 27 | #define VSC8531_SERIAL_MODE 13 |
| 28 | #define VSC8531_FORCE_LED_OFF 14 |
| 29 | #define VSC8531_FORCE_LED_ON 15 |
| 30 | |
| 31 | #define VSC8531_RGMII_CLK_DELAY_0_2_NS 0 |
| 32 | #define VSC8531_RGMII_CLK_DELAY_0_8_NS 1 |
| 33 | #define VSC8531_RGMII_CLK_DELAY_1_1_NS 2 |
| 34 | #define VSC8531_RGMII_CLK_DELAY_1_7_NS 3 |
| 35 | #define VSC8531_RGMII_CLK_DELAY_2_0_NS 4 |
| 36 | #define VSC8531_RGMII_CLK_DELAY_2_3_NS 5 |
| 37 | #define VSC8531_RGMII_CLK_DELAY_2_6_NS 6 |
| 38 | #define VSC8531_RGMII_CLK_DELAY_3_4_NS 7 |
| 39 | |
| 40 | #endif |