Add cs_gpios to esp32_spi driver

This commit is contained in:
Ken Van Hoeylandt 2026-06-20 22:31:02 +02:00
parent 394b1e1957
commit 9872825f6f
2 changed files with 7 additions and 1 deletions

View File

@ -34,5 +34,9 @@ properties:
type: int
default: 0
description: |
Data transfer size limit in bytes.
Data transfer size limit in bytes.
0 means the platform decides the limit.
cs-gpios:
type: phandle-array
default: { 0 }
description: Null-terminated array of chip select GPIO pin specs for peripherals on this bus

View File

@ -23,6 +23,8 @@ struct Esp32SpiConfig {
struct GpioPinSpec pin_hd;
/** Data transfer size limit in bytes. 0 means the platform decides the limit. */
int max_transfer_size;
/** Null-terminated array of chip select GPIO pin specs */
struct GpioPinSpec cs_gpios[];
};
#ifdef __cplusplus