RFC Raspberry Pi Sense HAT driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drivers/mfd: rpisense: Raspberry Pi senseHAT core driverdrivers/ drivers/ drivers/ +1 more | +236 | 2 replies | |
| 2/3 | drivers/mfd: rpisense: Raspberry Pi senseHAT joystick driverdrivers/ drivers/ | +133 | 1 reply | |
| 3/3 | drivers/mfd: rpisense: Raspberry Pi senseHAT 8x8 LED matrix display driverdrivers/ drivers/ | +243 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/3] Raspberry Pi Sense HAT driver
This patch series adds a set of drivers for operating the Sense HAT peripheral device. This board is an add on for the Raspberry Pi that is designed to connect using the GPIO connector via I2C.
It features:
- a joystick
- an 8x8 RGB LED matrix display
- a whole bunch of environmental sensors with their own drivers (those are already in upstream Linux)
This is a refactor of the work of Serge Schneider, the author of a version of this driver that is currently in the Raspberry Pi downstream kernel. We modified his code to make it suitable for upstream Linux.
A couple of tests are available for this driver in this repo:
https://github.com/underground-software/sensehat/tree/master/tests
- color_test displays various solid colors on the LED panel
- framebuffer_test diplays a single lit cell that is controllable via the arrow keys or the joystick
Though the driver is split into three modules, they are interdependent and meaningless in isolation. As such, we have grouped them together.
This is a request for comments. Please let us know if you have any suggestions, complements, or harsh criticism. ;)
Known issue:
- We do not know how to integrate the device tree overlay into mainline Linux. Fortunately, most Linux distrubtions designed for the Raspberry Pi already include the approriate device tree overlay as a part of their importation of all overlays from the downstream Raspberry Pi kernel. Suggestions are welcome and appreciated.
For more information about the Sense HAT, visit:
https://www.raspberrypi.org/products/sense-hat/
Joel Savitz (3):
drivers/mfd: rpisense: Raspberry Pi senseHAT core driver drivers/mfd: rpisense: Raspberry Pi senseHAT joystick driver drivers/mfd: rpisense: Raspberry Pi senseHAT 8x8 LED matrix display
driver
drivers/mfd/Kconfig | 10 ++ drivers/mfd/Makefile | 3 + drivers/mfd/rpisense-core.c | 170 +++++++++++++++++++++++ drivers/mfd/rpisense-display.c | 242 +++++++++++++++++++++++++++++++++ drivers/mfd/rpisense-js.c | 132 ++++++++++++++++++ include/linux/mfd/rpisense.h | 55 ++++++++ 6 files changed, 612 insertions(+) create mode 100644 drivers/mfd/rpisense-core.c create mode 100644 drivers/mfd/rpisense-display.c create mode 100644 drivers/mfd/rpisense-js.c create mode 100644 include/linux/mfd/rpisense.h
Signature · 1 line
2.27.0