[PATCH 0/3] rust: Add basic GPIO consumer abstractions
From: Kohei Ito
Date: Sun Sep 06 2026 - 04:48:03 EST
This series introduces basic GPIO consumer abstractions for Rust.
- Patch 1 adds the top-level GPIO module with minimal common
definitions.
- Patch 2 adds the initial GPIO consumer (gpio_desc) abstraction.
- Patch 3 adds a sample driver to demonstrate the use of the Rust GPIO
APIs.
Signed-off-by: Kohei Ito <koheiito.dev@xxxxxxxxx>
---
Kohei Ito (3):
rust: gpio: add GPIO module with common definitions
rust: gpio: Add basic consumer abstractions
sample: rust: Add GPIO consumer sample driver
rust/bindings/bindings_helper.h | 2 +
rust/kernel/gpio.rs | 154 +++++++++++++
rust/kernel/gpio/consumer.rs | 437 +++++++++++++++++++++++++++++++++++++
rust/kernel/lib.rs | 2 +
samples/rust/Kconfig | 11 +
samples/rust/Makefile | 1 +
samples/rust/rust_gpio_consumer.rs | 156 +++++++++++++
7 files changed, 763 insertions(+)
---
base-commit: 8d3ae59288f1e7d58d76558a6ee96d533bc5019f
change-id: 20260905-add-rust-gpio-consumer-8799f86bbbfd
Best regards,
--
Kohei Ito <koheiito.dev@xxxxxxxxx>