Re: [PATCH 2/4] clk: sophgo: cv1800b: Add clock controller driver for cv1800b SoC

2024-05-22 Thread Yixun Lan
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

Re: [PATCH v4 3/3] doc: sophgo: milkv_duo: document Milk-V Duo board

2024-01-28 Thread Yixun Lan
; > +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

Re: [PATCH v3 1/3] riscv: dts: sophgo: add basic device tree for Milk-V Duo board

2024-01-27 Thread Yixun Lan
= <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

[PATCH v2 4/4] doc: t-head: lpi4a: document Lichee PI 4A board

2023-07-08 Thread 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 | 129 ++ 3 files changed, 139 insertions(+) create mode 100644 doc/board/thead/index.rst create mode 100644

[PATCH v2 3/4] configs: th1520_lpi4a_defconfig: Add initial config

2023-07-08 Thread Yixun Lan
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

[PATCH v2 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-07-08 Thread Yixun Lan
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

[PATCH v2 1/4] riscv: t-head: licheepi4a: initial support added

2023-07-08 Thread Yixun Lan
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

[PATCH v2 0/4] riscv: Initial support for Lichee PI 4A board

2023-07-08 Thread Yixun Lan
/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

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-07-07 Thread Yixun Lan
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, > >

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-29 Thread Yixun Lan
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: > > > > >

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-29 Thread Yixun Lan
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

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-28 Thread Yixun Lan
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: > > > > > >

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-28 Thread Yixun Lan
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

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-27 Thread Yixun Lan
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

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-27 Thread Yixun Lan
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

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-27 Thread Yixun Lan
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 > > ---

[RESEND PATCH v1 4/4] doc: t-head: lpi4a: document Lichee PI 4A board

2023-05-26 Thread 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

[RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-26 Thread Yixun Lan
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

[RESEND PATCH v1 3/4] configs: th1520_lpi4a_defconfig: Add initial config

2023-05-26 Thread Yixun Lan
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

[RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-26 Thread Yixun Lan
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

[RESEND PATCH v1 0/4] riscv: Initial support for Lichee PI 4A board

2023-05-26 Thread Yixun Lan
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

[PATCH 0/4] riscv: Initial support for Lichee PI 4A board

2023-05-26 Thread Yixun Lan
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