From: Arnout Vandecappelle <arnout@mind.be>
To: linux-serial@vger.kernel.org
Subject: Driver for SPI-based 8250 serial port
Date: Wed, 05 Sep 2012 14:47:11 +0200 [thread overview]
Message-ID: <504749CF.50709@mind.be> (raw)
[Please CC me, I'm not on the list]
Hi,
I need a driver for the Exar's XR20M1280 SPI-based serial port. It's a
16C950 compatible serial port, it just performs the register accesses over
an SPI (or I2C) bus rather than memory-mapped.
As far as I can determine, no driver for such a device exists yet. So I'll
develop one.
A few questions before I start:
- I guess I should preferably write it as generically as possible, even though
I can test it on only one device?
- Should I add a UPIO_SPI to the global I/O types, or should I override the
serial_in/serial_out functions in struct plat_serial8250_port?
- I guess there should be a 8250_spi file that registers the platform
device?
- I guess it doesn't make sense to try autoconfig_irq for such a device?
The IRQ is typically a gpio which the platform code has to configure as an IRQ.
- I'm not sure how to set the uartclk. The XR20M1280's BRG is derived from a
24MHz clock, but other devices or other boards may have different values.
Should it be part of platform data? Should I define a new platform data struct
for that?
Any other suggestions are also welcome.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next reply other threads:[~2012-09-05 12:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 12:47 Arnout Vandecappelle [this message]
2012-09-05 13:12 ` Driver for SPI-based 8250 serial port Alan Cox
2012-09-05 16:29 ` Arnout Vandecappelle
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=504749CF.50709@mind.be \
--to=arnout@mind.be \
--cc=linux-serial@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).