[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240317193714.403132-1-ayushdevel1325@gmail.com>
Date: Mon, 18 Mar 2024 01:07:08 +0530
From: Ayush Singh <ayushdevel1325@...il.com>
To: linux-kernel@...r.kernel.org (open list)
Cc: Ayush Singh <ayushdevel1325@...il.com>,
jkridner@...gleboard.org,
robertcnelson@...gleboard.org,
lorforlinux@...gleboard.org,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Nishanth Menon <nm@...com>,
Vignesh Raghavendra <vigneshr@...com>,
Tero Kristo <kristo@...nel.org>,
Derek Kiernan <derek.kiernan@....com>,
Dragan Cvetic <dragan.cvetic@....com>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Vaishnav M A <vaishnav.a@...com>,
Mark Brown <broonie@...nel.org>,
Johan Hovold <johan@...nel.org>,
Alex Elder <elder@...nel.org>,
devicetree@...r.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS),
linux-arm-kernel@...ts.infradead.org (moderated list:ARM/TEXAS INSTRUMENTS K3 ARCHITECTURE),
linux-spi@...r.kernel.org (open list:SPI SUBSYSTEM),
greybus-dev@...ts.linaro.org (moderated list:GREYBUS SUBSYSTEM)
Subject: [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.
Link: https://www.mikroe.com/mikrobus
Link: https://docs.beagleboard.org/latest/boards/beagleplay/
Link: https://lore.kernel.org/lkml/20240315184908.500352-1-ayushdevel1325@gmail.com/ Patch v3
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
--
2.44.0
Powered by blists - more mailing lists