zephyr/include/devicetree
Martí Bolívar 6008e7ee24 devicetree: spi: add CS GPIO controller accessors
Add two new macros for getting the chip select GPIO controller from a
SPI device:

- DT_SPI_DEV_CS_GPIOS_CTLR()
- DT_INST_SPI_DEV_CS_GPIOS_CTLR()

Now that we can get struct device pointers at build time directly from
a devicetree node identifier, it's useful to be able to get a
node_id for a CS GPIO controller from the SPI device, because that's
necessary for setting up the gpio_dev in a struct spi_cs_control.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-23 10:34:19 -05:00
..
clocks.h devicetree: deprecate DT_CLOCKS_LABEL APIs 2021-02-22 12:20:33 -06:00
dma.h devicetree: Fix argument order for DT_*_CELL_BY_IDX 2020-05-27 17:58:35 +02:00
fixed-partitions.h fs: provide access to DT-defined mount structures 2020-12-27 18:16:20 +01:00
gpio.h devicetree: fix DT_GPIO_CTLR docstring 2021-01-16 08:09:51 -06:00
io-channels.h devicetree: rename header to reflect that io-channels are not ADC-only 2020-10-19 17:21:33 +02:00
ordinals.h devicetree: add first round of dependency ordinal info 2020-10-14 13:18:44 -05:00
pwms.h devicetree: pwms: add helper marcos to obtain the node identifier 2021-02-22 17:56:46 -05:00
spi.h devicetree: spi: add CS GPIO controller accessors 2021-02-23 10:34:19 -05:00
zephyr.h can: dts: Convert can-primary alias to zephyr,can-primary chosen prop 2020-04-29 14:27:31 -05:00