All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
To: linux-sh@vger.kernel.org
Cc: linux-serial@vger.kernel.org,
	Bastian Hecht <hechtb+renesas@gmail.com>,
	Paul Mundt <lethal@linux-sh.org>,
	devicetree@vger.kernel.org
Subject: [PATCH 0/5] Add OF support to the sh-sci serial port driver
Date: Tue, 29 Oct 2013 10:29:54 +0000	[thread overview]
Message-ID: <1383042599-25151-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> (raw)

Hello,

This patch set adds device tree bindings for the sh sci serial port devices
and adds OF parsing to the sh-sci driver.

The bindings are based on Bastian Hecht's proposal (see
http://www.spinics.net/lists/arm-kernel/msg228129.html). The approach taken
here is more minimalistic: instead of describing all hardware characteristics
that vary between the SCI device revisions in DT (such as registers layout),
that information is stored in the driver and selected based on the compatible
property value. Only SCI revisions used on ARM devices are supported through
DT, as DT support for SuperH is nowhere down the line.

The first three patches clean up the sh-sci driver. They're not strictly
required for OF support but make sense nonetheless. The last two patches add
OF parsing to the sh-sci driver and create DT bindings documentation.

The patches have been test on a Lager board (r8a7790-based). Support for other
SoCs will be added as needed. Note that all current Renesas ARM SoCs seem to
be compatible with the generic (H)SCI(F)(AB) devices, but the plan is for
their DT bindings to list the SoC-specific version in case incompatibilities
are found later.

Cc: devicetree@vger.kernel.org

Bastian Hecht (1):
  serial: sh-sci: Add OF support

Laurent Pinchart (4):
  serial: sh-sci: Sort headers alphabetically
  serial: sh-sci: Remove baud rate calculation algorithm 5
  serial: sh-sci: Simplify baud rate calculation algorithms
  serial: sh-sci: Add device tree bindings documentation

 .../bindings/serial/renesas,sci-serial.txt         |  51 ++++++
 drivers/tty/serial/sh-sci.c                        | 192 +++++++++++++++++----
 include/linux/serial_sci.h                         |   9 +-
 3 files changed, 217 insertions(+), 35 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/serial/renesas,sci-serial.txt

-- 
Regards,

Laurent Pinchart


WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
To: linux-sh@vger.kernel.org
Cc: linux-serial@vger.kernel.org,
	Bastian Hecht <hechtb+renesas@gmail.com>,
	Paul Mundt <lethal@linux-sh.org>,
	devicetree@vger.kernel.org
Subject: [PATCH 0/5] Add OF support to the sh-sci serial port driver
Date: Tue, 29 Oct 2013 11:29:54 +0100	[thread overview]
Message-ID: <1383042599-25151-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> (raw)

Hello,

This patch set adds device tree bindings for the sh sci serial port devices
and adds OF parsing to the sh-sci driver.

The bindings are based on Bastian Hecht's proposal (see
http://www.spinics.net/lists/arm-kernel/msg228129.html). The approach taken
here is more minimalistic: instead of describing all hardware characteristics
that vary between the SCI device revisions in DT (such as registers layout),
that information is stored in the driver and selected based on the compatible
property value. Only SCI revisions used on ARM devices are supported through
DT, as DT support for SuperH is nowhere down the line.

The first three patches clean up the sh-sci driver. They're not strictly
required for OF support but make sense nonetheless. The last two patches add
OF parsing to the sh-sci driver and create DT bindings documentation.

The patches have been test on a Lager board (r8a7790-based). Support for other
SoCs will be added as needed. Note that all current Renesas ARM SoCs seem to
be compatible with the generic (H)SCI(F)(AB) devices, but the plan is for
their DT bindings to list the SoC-specific version in case incompatibilities
are found later.

Cc: devicetree@vger.kernel.org

Bastian Hecht (1):
  serial: sh-sci: Add OF support

Laurent Pinchart (4):
  serial: sh-sci: Sort headers alphabetically
  serial: sh-sci: Remove baud rate calculation algorithm 5
  serial: sh-sci: Simplify baud rate calculation algorithms
  serial: sh-sci: Add device tree bindings documentation

 .../bindings/serial/renesas,sci-serial.txt         |  51 ++++++
 drivers/tty/serial/sh-sci.c                        | 192 +++++++++++++++++----
 include/linux/serial_sci.h                         |   9 +-
 3 files changed, 217 insertions(+), 35 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/serial/renesas,sci-serial.txt

-- 
Regards,

Laurent Pinchart


             reply	other threads:[~2013-10-29 10:29 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-29 10:29 Laurent Pinchart [this message]
2013-10-29 10:29 ` [PATCH 0/5] Add OF support to the sh-sci serial port driver Laurent Pinchart
2013-10-29 10:29 ` [PATCH 1/5] serial: sh-sci: Sort headers alphabetically Laurent Pinchart
2013-10-29 10:29   ` Laurent Pinchart
2013-10-29 10:29 ` [PATCH 2/5] serial: sh-sci: Remove baud rate calculation algorithm 5 Laurent Pinchart
2013-10-29 10:29   ` Laurent Pinchart
2013-10-29 10:29 ` [PATCH 3/5] serial: sh-sci: Simplify baud rate calculation algorithms Laurent Pinchart
2013-10-29 10:29   ` Laurent Pinchart
2013-10-29 10:48   ` Laurent Pinchart
2013-10-29 10:48     ` Laurent Pinchart
2013-10-29 10:29 ` [PATCH 4/5] serial: sh-sci: Add OF support Laurent Pinchart
2013-10-29 10:29   ` Laurent Pinchart
2013-11-01  9:47   ` Bastian Hecht
2013-11-01  9:47     ` Bastian Hecht
2013-11-04  0:58     ` Laurent Pinchart
2013-11-04  0:58       ` Laurent Pinchart
2013-11-06 15:26       ` Bastian Hecht
2013-11-06 15:26         ` Bastian Hecht
2013-10-29 10:29 ` [PATCH 5/5] serial: sh-sci: Add device tree bindings documentation Laurent Pinchart
2013-10-29 10:29   ` Laurent Pinchart
2013-10-31 14:42   ` Kumar Gala
2013-10-31 14:42     ` Kumar Gala
2013-10-31 14:55     ` Laurent Pinchart
2013-10-31 14:55       ` Laurent Pinchart
2013-10-31 15:00       ` Kumar Gala
2013-10-31 15:00         ` Kumar Gala
2013-11-03 17:09         ` Laurent Pinchart
2013-11-03 17:09           ` Laurent Pinchart
2013-10-31  5:21 ` [PATCH 0/5] Add OF support to the sh-sci serial port driver Simon Horman
2013-10-31  5:21   ` Simon Horman
2013-10-31 12:30   ` Laurent Pinchart
2013-10-31 12:30     ` Laurent Pinchart
2013-11-01  0:17     ` Simon Horman
2013-11-01  0:17       ` Simon Horman

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=1383042599-25151-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com \
    --to=laurent.pinchart+renesas@ideasonboard.com \
    --cc=devicetree@vger.kernel.org \
    --cc=hechtb+renesas@gmail.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-sh@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.