Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/releases/migration-guide-4.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ Phy
clock-reference. The selection directly depends on the value on OTGHSSEL (OTG_HS PHY kernel
clock source selection) located in the RCC_CCIPR2 register.

SPI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uppercase characters < lowercase characters, move it before Sensors

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I was confused about that thanks

===

* The macros :c:macro:`SPI_CS_CONTROL_INIT` :c:macro:`SPI_CS_CONTROL_INIT_INST`,
:c:macro:`SPI_CONFIG_DT`, :c:macro:`SPI_CONFIG_DT_INST`, :c:macro:`SPI_DT_SPEC_GET`,
and :c:macro:`SPI_DT_SPEC_INST_GET` have been changed so that they do not need to be
provided a delay parameter anymore. This is because the timing parameters of a SPI peripheral
chip select should now be specified in DT with the
``spi-cs-setup-delay-ns`` and ``spi-cs-hold-delay-ns`` properties.
(:github:`87427`).

Sensors
=======

Expand Down
4 changes: 4 additions & 0 deletions doc/releases/release-notes-4.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ Deprecated APIs and options
===========================

* :dtcompatible:`maxim,ds3231` is deprecated in favor of :dtcompatible:`maxim,ds3231-rtc`.
* Providing a third agument to :c:macro:`SPI_CONFIG_DT`, :c:macro:`SPI_CONFIG_DT_INST`,
:c:macro:`SPI_DT_SPEC_GET`, :c:macro:`SPI_DT_SPEC_INST_GET` is deprecated. Providing a
second argument to :c:macro:`SPI_CS_CONTROL_INIT` is deprecated. Use new DT properties
``spi-cs-setup-delay-ns`` and ``spi-cs-hold-delay-ns`` to specify delay instead.

* :c:enum:`bt_hci_bus` was deprecated as it was not used. :c:macro:`BT_DT_HCI_BUS_GET` should be
used instead.
Expand Down
4 changes: 2 additions & 2 deletions drivers/adc/adc_ad405x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ static DEVICE_API(adc, ad405x_api_funcs) = {
#define AD405X_SPI_CFG SPI_WORD_SET(8) | SPI_TRANSFER_MSB

#define AD405X_RTIO_DEFINE(inst) \
SPI_DT_IODEV_DEFINE(ad405x_iodev_##inst, DT_DRV_INST(inst), AD405X_SPI_CFG, 0U); \
SPI_DT_IODEV_DEFINE(ad405x_iodev_##inst, DT_DRV_INST(inst), AD405X_SPI_CFG); \
RTIO_DEFINE(ad405x_rtio_ctx_##inst, 16, 16);

#define DT_INST_AD405X(inst, t) DT_INST(inst, adi_ad##t##_adc)
Expand Down Expand Up @@ -1357,7 +1357,7 @@ static DEVICE_API(adc, ad405x_api_funcs) = {
()))) \
}; \
static const struct adc_ad405x_config ad##t##_config_##n = { \
.bus = {.spi = SPI_DT_SPEC_GET(DT_INST_AD405X(n, t), AD405X_SPI_CFG, 0)}, \
.bus = {.spi = SPI_DT_SPEC_GET(DT_INST_AD405X(n, t), AD405X_SPI_CFG)}, \
.conversion = GPIO_DT_SPEC_GET_BY_IDX(DT_INST_AD405X(n, t), \
conversion_gpios, 0), \
IF_ENABLED(CONFIG_AD405X_TRIGGER, (AD405X_GPIO(t, n))) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_ad4114.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static DEVICE_API(adc, adc_ad4114_api) = {
#define ADC_AD4114_DEVICE(inst) \
static struct adc_ad4114_data adc_ad4114_data_##inst; \
static const struct adc_ad4114_config adc_ad4114_config_##inst = { \
.spi = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8), 0), \
.spi = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8)), \
.resolution = AD4114_ADC_RESOLUTION, \
.map_input = DT_INST_PROP(inst, map_inputs), \
}; \
Expand Down
3 changes: 1 addition & 2 deletions drivers/adc/adc_ad4130.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,7 @@ static DEVICE_API(adc, adc_ad4130_driver_api) = {
#define AD4130_ADC_INIT(inst) \
static const struct ad4130_config ad4130_config_##inst = { \
.bus = SPI_DT_SPEC_GET(DT_INST(inst, adi_ad4130_adc), \
SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_TRANSFER_MSB, \
1), \
SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_TRANSFER_MSB), \
.resolution = AD4130_ADC_RESOLUTION, \
.bipolar = DT_INST_PROP_OR(inst, bipolar, 1), \
.int_ref = DT_INST_PROP_OR(inst, internal_reference_value, 0), \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_ad7124.c
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ static DEVICE_API(adc, adc_ad7124_api) = {
static const struct adc_ad7124_config adc_ad7124_config##inst = { \
.bus = SPI_DT_SPEC_INST_GET( \
inst, \
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8), 0), \
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8)), \
.resolution = AD7124_RESOLUTION, \
.filter_type_mask = DT_INST_PROP(inst, filter_type_mask), \
.bipolar_mask = DT_INST_PROP(inst, bipolar_mask), \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_ads131m02.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ static int ads131m02_init(const struct device *dev)
static const struct ads131m02_config config_##n = { \
.spi = SPI_DT_SPEC_INST_GET( \
n, SPI_OP_MODE_MASTER | SPI_MODE_CPHA | \
SPI_WORD_SET(8), 0), \
SPI_WORD_SET(8)), \
.gpio_drdy = GPIO_DT_SPEC_INST_GET(n, drdy_gpios), \
}; \
static struct ads131m02_data data_##n; \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_ads1x4s0x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ BUILD_ASSERT(CONFIG_ADC_INIT_PRIORITY > CONFIG_SPI_INIT_PRIORITY,
) \
static const struct ads1x4s0x_config config_##name##_##n = { \
.bus = SPI_DT_SPEC_INST_GET( \
n, SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8), 0), \
n, SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8)), \
IF_ENABLED(CONFIG_ADC_ASYNC, (.stack = thread_stack_##name##_##n,)) \
.gpio_reset = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {0}), \
.gpio_data_ready = GPIO_DT_SPEC_INST_GET(n, drdy_gpios), \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_ads7052.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ static DEVICE_API(adc, ads7052_api) = {
#define ADC_ADS7052_INIT(n) \
\
static const struct ads7052_config ads7052_cfg_##n = { \
.bus = SPI_DT_SPEC_INST_GET(n, ADC_ADS7052_SPI_CFG, 1U), \
.bus = SPI_DT_SPEC_INST_GET(n, ADC_ADS7052_SPI_CFG), \
.channels = 1, \
}; \
\
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_lmp90xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ static DEVICE_API(adc, lmp90xxx_adc_api) = {
}; \
static const struct lmp90xxx_config lmp##t##_config_##n = { \
.bus = SPI_DT_SPEC_GET(DT_INST_LMP90XXX(n, t), SPI_OP_MODE_MASTER | \
SPI_TRANSFER_MSB | SPI_WORD_SET(8), 0), \
SPI_TRANSFER_MSB | SPI_WORD_SET(8)), \
.drdyb = GPIO_DT_SPEC_GET_OR(DT_INST_LMP90XXX(n, t), drdyb_gpios, {0}), \
.rtd_current = LMP90XXX_UAMPS_TO_RTD_CUR_SEL( \
DT_PROP_OR(DT_INST_LMP90XXX(n, t), rtd_current, 0)), \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_max11102_17.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ BUILD_ASSERT(CONFIG_ADC_INIT_PRIORITY > CONFIG_SPI_INIT_PRIORITY,
static const struct max11102_17_config config_##name##_##index = { \
.bus = SPI_DT_SPEC_INST_GET( \
index, \
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8), 0), \
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8)), \
.gpio_chsel = GPIO_DT_SPEC_INST_GET_OR(index, chsel_gpios, {0}), \
.resolution = res, \
.channel_count = channels, \
Expand Down
3 changes: 1 addition & 2 deletions drivers/adc/adc_max1125x.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,7 @@ static DEVICE_API(adc, max1125x_api) = {
#define MAX1125X_INIT(t, n, odr_delay_us, res, mux, pgab) \
static const struct max1125x_config max##t##_cfg_##n = { \
.bus = SPI_DT_SPEC_GET(DT_INST_MAX1125X(n, t), \
SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_TRANSFER_MSB, \
1), \
SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_TRANSFER_MSB), \
.odr_delay = odr_delay_us, \
.resolution = res, \
.multiplexer = mux, \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_mcp320x.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static DEVICE_API(adc, mcp320x_adc_api) = {
static const struct mcp320x_config mcp##t##_config_##n = { \
.bus = SPI_DT_SPEC_GET(INST_DT_MCP320X(n, t), \
SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | \
SPI_WORD_SET(8), 0), \
SPI_WORD_SET(8)), \
.channels = ch, \
}; \
DEVICE_DT_DEFINE(INST_DT_MCP320X(n, t), \
Expand Down
3 changes: 1 addition & 2 deletions drivers/adc/adc_mcp356xr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,6 @@ static DEVICE_API(adc, adc_mcp356xr_api) = {
.ref_internal = 2400,
};

#define MCP356XR_SPI_CS_DELAY (1)
#define MCP356XR_SPI_OPERATION \
(SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8) | SPI_LINES_SINGLE)

Expand Down Expand Up @@ -1285,7 +1284,7 @@ static DEVICE_API(adc, adc_mcp356xr_api) = {

#define ADC_MCP356XR_INIT(index) \
static const struct adc_mcp356xr_config adc_mcp356xr_config_##index = { \
.spi = SPI_DT_SPEC_INST_GET(index, MCP356XR_SPI_OPERATION, MCP356XR_SPI_CS_DELAY), \
.spi = SPI_DT_SPEC_INST_GET(index, MCP356XR_SPI_OPERATION), \
.address = DT_INST_PROP(index, address), \
.vref_settle_time = K_MSEC(DT_INST_PROP_OR(index, vref_settle_time_ms, 0)), \
.init_reg_value = \
Expand Down
2 changes: 1 addition & 1 deletion drivers/audio/pcm1681.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static int pcm1681_init(const struct device *dev)
#define PCM1681_CONFIG_SPI(inst) \
.bus_spec = \
{ \
.spi = SPI_DT_SPEC_INST_GET(inst, SPI_OP_MODE_SLAVE | SPI_WORD_SET(8), 0), \
.spi = SPI_DT_SPEC_INST_GET(inst, SPI_OP_MODE_SLAVE | SPI_WORD_SET(8)), \
}, \
.bus_io = { \
.is_ready = pcm1681_spi_is_ready, \
Expand Down
3 changes: 1 addition & 2 deletions drivers/auxdisplay/auxdisplay_pt6314.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ static DEVICE_API(auxdisplay, auxdisplay_pt6314_auxdisplay_api) = {
}, \
.bus = SPI_DT_SPEC_INST_GET(n, \
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | \
SPI_TRANSFER_MSB | SPI_WORD_SET(8), \
0), \
SPI_TRANSFER_MSB | SPI_WORD_SET(8)) \
}; \
\
static struct auxdisplay_pt6314_data auxdisplay_pt6314_data_##n = { \
Expand Down
3 changes: 1 addition & 2 deletions drivers/bluetooth/hci/hci_ambiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ static uint8_t __noinit rxmsg[SPI_MAX_RX_MSG_LEN];
static struct spi_dt_spec spi_bus =
SPI_DT_SPEC_INST_GET(0,
SPI_OP_MODE_MASTER | SPI_HALF_DUPLEX | SPI_TRANSFER_MSB |
SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8),
0);
SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8));

static K_KERNEL_STACK_DEFINE(spi_rx_stack, CONFIG_BT_DRV_RX_STACK_SIZE);
static struct k_thread spi_rx_thread_data;
Expand Down
2 changes: 1 addition & 1 deletion drivers/bluetooth/hci/hci_spi_st.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct bt_spi_data {
};

static const struct spi_dt_spec bus = SPI_DT_SPEC_INST_GET(
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8) | SPI_LOCK_ON, 0);
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8) | SPI_LOCK_ON);

static struct spi_buf spi_tx_buf;
static struct spi_buf spi_rx_buf;
Expand Down
3 changes: 1 addition & 2 deletions drivers/bluetooth/hci/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ static K_KERNEL_STACK_DEFINE(spi_rx_stack, CONFIG_BT_DRV_RX_STACK_SIZE);
static struct k_thread spi_rx_thread_data;

static const struct spi_dt_spec bus = SPI_DT_SPEC_INST_GET(
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8),
DT_INST_PROP(0, controller_cs_delay_us));
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semicolon is missing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


static struct spi_buf spi_tx_buf;
static struct spi_buf spi_rx_buf;
Expand Down
2 changes: 1 addition & 1 deletion drivers/can/can_mcp2515.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ static int mcp2515_init(const struct device *dev)
\
static const struct mcp2515_config mcp2515_config_##inst = { \
.common = CAN_DT_DRIVER_CONFIG_INST_GET(inst, 0, 1000000), \
.bus = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8), 0), \
.bus = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8)), \
.int_gpio = GPIO_DT_SPEC_INST_GET(inst, int_gpios), \
.int_thread_stack_size = CONFIG_CAN_MCP2515_INT_THREAD_STACK_SIZE, \
.int_thread_priority = CONFIG_CAN_MCP2515_INT_THREAD_PRIO, \
Expand Down
2 changes: 1 addition & 1 deletion drivers/can/can_mcp251xfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ static DEVICE_API(can, mcp251xfd_api_funcs) = {
}; \
static const struct mcp251xfd_config mcp251xfd_config_##inst = { \
.common = CAN_DT_DRIVER_CONFIG_INST_GET(inst, 0, 8000000), \
.bus = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8), 0), \
.bus = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8)), \
.int_gpio_dt = GPIO_DT_SPEC_INST_GET(inst, int_gpios), \
\
.sof_on_clko = DT_INST_PROP(inst, sof_on_clko), \
Expand Down
2 changes: 1 addition & 1 deletion drivers/can/can_tcan4x5x.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ static const struct can_mcan_ops tcan4x5x_ops = {
CAN_MCAN_DT_INST_CALLBACKS_DEFINE(inst, tcan4x5x_cbs_##inst); \
\
static const struct tcan4x5x_config tcan4x5x_config_##inst = { \
.spi = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8), 0), \
.spi = SPI_DT_SPEC_INST_GET(inst, SPI_WORD_SET(8)), \
.int_gpio = GPIO_DT_SPEC_INST_GET(inst, int_gpios), \
.clk_freq = DT_INST_PROP(inst, clock_frequency), \
TCAN4X5X_RST_GPIO_INIT(inst) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_ad56xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ BUILD_ASSERT(CONFIG_DAC_AD56XX_INIT_PRIORITY > CONFIG_SPI_INIT_PRIORITY,
static struct ad56xx_data data_##name##_##index; \
static const struct ad56xx_config config_##name##_##index = { \
.bus = SPI_DT_SPEC_INST_GET( \
index, SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8), 0), \
index, SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8)), \
.resolution = res, \
.gpio_reset = GPIO_DT_SPEC_INST_GET_OR(index, reset_gpios, {0}), \
.channel_addresses = channels, \
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_dac161s997.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static DEVICE_API(dac, dac161s997_driver_api) = {

#define DAC_DAC161S997_INIT(n) \
static const struct dac161s997_config dac161s997_config_##n = { \
.bus = SPI_DT_SPEC_INST_GET(n, SPI_TRANSFER_MSB | SPI_WORD_SET(8), 0), \
.bus = SPI_DT_SPEC_INST_GET(n, SPI_TRANSFER_MSB | SPI_WORD_SET(8)), \
.gpio_errb = GPIO_DT_SPEC_INST_GET_OR(n, errb_gpios, {0}), \
}; \
\
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_dacx0508.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static DEVICE_API(dac, dacx0508_driver_api) = {
static const struct dacx0508_config dac##t##_config_##n = { \
.bus = SPI_DT_SPEC_GET(INST_DT_DACX0508(n, t), \
SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | \
SPI_WORD_SET(8) | SPI_MODE_CPHA, 0), \
SPI_WORD_SET(8) | SPI_MODE_CPHA), \
.resolution = res, \
.reference = DT_PROP(INST_DT_DACX0508(n, t), \
voltage_reference), \
Expand Down
2 changes: 1 addition & 1 deletion drivers/dac/dac_ltc166x.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static DEVICE_API(dac, ltc166x_driver_api) = {
static const struct ltc166x_config ltc##t##_config_##n = { \
.bus = SPI_DT_SPEC_GET(INST_DT_LTC166X(n, t), \
SPI_OP_MODE_MASTER | \
SPI_WORD_SET(8), 0), \
SPI_WORD_SET(8)), \
.resolution = res, \
.nchannels = nchan, \
}; \
Expand Down
2 changes: 1 addition & 1 deletion drivers/display/display_max7219.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static int max7219_init(const struct device *dev)
}; \
static const struct max7219_config max7219_config_##n = { \
.spi = SPI_DT_SPEC_INST_GET( \
n, SPI_OP_MODE_MASTER | SPI_WORD_SET(8U), 0U), \
n, SPI_OP_MODE_MASTER | SPI_WORD_SET(8U)), \
.num_cascading = DT_INST_PROP(n, num_cascading), \
.intensity = DT_INST_PROP(n, intensity), \
.scan_limit = DT_INST_PROP(n, scan_limit), \
Expand Down
2 changes: 1 addition & 1 deletion drivers/display/display_st7567.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ static DEVICE_API(display, st7567_driver_api) = {

#define ST7567_CONFIG_SPI(node_id) \
.bus = {.spi = SPI_DT_SPEC_GET( \
node_id, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8), 0)}, \
node_id, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8))}, \
.bus_ready = st7567_bus_ready_spi, .write_bus = st7567_write_bus_spi, \
.bus_name = st7567_bus_name_spi, .data_cmd = GPIO_DT_SPEC_GET(node_id, data_cmd_gpios),

Expand Down
2 changes: 1 addition & 1 deletion drivers/display/ls0xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static const struct ls0xx_config ls0xx_config = {
.bus = SPI_DT_SPEC_INST_GET(
0, SPI_OP_MODE_MASTER | SPI_WORD_SET(8) |
SPI_TRANSFER_LSB | SPI_CS_ACTIVE_HIGH |
SPI_HOLD_ON_CS | SPI_LOCK_ON, 0),
SPI_HOLD_ON_CS | SPI_LOCK_ON),
#if DT_INST_NODE_HAS_PROP(0, disp_en_gpios)
.disp_en_gpio = GPIO_DT_SPEC_INST_GET(0, disp_en_gpios),
#endif
Expand Down
2 changes: 1 addition & 1 deletion drivers/display/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ static DEVICE_API(display, ssd1306_driver_api) = {

#define SSD1306_CONFIG_SPI(node_id) \
.bus = {.spi = SPI_DT_SPEC_GET( \
node_id, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8), 0)}, \
node_id, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8))}, \
.bus_ready = ssd1306_bus_ready_spi, \
.write_bus = ssd1306_write_bus_spi, \
.bus_name = ssd1306_bus_name_spi, \
Expand Down
2 changes: 1 addition & 1 deletion drivers/eeprom/eeprom_at2x.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ static DEVICE_API(eeprom, eeprom_at2x_api) = {
#define EEPROM_AT25_BUS(n, t) \
{ .spi = SPI_DT_SPEC_GET(INST_DT_AT2X(n, t), \
SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | \
SPI_WORD_SET(8), 0) }
SPI_WORD_SET(8)) }

#define EEPROM_AT2X_WP_GPIOS(id) \
IF_ENABLED(DT_NODE_HAS_PROP(id, wp_gpios), \
Expand Down
Loading