Allow pull up/down bias to be disabled, allowing the line to float or to be biased only by external circuitry. Use case is for where the bias has been applied previously, either by default or by the user, but that setting may conflict with the current use of the line.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -35,6 +35,7 @@ struct gpiochip_info { · 34 unmodified lines | |||
| 35 | #define GPIOLINE_FLAG_OPEN_SOURCE (1UL << 4) | 35 | #define GPIOLINE_FLAG_OPEN_SOURCE (1UL << 4) |
| 36 | #define GPIOLINE_FLAG_BIAS_PULL_UP (1UL << 5) | 36 | #define GPIOLINE_FLAG_BIAS_PULL_UP (1UL << 5) |
| 37 | #define GPIOLINE_FLAG_BIAS_PULL_DOWN (1UL << 6) | 37 | #define GPIOLINE_FLAG_BIAS_PULL_DOWN (1UL << 6) |
| 38 | #define GPIOLINE_FLAG_BIAS_DISABLE (1UL << 7) | ||
| 38 | 39 | ||
| 39 | /** | 40 | /** |
| 40 | * struct gpioline_info - Information about a certain GPIO line | 41 | * struct gpioline_info - Information about a certain GPIO line |
| @@ -66,6 +67,7 @@ struct gpioline_info { · 25 unmodified lines | |||
| 66 | #define GPIOHANDLE_REQUEST_OPEN_SOURCE (1UL << 4) | 67 | #define GPIOHANDLE_REQUEST_OPEN_SOURCE (1UL << 4) |
| 67 | #define GPIOHANDLE_REQUEST_BIAS_PULL_UP (1UL << 5) | 68 | #define GPIOHANDLE_REQUEST_BIAS_PULL_UP (1UL << 5) |
| 68 | #define GPIOHANDLE_REQUEST_BIAS_PULL_DOWN (1UL << 6) | 69 | #define GPIOHANDLE_REQUEST_BIAS_PULL_DOWN (1UL << 6) |
| 70 | #define GPIOHANDLE_REQUEST_BIAS_DISABLE (1UL << 7) | ||
| 69 | 71 | ||
| 70 | /** | 72 | /** |
| 71 | * struct gpiohandle_request - Information about a GPIO handle request | 73 | * struct gpiohandle_request - Information about a GPIO handle request |