linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@ti.com>
To: Tony Lindgren <tony@atomide.com>, linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 04/10] ARM: dts: Add GPMC timings for omap zoom serial port
Date: Thu, 30 Oct 2014 14:21:30 +0200	[thread overview]
Message-ID: <54522D4A.6040900@ti.com> (raw)
In-Reply-To: <1414628948-30702-5-git-send-email-tony@atomide.com>

On 10/30/2014 02:29 AM, Tony Lindgren wrote:
> The four port serial port on the zoom debug board uses a TL16CP754C
> with a single interrupt and GPMC chip select. The serial ports each
> use a 8 bytes for IO registers, and are 256 bytes apart on the GPMC
> line.
> 
> Let's add timings for all four ports so we can remove the GPMC
> workarounds for using bootloader timings.
> 
> Not caused by this patch, but looks like u-boot only properly
> initializes the fifo on the first serial port. Currently the other
> ports produce garbage at least with my version of u-boot. I suspect
> that TL16CP754C needs non-standard initialization added to 8250
> driver to properly fix this issue.
> 
> Cc: Roger Quadros <rogerq@ti.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>

I haven't cross checked the timings, but otherwise it looks good to me.

cheers,
-roger

> ---
>  arch/arm/boot/dts/omap-zoom-common.dtsi | 58 +++++++++++++++++++++++++++++++++
>  1 file changed, 58 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap-zoom-common.dtsi b/arch/arm/boot/dts/omap-zoom-common.dtsi
> index 2889b50..46ef3e4 100644
> --- a/arch/arm/boot/dts/omap-zoom-common.dtsi
> +++ b/arch/arm/boot/dts/omap-zoom-common.dtsi
> @@ -23,6 +23,64 @@
>  		interrupts = <6 IRQ_TYPE_EDGE_RISING>;	/* gpio102 */
>  		clock-frequency = <1843200>;
>  		current-speed = <115200>;
> +		gpmc,mux-add-data = <0>;
> +		gpmc,device-width = <1>;
> +		gpmc,wait-pin = <1>;
> +		gpmc,cycle2cycle-samecsen = <1>;
> +		gpmc,cycle2cycle-diffcsen = <1>;
> +		gpmc,cs-on-ns = <5>;
> +		gpmc,cs-rd-off-ns = <155>;
> +		gpmc,cs-wr-off-ns = <155>;
> +		gpmc,adv-on-ns = <15>;
> +		gpmc,adv-rd-off-ns = <40>;
> +		gpmc,adv-wr-off-ns = <40>;
> +		gpmc,oe-on-ns = <45>;
> +		gpmc,oe-off-ns = <145>;
> +		gpmc,we-on-ns = <45>;
> +		gpmc,we-off-ns = <145>;
> +		gpmc,rd-cycle-ns = <155>;
> +		gpmc,wr-cycle-ns = <155>;
> +		gpmc,access-ns = <145>;
> +		gpmc,page-burst-access-ns = <20>;
> +		gpmc,bus-turnaround-ns = <20>;
> +		gpmc,cycle2cycle-delay-ns = <20>;
> +		gpmc,wait-monitoring-ns = <0>;
> +		gpmc,clk-activation-ns = <0>;
> +		gpmc,wr-data-mux-bus-ns = <45>;
> +		gpmc,wr-access-ns = <145>;
> +	};
> +	uart@3,1 {
> +		compatible = "ns16550a";
> +		reg = <3 0x100 8>;	/* CS3, offset 0x100, IO size 8 */
> +		bank-width = <2>;
> +		reg-shift = <1>;
> +		reg-io-width = <1>;
> +		interrupt-parent = <&gpio4>;
> +		interrupts = <6 IRQ_TYPE_EDGE_RISING>;	/* gpio102 */
> +		clock-frequency = <1843200>;
> +		current-speed = <115200>;
> +	};
> +	uart@3,2 {
> +		compatible = "ns16550a";
> +		reg = <3 0x200 8>;	/* CS3, offset 0x200, IO size 8 */
> +		bank-width = <2>;
> +		reg-shift = <1>;
> +		reg-io-width = <1>;
> +		interrupt-parent = <&gpio4>;
> +		interrupts = <6 IRQ_TYPE_EDGE_RISING>;	/* gpio102 */
> +		clock-frequency = <1843200>;
> +		current-speed = <115200>;
> +	};
> +	uart@3,3 {
> +		compatible = "ns16550a";
> +		reg = <3 0x300 8>;	/* CS3, offset 0x300, IO size 8 */
> +		bank-width = <2>;
> +		reg-shift = <1>;
> +		reg-io-width = <1>;
> +		interrupt-parent = <&gpio4>;
> +		interrupts = <6 IRQ_TYPE_EDGE_RISING>;	/* gpio102 */
> +		clock-frequency = <1843200>;
> +		current-speed = <115200>;
>  	};
>  
>  	ethernet@gpmc {
> 


  reply	other threads:[~2014-10-30 12:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-30  0:28 [PATCH 00/10] omap gpmc and board clean-up for v3.19 merge window Tony Lindgren
2014-10-30  0:28 ` [PATCH 01/10] ARM: dts: Fix bootloader version dependencies by muxing n900 smc91x pins Tony Lindgren
2014-10-30 11:59   ` Roger Quadros
2014-10-30 15:49     ` Tony Lindgren
2014-11-03  9:30       ` Roger Quadros
2014-10-30  0:29 ` [PATCH 02/10] ARM: dts: Fix wrong GPMC size mappings for omaps Tony Lindgren
2014-10-30 12:05   ` Roger Quadros
2014-10-30  0:29 ` [PATCH 03/10] ARM: dts: Add smc91x GPMC configuration for 2430sdp Tony Lindgren
2014-10-30  0:29 ` [PATCH 04/10] ARM: dts: Add GPMC timings for omap zoom serial port Tony Lindgren
2014-10-30 12:21   ` Roger Quadros [this message]
2014-10-30  0:29 ` [PATCH 05/10] ARM: OMAP2+: Fix support for multiple devices on a GPMC chip select Tony Lindgren
2014-10-30 12:26   ` Roger Quadros
2014-10-30  0:29 ` [PATCH 06/10] ARM: OMAP2+: Show bootloader GPMC timings to allow configuring the .dts file Tony Lindgren
2014-10-30 14:19   ` Roger Quadros
2014-10-30 14:45     ` Tony Lindgren
2014-10-30 15:04       ` Roger Quadros
2014-10-30 16:30         ` Tony Lindgren
2014-10-31  9:24           ` Roger Quadros
2014-11-04 13:40           ` Roger Quadros
2014-11-04 15:49             ` Tony Lindgren
2014-10-30 14:26   ` Roger Quadros
2014-10-30  0:29 ` [PATCH 07/10] ARM: OMAP2+: Require proper GPMC timings for devices Tony Lindgren
2014-10-30 14:27   ` Roger Quadros
2014-10-30  0:29 ` [PATCH 08/10] ARM: OMAP2+: Drop legacy code for gpmc-smc91x.c Tony Lindgren
2014-10-30 14:28   ` Roger Quadros
2014-10-30  0:29 ` [PATCH 09/10] ARM: OMAP2+: Drop board file for ti8168evm Tony Lindgren
2014-10-30  0:29 ` [PATCH 10/10] ARM: omap2plus: Drop board file for 3430sdp Tony Lindgren

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=54522D4A.6040900@ti.com \
    --to=rogerq@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).