Lines Matching +full:gpio2 +full:- +full:gpios
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>,
37 * <&gpio2 20 GPIO_ACTIVE_LOW>;
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>,
62 * <&gpio2 20 GPIO_ACTIVE_LOW>;
75 * @return Logical length of spi's cs-gpios property, or 0 if "spi" doesn't
76 * have a cs-gpios property
88 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
89 * <&gpio2 20 GPIO_ACTIVE_LOW>;
91 * a: spi-dev-a@0 {
95 * b: spi-dev-b@1 {
102 * c: spi-dev-c@0 {
126 * gpio2: gpio@... { ... };
130 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
131 * <&gpio2 20 GPIO_ACTIVE_LOW>;
133 * a: spi-dev-a@0 {
137 * b: spi-dev-b@1 {
145 * DT_SPI_DEV_CS_GPIOS_CTLR(DT_NODELABEL(b)) // DT_NODELABEL(gpio2)
157 * bus node's cs-gpios property has no pin cell.
163 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
164 * <&gpio2 20 GPIO_ACTIVE_LOW>;
166 * a: spi-dev-a@0 {
170 * b: spi-dev-b@1 {
193 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
195 * a: spi-dev-a@0 {
205 * cs-gpios property has no flags cell, this expands to zero.