zephyr/include/drivers
Martí Bolívar d6cfa10b8f drivers: spi: add helpers for initializing from DT
Add helper macros for initializing a struct spi_sconfig for a SPI
device which is defined in the devicetree. They are available from C
only due to C++ compatibility issues.

For some fields, like 'frequency', we just get the value from the
standard devicetree property. For others, like the spi_cs_control
structure's 'gpio_dev', we rely on the new DEVICE_DT_GET() macro.

This patch does not change anything for controlling SPI devices that
aren't set up in devicetree. It is entirely a convenience for driver
and application code that relies on DT.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-23 10:34:19 -05:00
..
adc
bluetooth
clock_control soc: stm32: convert to use DEVICE_DT_GET for clocks 2021-02-16 17:01:37 -06:00
console
dma
ec_host_cmd_periph
gpio
i2c/slave
ieee802154
interrupt_controller drivers/interrupt_controller: stm32: Make use of DEVICE_DT API 2021-02-17 14:26:23 -06:00
led
modem
pcie drivers: pcie: Introduce API to look up devices by ID 2021-02-15 08:23:05 -05:00
rtc
sensor
timer dts: Rename compatible arm,arm-timer to arm,armv8-timer 2021-02-04 07:04:28 -05:00
uart
usb
virtualization
adc.h
can.h
clock_control.h include: clock_control: Fix int return value 2021-02-17 14:28:50 +01:00
counter.h
dac.h
display.h drivers: display: Added support for restricted update. 2021-01-21 17:26:37 +01:00
dma.h
ec_host_cmd_periph.h
edac.h edac: doc: Include EDAC API to Zephyr API Reference 2021-01-21 08:34:07 -05:00
eeprom.h
entropy.h
espi_emul.h emul: Add an emulator for the eSPI Host 2021-01-20 17:49:19 -05:00
espi_saf.h drivers: espi: Microchip eSPI add SAF support 2021-02-15 08:22:01 -05:00
espi.h
flash.h
gna.h
gpio.h gpio: clean up flags related to logical initialization 2021-02-17 09:11:29 -06:00
gsm_ppp.h
hwinfo.h
i2c_emul.h
i2c.h drivers: i2c: document slave API 2021-02-09 13:59:17 -05:00
i2s.h
ipm.h
kscan.h
led_strip.h
led.h
lora.h
peci.h
pinmux.h
ps2.h
psci.h
pwm.h drivers: pwm: clean up the PWM capture API documentation 2021-01-19 08:09:16 -05:00
regulator.h
sensor.h
spi_emul.h
spi.h drivers: spi: add helpers for initializing from DT 2021-02-23 10:34:19 -05:00
uart.h include: drivers: uart: fix incorrect event name in brief 2021-02-03 09:44:21 -05:00
video-controls.h
video.h
watchdog.h