Lines Matching full:spi

3  * @brief SPI Devicetree macro public API header file.
20 * @defgroup devicetree-spi Devicetree SPI API
26 * @brief Does a SPI controller node have chip select GPIOs configured?
28 * SPI bus controllers use the "cs-gpios" property for configuring
34 * spi1: spi@... {
35 * compatible = "vnd,spi";
40 * spi2: spi@... {
41 * compatible = "vnd,spi";
49 * @param spi a SPI bus controller node identifier
50 * @return 1 if "spi" has a cs-gpios property, 0 otherwise
52 #define DT_SPI_HAS_CS_GPIOS(spi) DT_NODE_HAS_PROP(spi, cs_gpios) argument
55 * @brief Number of chip select GPIOs in a SPI controller's cs-gpios property
59 * spi1: spi@... {
60 * compatible = "vnd,spi";
65 * spi2: spi@... {
66 * compatible = "vnd,spi";
74 * @param spi a SPI bus controller node identifier
75 * @return Logical length of spi's cs-gpios property, or 0 if "spi" doesn't
78 #define DT_SPI_NUM_CS_GPIOS(spi) \ argument
79 COND_CODE_1(DT_SPI_HAS_CS_GPIOS(spi), \
80 (DT_PROP_LEN(spi, cs_gpios)), (0))
83 * @brief Does a SPI device have a chip select line configured?
86 * spi1: spi@... {
87 * compatible = "vnd,spi";
91 * a: spi-dev-a@0 {
95 * b: spi-dev-b@1 {
100 * spi2: spi@... {
101 * compatible = "vnd,spi";
102 * c: spi-dev-c@0 {
113 * @param spi_dev a SPI device node identifier
120 * @brief Get a SPI device's chip select GPIO controller's node identifier
128 * spi@... {
129 * compatible = "vnd,spi";
133 * a: spi-dev-a@0 {
137 * b: spi-dev-b@1 {
147 * @param spi_dev a SPI device node identifier
154 * @brief Get a SPI device's chip select GPIO pin number
161 * spi1: spi@... {
162 * compatible = "vnd,spi";
166 * a: spi-dev-a@0 {
170 * b: spi-dev-b@1 {
180 * @param spi_dev a SPI device node identifier
187 * @brief Get a SPI device's chip select GPIO flags
191 * spi1: spi@... {
192 * compatible = "vnd,spi";
195 * a: spi-dev-a@0 {
207 * @param spi_dev a SPI device node identifier
225 * @brief Get GPIO controller node identifier for a SPI device instance