drivers: wifi: eswifi: Add chip select flags
Adds the chip select devicetree flags to the spi_cs_control instance. ISM43362 chip select is ACTIVE_LOW. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
This commit is contained in:
parent
d6f22e53eb
commit
3e62d73368
2 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,7 @@
|
|||
status = "okay";
|
||||
|
||||
cs-gpios = <&gpiod 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>,
|
||||
<&gpioe 0 GPIO_ACTIVE_HIGH>;
|
||||
<&gpioe 0 GPIO_ACTIVE_LOW>;
|
||||
|
||||
spbtle-rf@0 {
|
||||
compatible = "zephyr,bt-hci-spi";
|
||||
|
|
|
@ -256,6 +256,7 @@ int eswifi_spi_init(struct eswifi_dev *eswifi)
|
|||
spi->spi_cs.gpio_dev =
|
||||
device_get_binding(DT_INST_SPI_DEV_CS_GPIOS_LABEL(0));
|
||||
spi->spi_cs.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
|
||||
spi->spi_cs.gpio_dt_flags = DT_INST_SPI_DEV_CS_GPIOS_FLAGS(0);
|
||||
spi->spi_cs.delay = 1000U;
|
||||
spi->spi_cfg.cs = &spi->spi_cs;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue