* [PATCH 1/2] Documentation: bindings: add optional fifo size property to AMBA UARTs
[not found] ` <1424290069-8760-1-git-send-email-jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2015-02-18 20:07 ` Jorge Ramirez-Ortiz
[not found] ` <1424290069-8760-2-git-send-email-jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-02-18 20:07 ` [PATCH 2/2] drivers/tty: pl011: read fifo size from OF if present Jorge Ramirez-Ortiz
2015-03-03 16:55 ` [version 2] amba uarts - arm type uarts fifo size provided by device tree Mark Rutland
2 siblings, 1 reply; 9+ messages in thread
From: Jorge Ramirez-Ortiz @ 2015-02-18 20:07 UTC (permalink / raw)
To: jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A,
devicetree-u79uwXL29TY76Z2rM5mHXA, linux-lFZ/pmaqli7XmaaqVzeoHQ,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
Documentation/devicetree/bindings/serial/pl011.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/serial/pl011.txt b/Documentation/devicetree/bindings/serial/pl011.txt
index 5d2e840..05d1adb 100644
--- a/Documentation/devicetree/bindings/serial/pl011.txt
+++ b/Documentation/devicetree/bindings/serial/pl011.txt
@@ -13,5 +13,6 @@ Optional properties:
- dmas: When present, may have one or two dma channels.
The first one must be named "rx", the second one
must be named "tx".
+- fifo-size: When present, must have the fifo size.
See also bindings/arm/primecell.txt
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] drivers/tty: pl011: read fifo size from OF if present
[not found] ` <1424290069-8760-1-git-send-email-jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-02-18 20:07 ` [PATCH 1/2] Documentation: bindings: add optional fifo size property to AMBA UARTs Jorge Ramirez-Ortiz
@ 2015-02-18 20:07 ` Jorge Ramirez-Ortiz
[not found] ` <1424290069-8760-3-git-send-email-jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-03-03 16:55 ` [version 2] amba uarts - arm type uarts fifo size provided by device tree Mark Rutland
2 siblings, 1 reply; 9+ messages in thread
From: Jorge Ramirez-Ortiz @ 2015-02-18 20:07 UTC (permalink / raw)
To: jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A,
devicetree-u79uwXL29TY76Z2rM5mHXA, linux-lFZ/pmaqli7XmaaqVzeoHQ,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/tty/serial/amba-pl011.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 02016fc..c6a2dd8 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -84,6 +84,11 @@ struct vendor_data {
static unsigned int get_fifosize_arm(struct amba_device *dev)
{
+ u32 val;
+
+ if (!of_property_read_u32(dev->dev.of_node, "fifo-size", &val))
+ return val;
+
return amba_rev(dev) < 3 ? 16 : 32;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [version 2] amba uarts - arm type uarts fifo size provided by device tree
[not found] ` <1424290069-8760-1-git-send-email-jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-02-18 20:07 ` [PATCH 1/2] Documentation: bindings: add optional fifo size property to AMBA UARTs Jorge Ramirez-Ortiz
2015-02-18 20:07 ` [PATCH 2/2] drivers/tty: pl011: read fifo size from OF if present Jorge Ramirez-Ortiz
@ 2015-03-03 16:55 ` Mark Rutland
2015-03-04 20:52 ` Jorge Ramirez-Ortiz
2015-03-09 12:25 ` Jorge Ramirez-Ortiz
2 siblings, 2 replies; 9+ messages in thread
From: Mark Rutland @ 2015-03-03 16:55 UTC (permalink / raw)
To: Jorge Ramirez-Ortiz
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
On Wed, Feb 18, 2015 at 08:07:47PM +0000, Jorge Ramirez-Ortiz wrote:
> [PATCH 1/2] Documentation: bindings: add optional fifo size property
> [PATCH 2/2] drivers/tty: pl011: read fifo size from OF if present [updated]
>
> These patches aim at resolving an issue present on some of the amba pl011 uarts.
>
> They were developed for the Hisilicon Hi6220 SoC where the fifo size on the
> uarts is 64 despite the amba revision having been set to 1.
Are we certain that the FIFO length is the only difference between the
HI6220 PL011 and a regular PL011?
It may be worth adding a compatible string in addition, just in case.
Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [version 2] amba uarts - arm type uarts fifo size provided by device tree
2015-03-03 16:55 ` [version 2] amba uarts - arm type uarts fifo size provided by device tree Mark Rutland
@ 2015-03-04 20:52 ` Jorge Ramirez-Ortiz
2015-03-09 12:25 ` Jorge Ramirez-Ortiz
1 sibling, 0 replies; 9+ messages in thread
From: Jorge Ramirez-Ortiz @ 2015-03-04 20:52 UTC (permalink / raw)
To: Mark Rutland
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
On 03/03/2015 11:55 AM, Mark Rutland wrote:
> On Wed, Feb 18, 2015 at 08:07:47PM +0000, Jorge Ramirez-Ortiz wrote:
>> [PATCH 1/2] Documentation: bindings: add optional fifo size property
>> [PATCH 2/2] drivers/tty: pl011: read fifo size from OF if present [updated]
>>
>> These patches aim at resolving an issue present on some of the amba pl011 uarts.
>>
>> They were developed for the Hisilicon Hi6220 SoC where the fifo size on the
>> uarts is 64 despite the amba revision having been set to 1.
> Are we certain that the FIFO length is the only difference between the
> HI6220 PL011 and a regular PL011?
I am trying to get an answer from the hardware designers.
>
> It may be worth adding a compatible string in addition, just in case.
>
> Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [version 2] amba uarts - arm type uarts fifo size provided by device tree
2015-03-03 16:55 ` [version 2] amba uarts - arm type uarts fifo size provided by device tree Mark Rutland
2015-03-04 20:52 ` Jorge Ramirez-Ortiz
@ 2015-03-09 12:25 ` Jorge Ramirez-Ortiz
[not found] ` <54FD912F.8080403-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
1 sibling, 1 reply; 9+ messages in thread
From: Jorge Ramirez-Ortiz @ 2015-03-09 12:25 UTC (permalink / raw)
To: Mark Rutland
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
On 03/03/2015 11:55 AM, Mark Rutland wrote:
> On Wed, Feb 18, 2015 at 08:07:47PM +0000, Jorge Ramirez-Ortiz wrote:
>> [PATCH 1/2] Documentation: bindings: add optional fifo size property
>> [PATCH 2/2] drivers/tty: pl011: read fifo size from OF if present [updated]
>>
>> These patches aim at resolving an issue present on some of the amba pl011 uarts.
>>
>> They were developed for the Hisilicon Hi6220 SoC where the fifo size on the
>> uarts is 64 despite the amba revision having been set to 1.
> Are we certain that the FIFO length is the only difference between the
> HI6220 PL011 and a regular PL011?
you were right.
I just confirmed that there are a number of differences on top of the fifo size
requiring many additional software changes.
This is not great news since the uart announces itself as vendor_arm version 1.
so please discard this patch.
>
> It may be worth adding a compatible string in addition, just in case.
>
> Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread