| 1 | /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ |
| 2 | /* |
| 3 | * Copyright (C) 2025 Renesas Electronics Corporation. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _DT_BINDINGS_RENASAS_R9A09G077_PCS_MIIC_H |
| 7 | #define _DT_BINDINGS_RENASAS_R9A09G077_PCS_MIIC_H |
| 8 | |
| 9 | /* |
| 10 | * Media Interface Connection Matrix |
| 11 | * =========================================================== |
| 12 | * |
| 13 | * Selects the function of the Media interface of the MAC to be used |
| 14 | * |
| 15 | * SW_MODE[2:0] | Port 0 | Port 1 | Port 2 | Port 3 |
| 16 | * -------------|-------------|-------------|-------------|------------- |
| 17 | * 000b | ETHSW Port0 | ETHSW Port1 | ETHSW Port2 | GMAC1 |
| 18 | * 001b | ESC Port0 | ESC Port1 | GMAC2 | GMAC1 |
| 19 | * 010b | ESC Port0 | ESC Port1 | ETHSW Port2 | GMAC1 |
| 20 | * 011b | ESC Port0 | ESC Port1 | ESC Port2 | GMAC1 |
| 21 | * 100b | ETHSW Port0 | ESC Port1 | ESC Port2 | GMAC1 |
| 22 | * 101b | ETHSW Port0 | ESC Port1 | ETHSW Port2 | GMAC1 |
| 23 | * 110b | ETHSW Port0 | ETHSW Port1 | GMAC2 | GMAC1 |
| 24 | * 111b | GMAC0 | GMAC1 | GMAC2 | - |
| 25 | */ |
| 26 | #define ETHSS_GMAC0_PORT 0 |
| 27 | #define ETHSS_GMAC1_PORT 1 |
| 28 | #define ETHSS_GMAC2_PORT 2 |
| 29 | #define ETHSS_ESC_PORT0 3 |
| 30 | #define ETHSS_ESC_PORT1 4 |
| 31 | #define ETHSS_ESC_PORT2 5 |
| 32 | #define ETHSS_ETHSW_PORT0 6 |
| 33 | #define ETHSS_ETHSW_PORT1 7 |
| 34 | #define ETHSS_ETHSW_PORT2 8 |
| 35 | |
| 36 | #endif |
| 37 | |