From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Rob Landley <rob@landley.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Jiri Slaby <jirislaby@kernel.org>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Ulrich Hecht <uli+renesas@fpond.eu>,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
"open list:SERIAL DRIVERS" <linux-serial@vger.kernel.org>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
Linux-sh list <linux-sh@vger.kernel.org>,
"moderated list:H8/300 ARCHITECTURE"
<uclinux-h8-devel@lists.sourceforge.jp>,
Magnus Damm <magnus.damm@gmail.com>
Subject: Re: [PATCH 0/3] serial: sh-sci: Clock handling improvements
Date: Wed, 22 Dec 2021 18:25:57 +0900 [thread overview]
Message-ID: <87v8zhkn2y.wl-ysato@users.sourceforge.jp> (raw)
In-Reply-To: <ffd9ed49-69eb-0508-d2fa-5585a1421d78@landley.net>
On Mon, 20 Dec 2021 19:29:24 +0900,
Rob Landley wrote:
>
> On 12/19/21 4:53 AM, Geert Uytterhoeven wrote:
> >> By the way, did you ever figure out how to get the first serial port to work on
> >> qemu so qemu-system-sh4 doesn't have to "-serial null -serial mon:stdio" to get
> >> a serial console?
> >
> > Nope, same as last time you asked ;-)
>
> Well it had been a couple years, you never know...
>
> > However, upon a fresh look at linux/arch/sh/boards/mach-r2d/setup.c,
> > I noticed something I missed before: the SCI port is not available
> > as a UART, as it is used to talk SPI to an RTC.
Yes.
R2D plus serial port connected SuperI/O UART. It not cpu on-chip SCI.
It is not possible to check SCI with the standard version of qemu-system-sh4.
There is SCI emulation, so you can change it to connect to the qemu serial port.
> /* Single Epson RTC-9701JE attached on CS0 */
>
> Huh. That does explain the CONFIG_RTC_DRV_R9701=y in rts7751r2d*_defconfig.
> (And also SPI SPI_SH_SCI MFD_SM501 RTC_CLASS and RTC_DRV_SH RTC_HCTOSYS which
> I've never gotten connected to QEMU.)
SPI_SH_SCI using SCI pin like GPIO.
qemu-system-sh4 is not support this.
> > So that means qemu
> > has the hardware description wrong?
>
> It would be nice if qemu-system-sh4 grew an RTC. Looks like Sato-san and Magnus
> Damm are the qemu-system-sh4 maintainers? (cc'd)
>
> Thanks,
>
> Rob
--
Yosinori Sato
prev parent reply other threads:[~2021-12-22 9:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-16 14:17 [PATCH 0/3] serial: sh-sci: Clock handling improvements Geert Uytterhoeven
2021-12-16 14:17 ` [PATCH 1/3] serial: sh-sci: Drop support for "sci_ick" clock Geert Uytterhoeven
2021-12-16 14:52 ` Laurent Pinchart
2021-12-16 15:17 ` Wolfram Sang
2021-12-16 14:17 ` [PATCH 2/3] serial: sh-sci: Use dev_err_probe() Geert Uytterhoeven
2021-12-16 14:52 ` Laurent Pinchart
2021-12-16 15:18 ` Wolfram Sang
2021-12-16 14:17 ` [PATCH 3/3] serial: sh-sci: Use devm_clk_get_optional() Geert Uytterhoeven
2021-12-16 14:53 ` Laurent Pinchart
2021-12-16 15:23 ` Wolfram Sang
2021-12-19 10:35 ` [PATCH 0/3] serial: sh-sci: Clock handling improvements Rob Landley
2021-12-19 10:53 ` Geert Uytterhoeven
2021-12-20 10:29 ` Rob Landley
2021-12-22 9:25 ` Yoshinori Sato [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=87v8zhkn2y.wl-ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=geert@linux-m68k.org \
--cc=jirislaby@kernel.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=rob@landley.net \
--cc=uclinux-h8-devel@lists.sourceforge.jp \
--cc=uli+renesas@fpond.eu \
--cc=wsa+renesas@sang-engineering.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.