devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
@ 2017-10-09  9:06 Fabrizio Castro
  2017-10-09 12:08 ` Geert Uytterhoeven
  0 siblings, 1 reply; 7+ messages in thread
From: Fabrizio Castro @ 2017-10-09  9:06 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Russell King
  Cc: Simon Horman, Geert Uytterhoeven, devicetree, linux-arm-kernel,
	linux-renesas-soc, Chris Paterson, Biju Das, Fabrizio Castro,
	Chris Paterson

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
---
 arch/arm/boot/dts/iwg20d-q7-common.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/iwg20d-q7-common.dtsi b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
index 1c072c0..8c852d1 100644
--- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi
+++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
@@ -11,6 +11,7 @@
 / {
 	aliases {
 		serial0 = &scif0;
+		serial3 = &scifb1;
 		ethernet0 = &avb;
 	};
 
@@ -99,6 +100,11 @@
 		function = "scif0";
 	};
 
+	scifb1_pins: scifb1 {
+		groups = "scifb1_data_d", "scifb1_ctrl";
+		function = "scifb1";
+	};
+
 	sdhi1_pins: sd1 {
 		groups = "sdhi1_data4", "sdhi1_ctrl";
 		function = "sdhi1";
@@ -129,6 +135,14 @@
 	status = "okay";
 };
 
+&scifb1 {
+	pinctrl-0 = <&scifb1_pins>;
+	pinctrl-names = "default";
+
+	uart-has-rtscts;
+	status = "okay";
+};
+
 &sdhi1 {
 	pinctrl-0 = <&sdhi1_pins>;
 	pinctrl-1 = <&sdhi1_pins_uhs>;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
  2017-10-09  9:06 [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3 Fabrizio Castro
@ 2017-10-09 12:08 ` Geert Uytterhoeven
       [not found]   ` <CAMuHMdUprE7QuXF_sX47JyrvuZXhXnQFufy4OHeJ5ExwwoogKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2017-10-23 13:25   ` Fabrizio Castro
  0 siblings, 2 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2017-10-09 12:08 UTC (permalink / raw)
  To: Fabrizio Castro, Chris Paterson
  Cc: Rob Herring, Mark Rutland, Russell King, Simon Horman,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Linux-Renesas, Biju Das

Hi Fabrizio, Chris,

On Mon, Oct 9, 2017 at 11:06 AM, Fabrizio Castro
<fabrizio.castro@bp.renesas.com> wrote:
> Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>

Thanks for your patch!

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

> --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> @@ -11,6 +11,7 @@
>  / {
>         aliases {
>                 serial0 = &scif0;
> +               serial3 = &scifb1;

Given this port is not labeled "serial3", but called "data uart", you may want
to add a comment to avoid confusion:

    serial3 = &scifb1; /* data uart */

>                 ethernet0 = &avb;
>         };

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
       [not found]   ` <CAMuHMdUprE7QuXF_sX47JyrvuZXhXnQFufy4OHeJ5ExwwoogKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-10-09 13:45     ` Fabrizio Castro
  2017-11-02  8:04       ` Simon Horman
  0 siblings, 1 reply; 7+ messages in thread
From: Fabrizio Castro @ 2017-10-09 13:45 UTC (permalink / raw)
  To: Geert Uytterhoeven, Chris Paterson
  Cc: Rob Herring, Mark Rutland, Russell King, Simon Horman,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Linux-Renesas, Biju Das

Hello Geert,

thank you for your feedback!

>
> Hi Fabrizio, Chris,
>
> On Mon, Oct 9, 2017 at 11:06 AM, Fabrizio Castro
> <fabrizio.castro@bp.renesas.com> wrote:
> > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> > Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
>
> Thanks for your patch!
>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> > --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > @@ -11,6 +11,7 @@
> >  / {
> >         aliases {
> >                 serial0 = &scif0;
> > +               serial3 = &scifb1;
>
> Given this port is not labeled "serial3", but called "data uart", you may want
> to add a comment to avoid confusion:

It's a little bit confusing, isn't it? The lines related to such interface are named as UART0_x on the carrier board schematic, the section of the schematic that contains the header is named "data uart header", and the board documentation names it explicitly as "UART 3 - /dev/ttySC3 (SCIFB1)".

I don't think there is anything we can do to make this easier for the user really, is there? :D
If we decide to add a comment to serial 3, I guess we need to be consistent and add comments for the other serial interfaces too.
If you still prefer having a comment there I'll send a v2 and patch(es) for adding comments to the other interfaces, just let me know.

Thanks,
Fab

>
>     serial3 = &scifb1; /* data uart */
>
> >                 ethernet0 = &avb;
> >         };
>
> Gr{oetje,eeting}s,
>
>                         Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
  2017-10-09 12:08 ` Geert Uytterhoeven
       [not found]   ` <CAMuHMdUprE7QuXF_sX47JyrvuZXhXnQFufy4OHeJ5ExwwoogKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-10-23 13:25   ` Fabrizio Castro
  2017-11-07 11:09     ` Geert Uytterhoeven
  1 sibling, 1 reply; 7+ messages in thread
From: Fabrizio Castro @ 2017-10-23 13:25 UTC (permalink / raw)
  To: Geert Uytterhoeven, Chris Paterson
  Cc: Rob Herring, Mark Rutland, Russell King, Simon Horman,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Linux-Renesas, Biju Das

Hello Geert,

> >
> > > --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > > +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > > @@ -11,6 +11,7 @@
> > >  / {
> > >         aliases {
> > >                 serial0 = &scif0;
> > > +               serial3 = &scifb1;
> >
> > Given this port is not labeled "serial3", but called "data uart", you may want
> > to add a comment to avoid confusion:
>
> It's a little bit confusing, isn't it? The lines related to such interface are named as UART0_x on the carrier board schematic, the section
> of the schematic that contains the header is named "data uart header", and the board documentation names it explicitly as "UART 3 -
> /dev/ttySC3 (SCIFB1)".
>
> I don't think there is anything we can do to make this easier for the user really, is there? :D
> If we decide to add a comment to serial 3, I guess we need to be consistent and add comments for the other serial interfaces too.
> If you still prefer having a comment there I'll send a v2 and patch(es) for adding comments to the other interfaces, just let me know.

Any thoughts about this?

Thanks,
Fab

>
> Thanks,
> Fab
>



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
  2017-10-09 13:45     ` Fabrizio Castro
@ 2017-11-02  8:04       ` Simon Horman
       [not found]         ` <20171102080412.n3wfabxt2ayswxzp-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Simon Horman @ 2017-11-02  8:04 UTC (permalink / raw)
  To: Fabrizio Castro
  Cc: Geert Uytterhoeven, Chris Paterson, Rob Herring, Mark Rutland,
	Russell King, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Linux-Renesas, Biju Das

On Mon, Oct 09, 2017 at 01:45:07PM +0000, Fabrizio Castro wrote:
> Hello Geert,
> 
> thank you for your feedback!
> 
> >
> > Hi Fabrizio, Chris,
> >
> > On Mon, Oct 9, 2017 at 11:06 AM, Fabrizio Castro
> > <fabrizio.castro@bp.renesas.com> wrote:
> > > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> > > Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
> >
> > Thanks for your patch!
> >
> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > > --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > > +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > > @@ -11,6 +11,7 @@
> > >  / {
> > >         aliases {
> > >                 serial0 = &scif0;
> > > +               serial3 = &scifb1;
> >
> > Given this port is not labeled "serial3", but called "data uart", you may want
> > to add a comment to avoid confusion:
> 
> It's a little bit confusing, isn't it? The lines related to such
> interface are named as UART0_x on the carrier board schematic, the
> section of the schematic that contains the header is named "data uart
> header", and the board documentation names it explicitly as "UART 3 -
> /dev/ttySC3 (SCIFB1)".
> 
> I don't think there is anything we can do to make this easier for the
> user really, is there? :D If we decide to add a comment to serial 3, I
> guess we need to be consistent and add comments for the other serial
> interfaces too.  If you still prefer having a comment there I'll send a
> v2 and patch(es) for adding comments to the other interfaces, just let me
> know.

I have applied this patch. If a comment is subsequently decided on
then please send a follow-up patch.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
       [not found]         ` <20171102080412.n3wfabxt2ayswxzp-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
@ 2017-11-02  9:20           ` Fabrizio Castro
  0 siblings, 0 replies; 7+ messages in thread
From: Fabrizio Castro @ 2017-11-02  9:20 UTC (permalink / raw)
  To: Simon Horman
  Cc: Geert Uytterhoeven, Chris Paterson, Rob Herring, Mark Rutland,
	Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Linux-Renesas, Biju Das

> Subject: Re: [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
>
> On Mon, Oct 09, 2017 at 01:45:07PM +0000, Fabrizio Castro wrote:
> > Hello Geert,
> >
> > thank you for your feedback!
> >
> > >
> > > Hi Fabrizio, Chris,
> > >
> > > On Mon, Oct 9, 2017 at 11:06 AM, Fabrizio Castro
> > > <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> wrote:
> > > > Signed-off-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
> > > > Signed-off-by: Chris Paterson <chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
> > >
> > > Thanks for your patch!
> > >
> > > Reviewed-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
> > >
> > > > --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > > > +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
> > > > @@ -11,6 +11,7 @@
> > > >  / {
> > > >         aliases {
> > > >                 serial0 = &scif0;
> > > > +               serial3 = &scifb1;
> > >
> > > Given this port is not labeled "serial3", but called "data uart", you may want
> > > to add a comment to avoid confusion:
> >
> > It's a little bit confusing, isn't it? The lines related to such
> > interface are named as UART0_x on the carrier board schematic, the
> > section of the schematic that contains the header is named "data uart
> > header", and the board documentation names it explicitly as "UART 3 -
> > /dev/ttySC3 (SCIFB1)".
> >
> > I don't think there is anything we can do to make this easier for the
> > user really, is there? :D If we decide to add a comment to serial 3, I
> > guess we need to be consistent and add comments for the other serial
> > interfaces too.  If you still prefer having a comment there I'll send a
> > v2 and patch(es) for adding comments to the other interfaces, just let me
> > know.
>
> I have applied this patch. If a comment is subsequently decided on
> then please send a follow-up patch.

Thank you Simon.

Cheers,
Fab



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.
--
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] 7+ messages in thread

* Re: [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3
  2017-10-23 13:25   ` Fabrizio Castro
@ 2017-11-07 11:09     ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2017-11-07 11:09 UTC (permalink / raw)
  To: Fabrizio Castro
  Cc: Chris Paterson, Rob Herring, Mark Rutland, Russell King,
	Simon Horman, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Linux-Renesas, Biju Das

Hi Fabrizio,

On Mon, Oct 23, 2017 at 3:25 PM, Fabrizio Castro
<fabrizio.castro@bp.renesas.com> wrote:
>> > > --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi
>> > > +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi
>> > > @@ -11,6 +11,7 @@
>> > >  / {
>> > >         aliases {
>> > >                 serial0 = &scif0;
>> > > +               serial3 = &scifb1;
>> >
>> > Given this port is not labeled "serial3", but called "data uart", you may want
>> > to add a comment to avoid confusion:
>>
>> It's a little bit confusing, isn't it? The lines related to such interface are named as UART0_x on the carrier board schematic, the section
>> of the schematic that contains the header is named "data uart header", and the board documentation names it explicitly as "UART 3 -
>> /dev/ttySC3 (SCIFB1)".

And you cannot use "serial0" (to match "UART0"), as that's already in use
for the SOM...

>> I don't think there is anything we can do to make this easier for the user really, is there? :D
>> If we decide to add a comment to serial 3, I guess we need to be consistent and add comments for the other serial interfaces too.
>> If you still prefer having a comment there I'll send a v2 and patch(es) for adding comments to the other interfaces, just let me know.
>
> Any thoughts about this?

Making life easier for the user is good.
Consistency is also good.

I have no strong feelings about this, so do as you please...

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-07 11:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09  9:06 [PATCH] ARM: dts: iwg20d-q7: Add support for ttySC3 Fabrizio Castro
2017-10-09 12:08 ` Geert Uytterhoeven
     [not found]   ` <CAMuHMdUprE7QuXF_sX47JyrvuZXhXnQFufy4OHeJ5ExwwoogKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-09 13:45     ` Fabrizio Castro
2017-11-02  8:04       ` Simon Horman
     [not found]         ` <20171102080412.n3wfabxt2ayswxzp-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2017-11-02  9:20           ` Fabrizio Castro
2017-10-23 13:25   ` Fabrizio Castro
2017-11-07 11:09     ` Geert Uytterhoeven

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).