|
| 1 | +/* |
| 2 | + * Copyright (c) 2025 tinyVision.ai Inc. |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + */ |
| 5 | +#ifndef INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_DVP_20PIN_CONNECTOR_H_ |
| 6 | +#define INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_DVP_20PIN_CONNECTOR_H_ |
| 7 | + |
| 8 | +/** Pin number mask (0..20). */ |
| 9 | +#define DVP_20PIN_MASK 0xff |
| 10 | + |
| 11 | +/** |
| 12 | + * @name Arducam DVP 20-pin or 18-pin connector pinout |
| 13 | + * @{ |
| 14 | + */ |
| 15 | +#define DVP_20PIN_SCL 3 /**< I2C pin */ |
| 16 | +#define DVP_20PIN_SDA 4 /**< I2C pin */ |
| 17 | +#define DVP_20PIN_VS 5 /**< Vertical sync */ |
| 18 | +#define DVP_20PIN_HS 6 /**< Horizontal sync */ |
| 19 | +#define DVP_20PIN_PCLK 7 /**< Pixel clock used to transmit the data */ |
| 20 | +#define DVP_20PIN_XCLK 8 /**< System clock often needed for I2C communication */ |
| 21 | +#define DVP_20PIN_D7 9 /**< Parallel port data */ |
| 22 | +#define DVP_20PIN_D6 10 /**< Parallel port data */ |
| 23 | +#define DVP_20PIN_D5 11 /**< Parallel port data */ |
| 24 | +#define DVP_20PIN_D4 12 /**< Parallel port data */ |
| 25 | +#define DVP_20PIN_D3 13 /**< Parallel port data */ |
| 26 | +#define DVP_20PIN_D2 14 /**< Parallel port data */ |
| 27 | +#define DVP_20PIN_D1 15 /**< Parallel port data */ |
| 28 | +#define DVP_20PIN_D0 16 /**< Parallel port data */ |
| 29 | +#define DVP_20PIN_PEN 17 /**< Power Enable */ |
| 30 | +#define DVP_20PIN_PDN 18 /**< Power Down */ |
| 31 | +#define DVP_20PIN_GPIO0 19 /**< Extra GPIO pin present on some modules */ |
| 32 | +#define DVP_20PIN_GPIO1 20 /**< Extra GPIO pin present on some modules */ |
| 33 | +/** @} */ |
| 34 | + |
| 35 | +#endif /* INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_DVP_20PIN_CONNECTOR_H_ */ |
0 commit comments