* [PATCH 1/2] tty/serial: Update of_serial's XSCALE port type to be generic
@ 2011-05-12 16:41 Stephen Warren
[not found] ` <1305218474-4087-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Warren @ 2011-05-12 16:41 UTC (permalink / raw)
To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
Instead of adding a specific nvidia,tegra250-uart entry, add a generic
xscale entry that can be used by any XSCALE-compatible device. This avoids
us having to add a new entry per vendor to of_serial.c, just like all the
other already extant entries.
I assume this patch will be squashed into or replace
b9e7db240617f12dd371b0a363042fb007e97ed7
tty/serial: Add devicetree support for nVidia Tegra serial ports
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
drivers/tty/serial/of_serial.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index 0d3f138..bfc1c2e 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -168,7 +168,7 @@ static struct of_device_id __devinitdata of_platform_serial_table[] = {
{ .compatible = "ns16550", .data = (void *)PORT_16550, },
{ .compatible = "ns16750", .data = (void *)PORT_16750, },
{ .compatible = "ns16850", .data = (void *)PORT_16850, },
- { .compatible = "nvidia,tegra250-uart", .data = (void *)PORT_XSCALE, },
+ { .compatible = "xscale", .data = (void *)PORT_XSCALE, },
#ifdef CONFIG_SERIAL_OF_PLATFORM_NWPSERIAL
{ .compatible = "ibm,qpace-nwp-serial",
.data = (void *)PORT_NWPSERIAL, },
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1305218474-4087-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* [PATCH 2/2] arm/dt: tegra: Update serial port compatible values [not found] ` <1305218474-4087-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2011-05-12 16:41 ` Stephen Warren 2011-05-19 19:11 ` [PATCH 1/2] tty/serial: Update of_serial's XSCALE port type to be generic Grant Likely 1 sibling, 0 replies; 3+ messages in thread From: Stephen Warren @ 2011-05-12 16:41 UTC (permalink / raw) To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-tegra-u79uwXL29TY76Z2rM5mHXA Update the Tegra SoC serial port definitions to additionally be compatible with the new generic "xscale" type. I assume this will be squashed into: commit a487b855dc1e243c52d531896705d0e33941e3a2 arm/dt: full tegra devicetree support Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> --- arch/arm/boot/dts/tegra250.dtsi | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/tegra250.dtsi b/arch/arm/boot/dts/tegra250.dtsi index f1801b8..0a251e9 100644 --- a/arch/arm/boot/dts/tegra250.dtsi +++ b/arch/arm/boot/dts/tegra250.dtsi @@ -29,7 +29,7 @@ }; serial@70006000 { - compatible = "nvidia,tegra250-uart"; + compatible = "nvidia,tegra250-uart", "xscale"; reg = <0x70006000 0x40>; reg-shift = <2>; interrupts = < 68 >; @@ -37,7 +37,7 @@ }; serial@70006040 { - compatible = "nvidia,tegra250-uart"; + compatible = "nvidia,tegra250-uart", "xscale"; reg = <0x70006040 0x40>; reg-shift = <2>; interrupts = < 69 >; @@ -45,7 +45,7 @@ }; serial@70006200 { - compatible = "nvidia,tegra250-uart"; + compatible = "nvidia,tegra250-uart", "xscale"; reg = <0x70006200 0x100>; reg-shift = <2>; interrupts = < 78 >; @@ -53,7 +53,7 @@ }; serial@70006300 { - compatible = "nvidia,tegra250-uart"; + compatible = "nvidia,tegra250-uart", "xscale"; reg = <0x70006300 0x100>; reg-shift = <2>; interrupts = < 122 >; @@ -61,7 +61,7 @@ }; serial@70006400 { - compatible = "nvidia,tegra250-uart"; + compatible = "nvidia,tegra250-uart", "xscale"; reg = <0x70006400 0x100>; reg-shift = <2>; interrupts = < 123 >; -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] tty/serial: Update of_serial's XSCALE port type to be generic [not found] ` <1305218474-4087-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2011-05-12 16:41 ` [PATCH 2/2] arm/dt: tegra: Update serial port compatible values Stephen Warren @ 2011-05-19 19:11 ` Grant Likely 1 sibling, 0 replies; 3+ messages in thread From: Grant Likely @ 2011-05-19 19:11 UTC (permalink / raw) To: Stephen Warren Cc: olof-nZhT3qVonbNeoWH0uzbU5w, bones-s3s/WqlpOiPyB63q8FvJNQ, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-tegra-u79uwXL29TY76Z2rM5mHXA On Thu, May 12, 2011 at 10:41:13AM -0600, Stephen Warren wrote: > Instead of adding a specific nvidia,tegra250-uart entry, add a generic > xscale entry that can be used by any XSCALE-compatible device. This avoids > us having to add a new entry per vendor to of_serial.c, just like all the > other already extant entries. > > I assume this patch will be squashed into or replace > b9e7db240617f12dd371b0a363042fb007e97ed7 > tty/serial: Add devicetree support for nVidia Tegra serial ports > > Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > --- > drivers/tty/serial/of_serial.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c > index 0d3f138..bfc1c2e 100644 > --- a/drivers/tty/serial/of_serial.c > +++ b/drivers/tty/serial/of_serial.c > @@ -168,7 +168,7 @@ static struct of_device_id __devinitdata of_platform_serial_table[] = { > { .compatible = "ns16550", .data = (void *)PORT_16550, }, > { .compatible = "ns16750", .data = (void *)PORT_16750, }, > { .compatible = "ns16850", .data = (void *)PORT_16850, }, > - { .compatible = "nvidia,tegra250-uart", .data = (void *)PORT_XSCALE, }, > + { .compatible = "xscale", .data = (void *)PORT_XSCALE, }, As previously discussed (and repeating here just for the historical record), this isn't really the right thing since the port isn't actually an Xscale port and has a subtly different behaviour. The solution discussed in our other thread about the tegra serial port should be pursued. g. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-19 19:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 16:41 [PATCH 1/2] tty/serial: Update of_serial's XSCALE port type to be generic Stephen Warren
[not found] ` <1305218474-4087-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-05-12 16:41 ` [PATCH 2/2] arm/dt: tegra: Update serial port compatible values Stephen Warren
2011-05-19 19:11 ` [PATCH 1/2] tty/serial: Update of_serial's XSCALE port type to be generic Grant Likely
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).