public inbox for linux-aspeed@lists.ozlabs.org
 help / color / mirror / Atom feed
From: Andrew Jeffery <andrew@aj.id.au>
To: linux-aspeed@lists.ozlabs.org
Subject: Re: [PATCH 2/3] aspeed/pinctrl: Fix simultaneous RS-232 / PWM and DVO outputs on AST2500 devices
Date: Thu, 02 May 2019 00:05:44 -0400	[thread overview]
Message-ID: <46d7b027-0f88-47e3-a132-e59b7640c867@www.fastmail.com> (raw)
In-Reply-To: <921172cf50484d839bd30fa27ecf525e@TWMBX02.aspeed.com>



On Thu, 2 May 2019, at 13:17, Ryan Chen wrote:
> ----- Original Message -----
> > From: "Ryan Chen" <ryan_chen@aspeedtech.com>
> > To: "Andrew Jeffery" <andrew@aj.id.au>, "Timothy Pearson" <tpearson@raptorengineering.com>, "linux-aspeed"
> > <linux-aspeed@lists.ozlabs.org>
> > Cc: "Morris Mao" <morris_mao@aspeedtech.com>
> > Sent: Wednesday, May 1, 2019 10:06:25 PM
> > Subject: RE: [PATCH 2/3] aspeed/pinctrl: Fix simultaneous RS-232 / PWM 
> > and DVO outputs on AST2500 devices
> 
> >>On Thu, 2 May 2019, at 08:20, Timothy Pearson wrote:
> >> There appears to be a small error in the pinmux table on pages 130 
> >>and
> >> 131 of the AST2500 datasheet v1.6.  Specifically, the COND2  
> >>requirement used to mux the surrounding pins to DVI was inadvertently  
> >>replicated to pins V1, W1, V2, and W2 in the table, which do not  
> >>incorporate DVI functionality.
> >> 
> >> As a result of this error, both serial TX lines and the PWM 0/1 
> >> outputs were overriding the VPO pinmux settings when VPO was enabled 
> >> in the pinmux hogs.
> >> 
> >> This patch has been verified to function on Blackbird hardware.  Both 
> >> serial TXD pins and PWM0/PWM1 were functionally tested with 
> >> SCU94[1:0] set to 0x1.
> > 
> > Hello Tim.
> > 
> > The AST2500 pwm0/1 configure need following condition, the SCU94[1:0] 
> > is 0x1, it should not work.
> > Could you help confirm it?
> > 
> > v2 : pwm 0 : scu88[0] = 1 & scu 94[1:0] = 0 & scu90[5] = 0
> > w2 : pwm 1 : scu88[1] = 1 & scu 94[1:0] = 0 & scu90[5] = 0
> 
> >>I can confirm that with SCU94[1:0] == 0x1 the PWM0 and PWM1 outputs work correctly -- this was tested on our Blackbird >>hardware.  If you are reading from the datasheet, I suspect there are a few errors in it relating to the relatively rarely used DVO >>mux settings.
> 
> Yes it can work after check with designer, if you don't enable the CRT 
> driver, it will work.
> But for safety.

What do you mean by "for safety"?

> You need also and with COND2 for pwm driver loaded.

I'm confused here because it sounds like from Tim's experiment PWM0
/ PWM1 work without the dependency on COND2 despite VPO being
enabled, and the designer confirms as much, but we shouldn't do it?

Regardless, in summary you're saying that for TXD1 and RXD1 the
change to remove the dependence on COND2 is appropriate, but
not for PWM0 and PWM1?

Andrew

> 
> 
>

  reply	other threads:[~2019-05-02  4:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-01 22:49 [PATCH 2/3] aspeed/pinctrl: Fix simultaneous RS-232 / PWM and DVO outputs on AST2500 devices Timothy Pearson
2019-05-02  2:05 ` Andrew Jeffery
2019-05-02  3:06   ` Ryan Chen
2019-05-02  3:34     ` Timothy Pearson
2019-05-02  3:47       ` Ryan Chen
2019-05-02  4:05         ` Andrew Jeffery [this message]
2019-05-02  4:58           ` Ryan Chen
2019-05-02  5:36             ` Andrew Jeffery

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=46d7b027-0f88-47e3-a132-e59b7640c867@www.fastmail.com \
    --to=andrew@aj.id.au \
    --cc=linux-aspeed@lists.ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox