From: Ben Whitten <ben.whitten@gmail.com>
To: broonie@kernel.org
Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
Ben Whitten <ben.whitten@gmail.com>
Subject: [RFC] Add ability to multiplex SPI bus
Date: Mon, 22 Jan 2018 22:51:11 +0000 [thread overview]
Message-ID: <1516661472-16452-1-git-send-email-ben.whitten@gmail.com> (raw)
A chip that I am working on acts as an SPI multiplexer for downstream radios,
this patch adds basic support for adding an SPI mux with DT.
The mux API is modeled on the I2C mux way of doing things with the addition of
being able to override the transfer_one_message. This is due to my mux exposing
the downstream radios through its regmap and not straight on the bus.
This is a first proof of concept and I'm expecting a few revisions, which is
why there is no documentation yet.
Thanks!
Ben Whitten (1):
spi: add spi multiplexing functions for dt
drivers/spi/Kconfig | 10 +++
drivers/spi/Makefile | 3 +
drivers/spi/spi-mux.c | 181 ++++++++++++++++++++++++++++++++++++++++++++++++
include/linux/spi-mux.h | 55 +++++++++++++++
4 files changed, 249 insertions(+)
create mode 100644 drivers/spi/spi-mux.c
create mode 100644 include/linux/spi-mux.h
--
2.7.4
next reply other threads:[~2018-01-22 22:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 22:51 Ben Whitten [this message]
[not found] ` <1516661472-16452-1-git-send-email-ben.whitten-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-22 22:51 ` [RFC] spi: add spi multiplexing functions for dt Ben Whitten
[not found] ` <1516661472-16452-2-git-send-email-ben.whitten-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-23 11:11 ` Mark Brown
[not found] ` <20180123111123.GB7600-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2018-01-24 14:01 ` Ben Whitten
[not found] ` <CAF3==it=5_YQVJ9xg8CLzSPw7LQZbCHQHfsufYwwCb=n7x3L0g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-24 14:54 ` Mark Brown
[not found] ` <20180124145430.GD9366-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2018-01-25 15:54 ` Ben Whitten
2018-01-23 10:46 ` [RFC] Add ability to multiplex SPI bus Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516661472-16452-1-git-send-email-ben.whitten@gmail.com \
--to=ben.whitten@gmail.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).