From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793300829; b=ig6g0uPbMrCTBKPQ0xX2RsT9UXlMM+DAJmue1GcOpzt+eH6oeijDnI6pJpkQ7lSu6Jgg INfoWc+InkwHH08voZ+VZQ/oFbUPmIY1lCpuGN7VIILSjK1G3NMezg8A89fVji2MysHnW TZy/XCTF8IxR6Ns3M0Sqkeafh4fzgX4xNN3VR1qIUvs6mVN/f/9uaJDYi7/ecAXBuj6xJ SbISwaKmIC9eo1jvlAQa50KHl1YXpA08+4FJPcT3gs9gpfWuouFs7dfbzPOot7kwQZvaQ io2zDNALuf0ZlzzxDT7bHarvnt1mPC0RDOhvoxD5IoinFclnOhwmSFi1paBvCiSmhBg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793300829; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=Q/k77D2FVuph6npJ0a+RTbXmZgoRa6iV3ban8Ate6SQ=; b=KXrbqO8lPvAFT58iZkbos/upFS8NnYDoqGOS72sK9CYvtheolScMDRQ4iT9uBbZ+J1QP x/WpIQaJPGJT166urL5FILU5WQVvpl4wtnCFuE5Rj/7v3M4qdV34pfPA5GCICYuXoh4zL ldeeNSfH+2oc1An+15XKLFUQtx7MfYb706kG+5MCMdbYnPDklxBPo9d/wRPIHb7SbsDq/ O1HD+x/EfLj2alhEbqUOXAIJwqBU0w36Qr5wPr6YHL3u0UIVQo+PcrG+0ntP6Fklkf/bS MuK34zl6oKB74/2pAenMl71Fux/xpIp4m81fw++Tg1V2VPADMNUS+/xdeSbhnjABM5Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=C4nsDuHy; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23FC1606A31A; Thu, 29 Oct 2026 19:07:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=C4nsDuHy Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7E831F01816; Thu, 29 Oct 2026 19:07:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793300828; bh=Q/k77D2FVuph6npJ0a+RTbXmZgoRa6iV3ban8Ate6SQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=C4nsDuHyQXW1fnF05v4Ne8m9yjO9uZCBOH8EBKrlr1y0AX998WQEcdzrtKr1gUXuT znDGwOjXUkl7D4e2nYf09JZcN/aTd6egr2sfvCIbSILDQlaP2UIuf41s/zsres0t+k Dx60kUSfUpKOuU2ueNsrg3YlDXMrivcBVKEIKPhRg+5TkXrnhnTKOE6YtssTLz4BVg KroXqcjbrcX/OPe5PMWekwiFWUxwOHvqsXn1Yqj1Dsv78v6EFh7DFPpJcHItUYCUdt HhJX9kMFOHO8+BRtJwuGKqShYs1P+fsjAhtpVCicwAUMrYNFPvMWHLmEidb64xY67f 8zViiAWgtKrkw== Date: Thu, 29 Oct 2026 19:07:00 +0000 From: Conor Dooley To: Kwanghoon Son Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , Thomas Gleixner , Radu Rendec , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Daniel Lezcano , Anup Patel , Albert Ou , Alexandre Ghiti , Greg Kroah-Hartman , Jiri Slaby , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Paul Walmsley , linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org Subject: Re: [PATCH RFC 10/12] riscv: dts: bouffalolab: Add Sipeed M1s Dock Message-ID: <20261029-pork-resonant-fb692b84bef7@spud> References: <20261029-rust-bl808-console-v1-0-b736ee920078@gmail.com> <20261029-rust-bl808-console-v1-10-b736ee920078@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J9vR3WpxbNmjOFyr" Content-Disposition: inline In-Reply-To: <20261029-rust-bl808-console-v1-10-b736ee920078@gmail.com> --J9vR3WpxbNmjOFyr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 29, 2026 at 01:05:51AM -0400, Kwanghoon Son wrote: > Add the M1s SoM memory and 40 MHz crystal, and enable UART3 on the Dock > with a direct stdout path and 115200 8N1 settings. >=20 > Boot firmware initializes PSRAM, UART pads and shared PLLs. The tested > firmware configures D0 TIME at 320 MHz / 380, represented as 842105 Hz. > Firmware using another timer configuration must fix up timebase- > frequency. The declared 64 MiB PSRAM range must retain firmware > reservations or be narrowed by firmware when memory is assigned to > another core. >=20 > The stdout path selects the native polling printk console; userspace TTY > I/O is deferred. >=20 > Signed-off-by: Kwanghoon Son > --- > arch/riscv/boot/dts/Makefile | 1 + > arch/riscv/boot/dts/bouffalolab/Makefile | 2 ++ > .../boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts | 18 +++++++++++++= +++++ > arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi | 19 +++++++++++++= ++++++ > 4 files changed, 40 insertions(+) >=20 > diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile > index 69d8751fb17c803f0efb8003e111ee24144c222b..294f9c119f8f1d608c878ca1f= 95891843301f07e 100644 > --- a/arch/riscv/boot/dts/Makefile > +++ b/arch/riscv/boot/dts/Makefile > @@ -2,6 +2,7 @@ > subdir-y +=3D allwinner > subdir-y +=3D andes > subdir-y +=3D anlogic > +subdir-y +=3D bouffalolab > subdir-y +=3D canaan > subdir-y +=3D eswin > subdir-y +=3D microchip > diff --git a/arch/riscv/boot/dts/bouffalolab/Makefile b/arch/riscv/boot/d= ts/bouffalolab/Makefile > new file mode 100644 > index 0000000000000000000000000000000000000000..4d63365edc095fbe9df31c4b1= 2e29c4b624cbd1f > --- /dev/null > +++ b/arch/riscv/boot/dts/bouffalolab/Makefile > @@ -0,0 +1,2 @@ > +# SPDX-License-Identifier: GPL-2.0 > +dtb-$(CONFIG_ARCH_BOUFFALOLAB) +=3D bl808-sipeed-m1s-dock.dtb > diff --git a/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts b/= arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts > new file mode 100644 > index 0000000000000000000000000000000000000000..c719a53c6e2de45f3718b48ba= 2116e99c70e559b > --- /dev/null > +++ b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts > @@ -0,0 +1,18 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +/dts-v1/; > + > +#include "bl808-sipeed-m1s.dtsi" > + > +/ { > + model =3D "Sipeed M1s Dock"; > + compatible =3D "sipeed,m1s-dock", "sipeed,m1s", "bflb,bl808"; > + > + chosen { > + stdout-path =3D "/soc/serial@30002000:115200n8"; You should be able to do this normally, with an alias. Why are you not just using what Jisheng did? > + }; > +}; > + > +&uart3 { > + status =3D "okay"; > +}; > diff --git a/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi b/arch= /riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi > new file mode 100644 > index 0000000000000000000000000000000000000000..ae54e6e301ed2c5a1448d52c5= 30c5074515ee38c > --- /dev/null > +++ b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi > @@ -0,0 +1,19 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +#include "bl808.dtsi" > + > +/ { > + compatible =3D "sipeed,m1s", "bflb,bl808"; > + memory@50000000 { > + device_type =3D "memory"; > + reg =3D <0x50000000 0x04000000>; > + }; > + > + cpus { > + timebase-frequency =3D <842105>; > + }; > +}; > + > +&xtal { > + clock-frequency =3D <40000000>; > +}; >=20 > --=20 > 2.47.3 >=20 --J9vR3WpxbNmjOFyr Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCauOZVAAKCRB4tDGHoIJi 0hefAQCx6AghS4pcdmANbBU2tVNMmclGvVSFzmC/lcvaVeI8XQD+LPMSJc5dKINU zz5nZFMqfz/eATnkpvTcsHFkGQ/XgQU= =IKb1 -----END PGP SIGNATURE----- --J9vR3WpxbNmjOFyr--