best_rate = new_rate;
> + pre_div_sel = pre_div;
> + post_div_sel = post_div;
> + div_sel = div;
> + }
> + }
> + }
> + }
> +
> + FOR_RANGE(mode, PLL_MODE)
--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
; > +Subsequently, it will transition to OpenSBI, and finally, OpenSBI will
> > invoke
> > +U-Boot.
> > +
> > +
> > +Sample boot log from Milk-V Duo board
> > +~
> > +.. code-block:: none
> > +
> > + U-Boot 2024.01-rc5-00010-g51965baa36 (Dec 28 2023 - 13:15:53
> > +0800)milkv_duo
> > +
> > + DRAM: 63.3 MiB
> > + Core: 10 devices, 8 uclasses, devicetree: separate
> > + Loading Environment from nowhere... OK
> > + In:serial@414
> > + Out: serial@414
> > + Err: serial@414
> > + Net: No ethernet found.
> > + milkv_duo# cpu detail
> > + 0: cpu@0 rv64imafdc
> > + ID = 0, freq = 0 Hz: L1 cache, MMU
> > + milkv_duo#
--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
= <2>;
> + reg-io-width = <4>;
> + status = "disabled";
> + };
> +
> + uart4: serial@41c {
> + compatible = "snps,dw-apb-uart";
> + reg = <0x041c 0x100>;
> + interrupts = <48 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <>;
> + reg-shift = <2>;
> + reg-io-width = <4>;
> + status = "disabled";
> + };
> +
> + plic: interrupt-controller@7000 {
> + compatible = "sophgo,cv1800b-plic", "thead,c900-plic";
> + reg = <0x7000 0x400>;
> + interrupts-extended = <_intc 11>, <_intc 9>;
> + interrupt-controller;
> + #address-cells = <0>;
> + #interrupt-cells = <2>;
> + riscv,ndev = <101>;
> + };
> +
> + clint: timer@7400 {
> + compatible = "sophgo,cv1800b-clint", "thead,c900-clint";
> + reg = <0x7400 0x1>;
> + interrupts-extended = <_intc 3>, <_intc 7>;
> + };
> + };
> +};
> --
> 2.41.0
--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
doc/board/index.rst | 1 +
doc/board/thead/index.rst | 9 +++
doc/board/thead/lpi4a.rst | 129 ++
3 files changed, 139 insertions(+)
create mode 100644 doc/board/thead/index.rst
create mode 100644
Add basic config for Sipeed Lichee PI 4A board which make it capable of
booting into serial console.
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
configs/th1520_lpi4a_defconfig | 82 ++
1 file changed, 82 insertions(+)
create mode 100644 configs
Only add basic support for CPU, PLIC UART and Timer.
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
arch/riscv/dts/Makefile | 1 +
arch/riscv/dts/th1520-lichee-module-4a.dtsi | 34 ++
arch/riscv/dts/th1520-lichee-pi-4a.dts | 32 ++
arch/riscv/dts/th1520.dtsi
Add support for Sipeed's Lichee Pi 4A board which based on T-HEAD's
TH1520 SoC, only minimal device tree and serial console are enabled,
so it's capable of chain booting from T-HEAD's vendor u-boot.
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
arch/riscv/Kconfig | 5
/20230526124107.894-1-d...@gentoo.org
Yixun Lan (4):
riscv: t-head: licheepi4a: initial support added
riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A
board
configs: th1520_lpi4a_defconfig: Add initial config
doc: t-head: lpi4a: document Lichee PI 4A board
arch
Hi Leo
On 02:55 Thu 29 Jun , Leo Liang wrote:
> Hi YiXun,
> On Fri, May 26, 2023 at 08:41:04PM +0800, Yixun Lan wrote:
> > Add support for Sipeed's Lichee Pi 4A board which based on
> > T-HEAD's TH1520 SoC, only minimal device tree and serial onsole are enabled,
> >
Hi Guo:
On 16:22 Mon 29 May , Guo Ren wrote:
> On Mon, May 29, 2023 at 3:54 PM Yixun Lan wrote:
> >
> > Hi Guo:
> >
> > On 14:50 Mon 29 May , Guo Ren wrote:
> > > On Mon, May 29, 2023 at 11:01 AM Yixun Lan wrote:
> > > >
>
Hi Guo:
On 14:50 Mon 29 May , Guo Ren wrote:
> On Mon, May 29, 2023 at 11:01 AM Yixun Lan wrote:
> >
> > Hi Guo:
> >
> > see my comment below.
> >
> > On 09:19 Mon 29 May , Guo Ren wrote:
> > > On Sat, May 27, 2023 at
Hi Bin:
On 09:12 Mon 29 May , Bin Meng wrote:
> On Sat, May 27, 2023 at 9:41 PM Yixun Lan wrote:
> >
> > Hi Guo, Jisheng:
> >
> > On 11:36 Sat 27 May , Guo Ren wrote:
> > > On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote:
> > > >
> >
Hi Guo:
see my comment below.
On 09:19 Mon 29 May , Guo Ren wrote:
> On Sat, May 27, 2023 at 5:17 PM Yixun Lan wrote:
> >
> > Hi Guo:
> >
> > On 09:43 Sat 27 May , Guo Ren wrote:
> > > Sorry, why we need dts here? If we put dts here, we could dele
Hi Guo, Jisheng:
On 11:36 Sat 27 May , Guo Ren wrote:
> On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote:
> >
> > Add support for Sipeed's Lichee Pi 4A board which based on
> > T-HEAD's TH1520 SoC, only minimal device tree and serial onsole are enabled,
> > so it
Hi Guo:
On 09:45 Sat 27 May , Guo Ren wrote:
> On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote:
> >
> > Add support for Sipeed's Lichee Pi 4A board which based on
> > T-HEAD's TH1520 SoC, only minimal device tree and serial onsole are enabled,
> > so it's capa
ease conside this patch as RFC, and may change in next revisions..
>
> On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote:
> >
> > Only add basic support for CPU, PLIC UART and Timer.
> >
> > Reviewed-by: Wei Fu
> > Signed-off-by: Yixun Lan
> > ---
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
doc/board/index.rst | 1 +
doc/board/thead/index.rst | 9 +++
doc/board/thead/lpi4a.rst | 112 ++
3 files changed, 122 insertions(+)
create mode 100644 doc/board/thead/index.rst
create mode 100644
Only add basic support for CPU, PLIC UART and Timer.
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
arch/riscv/dts/Makefile | 1 +
arch/riscv/dts/th1520-lichee-module-4a.dtsi | 34 ++
arch/riscv/dts/th1520-lichee-pi-4a.dts | 32 ++
arch/riscv/dts/th1520.dtsi
Add basic config for Sipeed Lichee PI 4A board which make it capable of
booting into serial console.
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
configs/th1520_lpi4a_defconfig | 82 ++
1 file changed, 82 insertions(+)
create mode 100644 configs
Add support for Sipeed's Lichee Pi 4A board which based on
T-HEAD's TH1520 SoC, only minimal device tree and serial onsole are enabled,
so it's capable of chain booting from T-HEAD's vendor u-boot.
Reviewed-by: Wei Fu
Signed-off-by: Yixun Lan
---
arch/riscv/Kconfig | 5
by Jisheng Zhang
in
his patch V2 [1], it's still under review, so may change in the future.
[1] https://lore.kernel.org/all/20230518184541.2627-1-jszh...@kernel.org
Yixun Lan (4):
riscv: t-head: licheepi4a: initial support added
riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI
by Jisheng Zhang
in
his patch V2 [1], it's still under review, so may change in the future.
[1] https://lore.kernel.org/all/20230518184541.2627-1-jszh...@kernel.org
Yixun Lan (4):
riscv: t-head: licheepi4a: initial support added
riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI
22 matches
Mail list logo