From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Alan Tull <atull@opensource.altera.com>
Cc: Jiri Slaby <jslaby@suse.cz>, Rob Herring <robh+dt@kernel.org>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
delicious.quinoa@gmail.com, dinguyen@opensource.altera.com,
yvanderv@opensource.altera.com
Subject: Re: [PATCH 2/2] add newhaven lcd tty driver on i2c
Date: Tue, 17 Mar 2015 22:16:05 +0100 [thread overview]
Message-ID: <20150317211605.GB8441@kroah.com> (raw)
In-Reply-To: <1426624607-2832-3-git-send-email-atull@opensource.altera.com>
On Tue, Mar 17, 2015 at 03:36:47PM -0500, Alan Tull wrote:
> Supports the Newhaven NHD‐0216K3Z‐NSW‐BBW 2x16 LCD module as i2c slave.
> Devices will show up as /dev/ttyLCD0, etc.
>
> * Backspace is supported to the beginning of the current line.
> * i.e. printf '\b' > /dev/ttyLCD0
>
> * ESC [ 2 J
> * erase whole display and reset cursor to home.
> * i.e. printf '\e[2J' > /dev/ttyLCD0
>
> * ESC [ 2 K
> * erase current line and set cursor to beginning of line.
> * i.e. printf '\e[2K' > /dev/ttyLCD0
>
> * CR and LF are supported.
>
> * Vertical scroll when cursor is on bottom line and receive end of line.
>
> Default brightness can be set from the device tree/plat data.
>
> Brightness can be set from a sysfs file, for example:
> * echo 6 > /sys/devices/soc.0/ffc04000.i2c/i2c-0/0-0028/brightness
>
> Signed-off-by: Alan Tull <atull@opensource.altera.com>
This should use the new fb_tft api instead of trying to look like a tty
device. That framework is merged in the staging-next branch of the
staging.git kernel tree and will show up in 4.1-rc1. Please port this
driver to that api and submit a patch for me to take for the staging
tree so that we don't have one-off devices like this.
thanks,
greg k-h
next prev parent reply other threads:[~2015-03-17 21:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-17 20:36 [PATCH 0/2] TTY Driver for Newhaven LCD module Alan Tull
2015-03-17 20:36 ` [PATCH 1/2] newhaven lcd: device tree bindings documentation Alan Tull
2015-03-17 20:36 ` [PATCH 2/2] add newhaven lcd tty driver on i2c Alan Tull
2015-03-17 21:16 ` Greg Kroah-Hartman [this message]
2015-03-17 21:39 ` atull
2015-03-20 20:46 ` atull
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=20150317211605.GB8441@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=atull@opensource.altera.com \
--cc=delicious.quinoa@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@opensource.altera.com \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=yvanderv@opensource.altera.com \
/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