Update binding yaml spec

This commit is contained in:
Ken Van Hoeylandt 2026-02-08 22:43:19 +01:00
parent 20f358ebe5
commit 2e7e5d36c0
4 changed files with 12 additions and 3 deletions

View File

@ -7,16 +7,20 @@ compatible: "espressif,esp32-i2c"
properties: properties:
port: port:
type: int type: int
required: true
description: | description: |
The port number, defined by i2c_port_t. 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 Depending on the hardware, these values are available: I2C_NUM_0, I2C_NUM_1, LP_I2C_NUM_0
clock-frequency: clock-frequency:
type: int type: int
required: true
description: Initial clock frequency in Hz description: Initial clock frequency in Hz
pin-sda: pin-sda:
type: int type: int
required: true
pin-scl: pin-scl:
type: int type: int
required: true
pin-sda-pull-up: pin-sda-pull-up:
type: bool type: bool
description: enable internal pull-up resistor for SDA pin description: enable internal pull-up resistor for SDA pin

View File

@ -21,13 +21,13 @@ properties:
description: WS pin description: WS pin
pin-data-out: pin-data-out:
type: int type: int
required: true
description: DATA OUT pin description: DATA OUT pin
pin-data-in: pin-data-in:
type: int type: int
required: true required: false
description: DATA IN pin description: DATA IN pin
pin-mclk: pin-mclk:
type: int type: int
required: true required: false
default: GPIO_PIN_NONE
description: MCLK pin description: MCLK pin

View File

@ -25,12 +25,15 @@ properties:
description: Clock pin description: Clock pin
pin-wp: pin-wp:
type: int type: int
default: GPIO_PIN_NONE
description: WP (Data 2) pin description: WP (Data 2) pin
pin-hd: pin-hd:
type: int type: int
default: GPIO_PIN_NONE
description: HD (Data 3) pin description: HD (Data 3) pin
max-transfer-size: max-transfer-size:
type: int type: int
default: 0
description: | description: |
Data transfer size limit in bytes. Data transfer size limit in bytes.
0 means the platform decides the limit. 0 means the platform decides the limit.

View File

@ -21,7 +21,9 @@ properties:
description: RX pin description: RX pin
pin-cts: pin-cts:
type: int type: int
default: GPIO_PIN_NONE
description: CTS pin description: CTS pin
pin-rts: pin-rts:
type: int type: int
default: GPIO_PIN_NONE
description: RTS pin description: RTS pin