From 2e7e5d36c09bd2743ed0cf8dc01e21345cf0c08a Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Sun, 8 Feb 2026 22:43:19 +0100 Subject: [PATCH] Update binding yaml spec --- Platforms/PlatformEsp32/Bindings/espressif,esp32-i2c.yaml | 4 ++++ Platforms/PlatformEsp32/Bindings/espressif,esp32-i2s.yaml | 6 +++--- Platforms/PlatformEsp32/Bindings/espressif,esp32-spi.yaml | 3 +++ Platforms/PlatformEsp32/Bindings/espressif,esp32-uart.yaml | 2 ++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2c.yaml b/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2c.yaml index 553fbf80..fff784b7 100644 --- a/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2c.yaml +++ b/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2c.yaml @@ -7,16 +7,20 @@ compatible: "espressif,esp32-i2c" properties: port: type: int + required: true description: | The port number, defined by i2c_port_t. Depending on the hardware, these values are available: I2C_NUM_0, I2C_NUM_1, LP_I2C_NUM_0 clock-frequency: type: int + required: true description: Initial clock frequency in Hz pin-sda: type: int + required: true pin-scl: type: int + required: true pin-sda-pull-up: type: bool description: enable internal pull-up resistor for SDA pin diff --git a/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2s.yaml b/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2s.yaml index ee271293..dec9e63f 100644 --- a/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2s.yaml +++ b/Platforms/PlatformEsp32/Bindings/espressif,esp32-i2s.yaml @@ -21,13 +21,13 @@ properties: description: WS pin pin-data-out: type: int - required: true description: DATA OUT pin pin-data-in: type: int - required: true + required: false description: DATA IN pin pin-mclk: type: int - required: true + required: false + default: GPIO_PIN_NONE description: MCLK pin diff --git a/Platforms/PlatformEsp32/Bindings/espressif,esp32-spi.yaml b/Platforms/PlatformEsp32/Bindings/espressif,esp32-spi.yaml index d6555dbc..4166042f 100644 --- a/Platforms/PlatformEsp32/Bindings/espressif,esp32-spi.yaml +++ b/Platforms/PlatformEsp32/Bindings/espressif,esp32-spi.yaml @@ -25,12 +25,15 @@ properties: description: Clock pin pin-wp: type: int + default: GPIO_PIN_NONE description: WP (Data 2) pin pin-hd: type: int + default: GPIO_PIN_NONE description: HD (Data 3) pin max-transfer-size: type: int + default: 0 description: | Data transfer size limit in bytes. 0 means the platform decides the limit. diff --git a/Platforms/PlatformEsp32/Bindings/espressif,esp32-uart.yaml b/Platforms/PlatformEsp32/Bindings/espressif,esp32-uart.yaml index f39b11c6..c6a077e7 100644 --- a/Platforms/PlatformEsp32/Bindings/espressif,esp32-uart.yaml +++ b/Platforms/PlatformEsp32/Bindings/espressif,esp32-uart.yaml @@ -21,7 +21,9 @@ properties: description: RX pin pin-cts: type: int + default: GPIO_PIN_NONE description: CTS pin pin-rts: type: int + default: GPIO_PIN_NONE description: RTS pin