| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * board_config.h — hardware pin map for the ESP32-P4 Dante/AES67 endpoint.
- *
- * Reference target: DatanoiseTV ESP32-P4-NANO (Ethernet via IP101 GRI PHY on
- * RMII, onboard ES8311 codec + NS4150B amp). Values mirror the pin table in
- * README.md. If the deployed board differs, update BOTH this file and the
- * README table together (see CLAUDE.md).
- *
- * NOTE: some I2S functions have alternate "onboard" pin options noted in the
- * README. The active values below use the primary column; onboard variants
- * are listed in comments for quick swapping.
- */
- #pragma once
- /* ---- Ethernet (RMII to IP101 GRI PHY) ---- */
- #define BOARD_ETH_MDC_GPIO 31
- #define BOARD_ETH_MDIO_GPIO 52
- #define BOARD_ETH_REF_CLK_GPIO 50 /* external 50 MHz clock */
- #define BOARD_ETH_PHY_RST_GPIO 51
- #define BOARD_ETH_PHY_ADDR 1
- /* ---- I2S audio to ES8311 codec ---- */
- #define BOARD_I2S_MCLK_GPIO 13 /* 18.432 MHz via APLL */
- #define BOARD_I2S_BCLK_GPIO 36 /* onboard alt: 12 */
- #define BOARD_I2S_LRCLK_GPIO 33 /* onboard alt: 10 */
- #define BOARD_I2S_DOUT_GPIO 32 /* onboard alt: 9 */
- #define BOARD_I2S_DIN_GPIO 11 /* codec ADC input */
- /* ---- Power amp enable (NS4150B) ---- */
- #define BOARD_PA_ENABLE_GPIO 53 /* active high */
- /* ---- I2C control bus (ES8311) ---- */
- #define BOARD_I2C_SCL_GPIO 8
- #define BOARD_I2C_SDA_GPIO 7
- /* ---- Default audio format ---- */
- #define BOARD_AUDIO_SAMPLE_RATE 48000
- #define BOARD_AUDIO_BIT_DEPTH 24 /* AES67 L24 */
- #define BOARD_AUDIO_CHANNELS 2
|