Lines Matching +full:1 +full:- +full:a

9  * SPDX-License-Identifier: Apache-2.0
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
29 * chip select GPIOs. Its value is a phandle-array which specifies the
36 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
46 * DT_SPI_HAS_CS_GPIOS(DT_NODELABEL(spi1)) // 1
49 * @param spi a SPI bus controller node identifier
50 * @return 1 if "spi" has a cs-gpios property, 0 otherwise
55 * @brief Number of chip select GPIOs in a SPI controller's cs-gpios property
61 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
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
76 * have a cs-gpios property
83 * @brief Does a SPI device have a chip select line configured?
88 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
91 * a: spi-dev-a@0 {
95 * b: spi-dev-b@1 {
96 * reg = <1>;
102 * c: spi-dev-c@0 {
109 * DT_SPI_DEV_HAS_CS_GPIOS(DT_NODELABEL(a)) // 1
110 * DT_SPI_DEV_HAS_CS_GPIOS(DT_NODELABEL(b)) // 1
113 * @param spi_dev a SPI device node identifier
114 * @return 1 if spi_dev's bus node DT_BUS(spi_dev) has a chip select
120 * @brief Get a SPI device's chip select GPIO controller's node identifier
130 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
133 * a: spi-dev-a@0 {
137 * b: spi-dev-b@1 {
138 * reg = <1>;
144 * DT_SPI_DEV_CS_GPIOS_CTLR(DT_NODELABEL(a)) // DT_NODELABEL(gpio1)
147 * @param spi_dev a SPI device node identifier
154 * @brief Get a SPI device's chip select GPIO pin number
157 * bus node's cs-gpios property has no pin cell.
163 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
166 * a: spi-dev-a@0 {
170 * b: spi-dev-b@1 {
171 * reg = <1>;
177 * DT_SPI_DEV_CS_GPIOS_PIN(DT_NODELABEL(a)) // 10
180 * @param spi_dev a SPI device node identifier
187 * @brief Get a SPI device's chip select GPIO flags
193 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
195 * a: spi-dev-a@0 {
202 * DT_SPI_DEV_CS_GPIOS_FLAGS(DT_NODELABEL(a)) // GPIO_ACTIVE_LOW
205 * cs-gpios property has no flags cell, this expands to zero.
207 * @param spi_dev a SPI device node identifier
217 * @return 1 if the instance's bus has a CS pin at index
225 * @brief Get GPIO controller node identifier for a SPI device instance