lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <TY3PR01MB1134698C3462DBE86ABA1597B86DCA@TY3PR01MB11346.jpnprd01.prod.outlook.com>
Date: Fri, 28 Nov 2025 15:43:15 +0000
From: Biju Das <biju.das.jz@...renesas.com>
To: geert <geert@...ux-m68k.org>
CC: magnus.damm <magnus.damm@...il.com>, Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
	"linux-renesas-soc@...r.kernel.org" <linux-renesas-soc@...r.kernel.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, Prabhakar
 Mahadev Lad <prabhakar.mahadev-lad.rj@...renesas.com>, biju.das.au
	<biju.das.au@...il.com>
Subject: RE: [PATCH 19/19] arm64: dts: renesas: renesas-smarc2: Enable
 rsci{2,4,9} nodes

Hi Geert,

Thanks for the feedback

> -----Original Message-----
> From: Geert Uytterhoeven <geert@...ux-m68k.org>
> Sent: 28 November 2025 13:41
> Subject: Re: [PATCH 19/19] arm64: dts: renesas: renesas-smarc2: Enable rsci{2,4,9} nodes
> 
> Hi Biju,
> 
> On Mon, 27 Oct 2025 at 16:47, Biju Das <biju.das.jz@...renesas.com> wrote:
> > Enable device rsci{2,4,9} nodes for the RZ SMARC Carrier-II Board.
> >
> > Signed-off-by: Biju Das <biju.das.jz@...renesas.com>
> 
> Thanks for your patch!
> 
> > --- a/arch/arm64/boot/dts/renesas/r9a09g047e57-smarc.dts
> > +++ b/arch/arm64/boot/dts/renesas/r9a09g047e57-smarc.dts
> > @@ -38,6 +38,9 @@ / {
> >
> >         aliases {
> >                 i2c0 = &i2c0;
> > +               serial0 = &rsci4;
> > +               serial1 = &rsci9;
> > +               serial2 = &rsci2;
> >                 serial3 = &scif0;
> >                 mmc1 = &sdhi1;
> >         };
> > @@ -141,6 +144,26 @@ nmi_pins: nmi {
> >                 input-schmitt-enable;
> >         };
> >
> > +       rsci2_pins: rsci2 {
> > +               pinmux = <RZG3E_PORT_PINMUX(1, 1, 1)>, /* SER2_TX */
> > +                        <RZG3E_PORT_PINMUX(1, 0, 1)>, /* SER2_RX */
> 
> Why not order by port number?

It is mistake, will fix it.

> 
> > +                        <RZG3E_PORT_PINMUX(1, 2, 6)>, /* SER2_CTS# */
> > +                        <RZG3E_PORT_PINMUX(1, 3, 1)>; /* SER2_RTS# */
> 
> These comments reflect the board signals?  Usually we put the pin functions ("TXD2", "RXD2", "CTS2N",
> "RTS2N") in the comments.

OK.

> 
> > +               bias-pull-up;
> > +       };
> > +
> > +       rsci4_pins: rsci4 {
> > +               pinmux = <RZG3E_PORT_PINMUX(7, 7, 5)>, /* SER0_TX */
> > +                        <RZG3E_PORT_PINMUX(7, 6, 5)>; /* SER0_RX */
> 
> Why not order by port number?
> 
> Pin functions are "TXD4" and "RXD4".
> 

OK.

> CTS4N and RTS4N seem to be wired, too?

OK, Will add.

> 
> > +               bias-pull-up;
> > +       };
> > +
> > +       rsci9_pins: rsci9 {
> > +               pinmux = <RZG3E_PORT_PINMUX(8, 3, 5)>, /* SER1_TX */
> > +                        <RZG3E_PORT_PINMUX(8, 2, 5)>; /* SER1_RX */
> 
> Why not order by port number?
> 
> Pin functions are "TXD9" and "RXD9".

OK, will fix this.

> 
> > +               bias-pull-up;
> > +       };
> > +
> >         scif_pins: scif {
> >                 pins = "SCIF_TXD", "SCIF_RXD";
> >                 renesas,output-impedance = <1>; @@ -172,6 +195,23 @@
> > sd1-data {
> >         };
> >  };
> >
> > +&rsci2 {
> > +       pinctrl-0 = <&rsci2_pins>;
> > +       pinctrl-names = "default";
> > +
> > +       uart-has-rtscts;
> > +};
> 
> Shouldn't this be wrapped inside an #ifdef controlled by new defines SW_SER2_EN and SW_SER0_PMOD?

OK, Will add this macros.

SW_SER2_EN by default ON
SW_SER0_PMOD by default ON.

> 
> > +
> > +&rsci4 {
> > +       pinctrl-0 = <&rsci4_pins>;
> > +       pinctrl-names = "default";
> 
> uart-has-rtscts?

OK, Will add.

> 
> > +};
> 
> Shouldn't this be wrapped inside an #ifdef controlled by SW_LCD_EN?

Yes. We cannot use this signal if DPI turned on.

> The port seems to be available irrespective of the setting of SW_SER0_PMOD, which merely controls
> routing to either the PMOD or the
> M.2 connector.

I agree, SW_OPT_MUX.4 will be always on for that
(SMARC SER0 signals connect to PMOD, SMARC SER2 signals connect to M.2 Key-E)

> 
> > +
> > +&rsci9 {
> > +       pinctrl-0 = <&rsci9_pins>;
> > +       pinctrl-names = "default";
> > +};
> > +
> >  &scif0 {
> >         pinctrl-0 = <&scif_pins>;
> >         pinctrl-names = "default";
> > diff --git a/arch/arm64/boot/dts/renesas/renesas-smarc2.dtsi
> > b/arch/arm64/boot/dts/renesas/renesas-smarc2.dtsi
> > index a296c2c1c7ab..305215cdaeb3 100644
> > --- a/arch/arm64/boot/dts/renesas/renesas-smarc2.dtsi
> > +++ b/arch/arm64/boot/dts/renesas/renesas-smarc2.dtsi
> > @@ -89,6 +89,18 @@ &i2c0 {
> >         clock-frequency = <400000>;
> >  };
> >
> > +&rsci2 {
> > +       status = "okay";
> > +};
> > +
> > +&rsci4 {
> > +       status = "okay";
> > +};
> > +
> > +&rsci9 {
> > +       status = "okay";
> > +};
> 
> Given "[PATCH 18/19] arm64: dts: renesas: renesas-smarc2: Move aliases to board DTS" because RZ/G3S
> does not have RSCI interfaces, why are these added here instead of to r9a09g047e57-smarc.dts?

Agreed.


Cheers,
Biju

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ