public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Matt Sealey <matt@genesi-usa•com>
To: Stefan Strobl <nst@gersys•de>
Cc: ppc-dev <linuxppc-dev@ozlabs•org>
Subject: Re: ADS5121 how to use /dev/ttyPSC
Date: Wed, 14 Jan 2009 19:30:12 -0600	[thread overview]
Message-ID: <496E91A4.7030406@genesi-usa.com> (raw)
In-Reply-To: <496E172D.9060304@gersys.de>

Stefan Strobl wrote:
> Hi
> 
> I'm new to Kernel 2.6 and OF.
> 
> I'm using a ADS5121 board with kernel from denx (ads5121 branch from
> linux-2.6-denx). According to my dts file both PSC3 and PSC4 should be
> accessible through /dev/ttyPSC0 and /dev/ttyPSC1 respectively.
> 
> When I simply try to run: "$ echo "Hello" > /dev/ttyPSC*" I can't see
> any data coming out from the ports.

Are you sending it to just one of them at a time and just abbreviating 
your mail here to include both with a *, or are you really putting that 
asterisk in there when you test?

> And when trying to initialize the ports using termios commands I'm
> getting the Error "Inappropriate ioctl for device".

You're doing this manually or with an application?

> But I can see the driver ttyPSC with major 204 in /proc/devices and I
> can also open the device successfully. I am also able to configure
> either port as CONSOLE in U-Boot so the Hardware is ok.

So you're getting debug output (udbg type stuff) on them?

-- Matt Sealey

      reply	other threads:[~2009-01-15  1:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 16:47 ADS5121 how to use /dev/ttyPSC Stefan Strobl
2009-01-15  1:30 ` Matt Sealey [this message]

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=496E91A4.7030406@genesi-usa.com \
    --to=matt@genesi-usa$(echo .)com \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=nst@gersys$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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