| 1 | /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ |
| 2 | /* |
| 3 | * Copyright (c) 2021 Linaro Ltd. |
| 4 | * Author: Sam Protsenko <semen.protsenko@linaro.org> |
| 5 | * |
| 6 | * Device Tree bindings for Samsung Exynos USI (Universal Serial Interface). |
| 7 | */ |
| 8 | |
| 9 | #ifndef __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H |
| 10 | #define __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H |
| 11 | |
| 12 | #define USI_MODE_NONE 0 |
| 13 | #define USI_MODE_UART 1 |
| 14 | #define USI_MODE_SPI 2 |
| 15 | #define USI_MODE_I2C 3 |
| 16 | #define USI_MODE_I2C1 4 |
| 17 | #define USI_MODE_I2C0_1 5 |
| 18 | #define USI_MODE_UART_I2C1 6 |
| 19 | |
| 20 | /* Deprecated */ |
| 21 | #define USI_V2_NONE USI_MODE_NONE |
| 22 | #define USI_V2_UART USI_MODE_UART |
| 23 | #define USI_V2_SPI USI_MODE_SPI |
| 24 | #define USI_V2_I2C USI_MODE_I2C |
| 25 | |
| 26 | #endif /* __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H */ |
| 27 | |