Skip to content

misc: Add mikroBUS driver

Ayush Singh kernel-janitors linux-arm-kernel linux-devicetree linux-spi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 47 repliesIn review
  2. v38 patches 24 repliesSuperseded

Changes in v4 from the cover letter

- Better commit messages
- Remove clickID, serdev, pwm, regulator, clocks etc. Just the basic mikroBUS driver.
- Fix a lot of memory leaks, unused variables, etc.
- Create accompanying PR in Greybus Spec repository
- Switch to 80 columns formatting
- Some other fixes pointed out in v3

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: misc: Add mikrobus-connectorDocumentation/devicetree/bindings/connector/mikrobus-connector.yaml MAINTAINERS+119 -031 replies
2/5spi: Make of_find_spi_controller_by_node() availabledrivers/spi/spi.c include/linux/spi/spi.h+108 -1021 reply
3/5greybus: Add mikroBUS manifest typesinclude/linux/greybus/greybus_manifest.h+49 -01 reply
4/5mikrobus: Add mikroBUS driverMAINTAINERS drivers/misc/Kconfig drivers/misc/Makefile +6 more+1402 -011 replies
5/5dts: ti: k3-am625-beagleplay: Add mikroBUSarch/arm64/boot/dts/ti/k3-am625-beagleplay.dts+72 -83 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/5] misc: Add mikroBUS driver

MikroBUS is an open standard developed by MikroElektronika for connecting add-on boards to microcontrollers or microprocessors. It essentially allows you to easily expand the functionality of your main boards using these add-on boards.

This patchset adds mikroBUS as a Linux bus type and provides a driver to parse and register the mikroBUS board using mikroBUS manifest.

The patchset is based on work originally done by Vaishnav.

Changes v4:
- Better commit messages
- Remove clickID, serdev, pwm, regulator, clocks etc. Just the basic mikroBUS driver.
- Fix a lot of memory leaks, unused variables, etc.
- Create accompanying PR in Greybus Spec repository
- Switch to 80 columns formatting
- Some other fixes pointed out in v3

Changes in v3:
- Use phandle instead of busname for spi
- Use spi board info for registering new device
- Convert dt bindings to yaml
- Add support for clickID
- Code cleanup and style changes
- Additions required to spi, serdev, w1 and regulator subsystems

Changes in v2:
- support for adding mikroBUS ports from DT overlays,
- remove debug sysFS interface for adding mikrobus ports,
- consider extended pin usage/deviations from mikrobus standard specifications
- use greybus CPort protocol enum instead of new protocol enums
- Fix cases of wrong indentation, ignoring return values, freeing allocated resources in case of errors and other style suggestions in v1 review.

Ayush Singh (5):
dt-bindings: misc: Add mikrobus-connector
spi: Make of_find_spi_controller_by_node() available
greybus: Add mikroBUS manifest types
mikrobus: Add mikroBUS driver
dts: ti: k3-am625-beagleplay: Add mikroBUS

 .../connector/mikrobus-connector.yaml         | 113 +++
 MAINTAINERS                                   |   7 +
 .../arm64/boot/dts/ti/k3-am625-beagleplay.dts |  80 +-
 drivers/misc/Kconfig                          |   1 +
 drivers/misc/Makefile                         |   1 +
 drivers/misc/mikrobus/Kconfig                 |  15 +
 drivers/misc/mikrobus/Makefile                |   5 +
 drivers/misc/mikrobus/mikrobus_core.c         | 696 ++++++++++++++++++
 drivers/misc/mikrobus/mikrobus_core.h         | 151 ++++
 drivers/misc/mikrobus/mikrobus_manifest.c     | 503 +++++++++++++
 drivers/misc/mikrobus/mikrobus_manifest.h     |  29 +
 drivers/spi/spi.c                             | 206 +++---
 include/linux/greybus/greybus_manifest.h      |  49 ++
 include/linux/spi/spi.h                       |   4 +
 14 files changed, 1750 insertions(+), 110 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/connector/mikrobus-connector.yaml
 create mode 100644 drivers/misc/mikrobus/Kconfig
 create mode 100644 drivers/misc/mikrobus/Makefile
 create mode 100644 drivers/misc/mikrobus/mikrobus_core.c
 create mode 100644 drivers/misc/mikrobus/mikrobus_core.h
 create mode 100644 drivers/misc/mikrobus/mikrobus_manifest.c
 create mode 100644 drivers/misc/mikrobus/mikrobus_manifest.h

base-commit: 61996c073c9b070922ad3a36c981ca6ddbea19a5

Signature · 1 line
2.44.0