2023-08-12 01:43:00

by Drew Fustini

[permalink] [raw]
Subject: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support

The BeagleV Ahead single board computer [1] features the T-Head TH1520
SoC. Similar to the Lichee Pi 4A series from Jisheng [2], this adds a
minimal device tree file to support booting to a basic shell [3].

Changes since v2:
- Drop the MAINTAINERS patch as it is not important and I want this
patch series to make it into the next PR
- Add Conor's R-b

Changes since v1:
- Add dual license to dts file as Conor noted this is typical
- Reorder new entry in thead.yaml to maintain alphabetical order per
suggestion by Krzysztof
- Add A-b's and R-b's from v1

[1] https://beagleboard.org/beaglev-ahead
[2] https://lore.kernel.org/linux-riscv/[email protected]/
[3] https://gist.github.com/pdp7/91b98f5b8a632802e669d8c359f4f498

To: Jisheng Zhang <[email protected]>
To: Guo Ren <[email protected]>
To: Fu Wei <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Paul Walmsley <[email protected]>
To: Palmer Dabbelt <[email protected]>
To: Albert Ou <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Robert Nelson <[email protected]>
Cc: Jason Kridner <[email protected]>

Signed-off-by: Drew Fustini <[email protected]>
---
Drew Fustini (2):
dt-bindings: riscv: Add BeagleV Ahead board compatibles
riscv: dts: thead: add BeagleV Ahead board device tree

Documentation/devicetree/bindings/riscv/thead.yaml | 4 ++
arch/riscv/boot/dts/thead/Makefile | 2 +-
arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 61 ++++++++++++++++++++++
3 files changed, 66 insertions(+), 1 deletion(-)
---
base-commit: 52a93d39b17dc7eb98b6aa3edb93943248e03b2f
change-id: 20230811-ahead-dt-v3-1d7e85fce20f

Best regards,
--
Drew Fustini <[email protected]>



2023-08-12 02:55:38

by Drew Fustini

[permalink] [raw]
Subject: [PATCH v3 1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles

Document the compatible strings for the BeagleV Ahead board which uses
the T-Head TH1520 SoC.

Link: https://beagleboard.org/beaglev-ahead
Acked-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Guo Ren <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Signed-off-by: Drew Fustini <[email protected]>
---
Documentation/devicetree/bindings/riscv/thead.yaml | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/riscv/thead.yaml b/Documentation/devicetree/bindings/riscv/thead.yaml
index e62f6821372e..301912dcd290 100644
--- a/Documentation/devicetree/bindings/riscv/thead.yaml
+++ b/Documentation/devicetree/bindings/riscv/thead.yaml
@@ -17,6 +17,10 @@ properties:
const: '/'
compatible:
oneOf:
+ - description: BeagleV Ahead single board computer
+ items:
+ - const: beagle,beaglev-ahead
+ - const: thead,th1520
- description: Sipeed Lichee Pi 4A board for the Sipeed Lichee Module 4A
items:
- enum:

--
2.34.1


2023-08-12 04:54:16

by Drew Fustini

[permalink] [raw]
Subject: [PATCH v3 2/2] riscv: dts: thead: add BeagleV Ahead board device tree

The BeagleV Ahead single board computer uses the T-Head TH1520 SoC.
Add a minimal device tree to support basic uart/gpio/dmac drivers so
that a user can boot to a basic shell.

Link: https://beagleboard.org/beaglev-ahead
Reviewed-by: Guo Ren <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Signed-off-by: Drew Fustini <[email protected]>
---
arch/riscv/boot/dts/thead/Makefile | 2 +-
arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 61 ++++++++++++++++++++++
2 files changed, 62 insertions(+), 1 deletion(-)

diff --git a/arch/riscv/boot/dts/thead/Makefile b/arch/riscv/boot/dts/thead/Makefile
index e311fc9a5939..b55a17127c2b 100644
--- a/arch/riscv/boot/dts/thead/Makefile
+++ b/arch/riscv/boot/dts/thead/Makefile
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
-dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb
+dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb th1520-beaglev-ahead.dtb
diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
new file mode 100644
index 000000000000..70e8042c8304
--- /dev/null
+++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
@@ -0,0 +1,61 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 Jisheng Zhang <[email protected]>
+ * Copyright (C) 2023 Drew Fustini <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "th1520.dtsi"
+
+/ {
+ model = "BeagleV Ahead";
+ compatible = "beagle,beaglev-ahead", "thead,th1520";
+
+ aliases {
+ gpio0 = &gpio0;
+ gpio1 = &gpio1;
+ gpio2 = &gpio2;
+ gpio3 = &gpio3;
+ serial0 = &uart0;
+ serial1 = &uart1;
+ serial2 = &uart2;
+ serial3 = &uart3;
+ serial4 = &uart4;
+ serial5 = &uart5;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x0 0x00000000 0x1 0x00000000>;
+
+ };
+};
+
+&osc {
+ clock-frequency = <24000000>;
+};
+
+&osc_32k {
+ clock-frequency = <32768>;
+};
+
+&apb_clk {
+ clock-frequency = <62500000>;
+};
+
+&uart_sclk {
+ clock-frequency = <100000000>;
+};
+
+&dmac0 {
+ status = "okay";
+};
+
+&uart0 {
+ status = "okay";
+};

--
2.34.1


2023-08-15 15:29:37

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support

Hey Jisheng,

On Fri, Aug 11, 2023 at 05:47:15PM -0700, Drew Fustini wrote:
> The BeagleV Ahead single board computer [1] features the T-Head TH1520
> SoC. Similar to the Lichee Pi 4A series from Jisheng [2], this adds a
> minimal device tree file to support booting to a basic shell [3].

Am I supposed to take this, or will you? I still don't know where I
stand with any of this and will default to assuming things are for me
to take in the absence of clarity.

Thanks,
Conor.

>
> Changes since v2:
> - Drop the MAINTAINERS patch as it is not important and I want this
> patch series to make it into the next PR
> - Add Conor's R-b
>
> Changes since v1:
> - Add dual license to dts file as Conor noted this is typical
> - Reorder new entry in thead.yaml to maintain alphabetical order per
> suggestion by Krzysztof
> - Add A-b's and R-b's from v1
>
> [1] https://beagleboard.org/beaglev-ahead
> [2] https://lore.kernel.org/linux-riscv/[email protected]/
> [3] https://gist.github.com/pdp7/91b98f5b8a632802e669d8c359f4f498
>
> To: Jisheng Zhang <[email protected]>
> To: Guo Ren <[email protected]>
> To: Fu Wei <[email protected]>
> To: Rob Herring <[email protected]>
> To: Krzysztof Kozlowski <[email protected]>
> To: Conor Dooley <[email protected]>
> To: Paul Walmsley <[email protected]>
> To: Palmer Dabbelt <[email protected]>
> To: Albert Ou <[email protected]>
> To: Conor Dooley <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: Robert Nelson <[email protected]>
> Cc: Jason Kridner <[email protected]>
>
> Signed-off-by: Drew Fustini <[email protected]>
> ---
> Drew Fustini (2):
> dt-bindings: riscv: Add BeagleV Ahead board compatibles
> riscv: dts: thead: add BeagleV Ahead board device tree
>
> Documentation/devicetree/bindings/riscv/thead.yaml | 4 ++
> arch/riscv/boot/dts/thead/Makefile | 2 +-
> arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 61 ++++++++++++++++++++++
> 3 files changed, 66 insertions(+), 1 deletion(-)
> ---
> base-commit: 52a93d39b17dc7eb98b6aa3edb93943248e03b2f
> change-id: 20230811-ahead-dt-v3-1d7e85fce20f
>
> Best regards,
> --
> Drew Fustini <[email protected]>
>


Attachments:
(No filename) (2.33 kB)
signature.asc (235.00 B)
Download all attachments

2023-08-17 10:59:38

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support

From: Conor Dooley <[email protected]>

On Fri, 11 Aug 2023 17:47:15 -0700, Drew Fustini wrote:
> The BeagleV Ahead single board computer [1] features the T-Head TH1520
> SoC. Similar to the Lichee Pi 4A series from Jisheng [2], this adds a
> minimal device tree file to support booting to a basic shell [3].
>
> Changes since v2:
> - Drop the MAINTAINERS patch as it is not important and I want this
> patch series to make it into the next PR
> - Add Conor's R-b
>
> [...]

Applied to riscv-dt-for-next, thanks!

[1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles
https://git.kernel.org/conor/c/d19c10d5b95a
[2/2] riscv: dts: thead: add BeagleV Ahead board device tree
https://git.kernel.org/conor/c/31ceedee8aa4

Thanks,
Conor.

2023-08-17 13:42:50

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support

On Wed, Aug 16, 2023 at 11:45:28PM +0800, Jisheng Zhang wrote:
> On Tue, Aug 15, 2023 at 02:15:46PM +0100, Conor Dooley wrote:
> > Hey Jisheng,
> >
> > On Fri, Aug 11, 2023 at 05:47:15PM -0700, Drew Fustini wrote:
> > > The BeagleV Ahead single board computer [1] features the T-Head TH1520
> > > SoC. Similar to the Lichee Pi 4A series from Jisheng [2], this adds a
> > > minimal device tree file to support booting to a basic shell [3].
> >
> > Am I supposed to take this, or will you? I still don't know where I
> > stand with any of this and will default to assuming things are for me
> > to take in the absence of clarity.
>
> Hi Conor,
>
> Since the patches in this window is small, so yes please help us to
> take this series and the one of changing the dts license. I see Guo Ren
> has acked it, I will ack too soon.

Okay, I will go grab both.
Can you please decide if you want me to take the patches going forward,
or will make a git tree, put it in linux-next & send PRs to the SoC
maintainers? One or the other, not this ad-hoc mix where neither I nor
contributors know?

Thanks,
Conor.


Attachments:
(No filename) (1.10 kB)
signature.asc (235.00 B)
Download all attachments

2023-08-18 15:25:00

by Jisheng Zhang

[permalink] [raw]
Subject: Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support

On Tue, Aug 15, 2023 at 02:15:46PM +0100, Conor Dooley wrote:
> Hey Jisheng,
>
> On Fri, Aug 11, 2023 at 05:47:15PM -0700, Drew Fustini wrote:
> > The BeagleV Ahead single board computer [1] features the T-Head TH1520
> > SoC. Similar to the Lichee Pi 4A series from Jisheng [2], this adds a
> > minimal device tree file to support booting to a basic shell [3].
>
> Am I supposed to take this, or will you? I still don't know where I
> stand with any of this and will default to assuming things are for me
> to take in the absence of clarity.

Hi Conor,

Since the patches in this window is small, so yes please help us to
take this series and the one of changing the dts license. I see Guo Ren
has acked it, I will ack too soon.

Thanks

>
> Thanks,
> Conor.
>
> >
> > Changes since v2:
> > - Drop the MAINTAINERS patch as it is not important and I want this
> > patch series to make it into the next PR
> > - Add Conor's R-b
> >
> > Changes since v1:
> > - Add dual license to dts file as Conor noted this is typical
> > - Reorder new entry in thead.yaml to maintain alphabetical order per
> > suggestion by Krzysztof
> > - Add A-b's and R-b's from v1
> >
> > [1] https://beagleboard.org/beaglev-ahead
> > [2] https://lore.kernel.org/linux-riscv/[email protected]/
> > [3] https://gist.github.com/pdp7/91b98f5b8a632802e669d8c359f4f498
> >
> > To: Jisheng Zhang <[email protected]>
> > To: Guo Ren <[email protected]>
> > To: Fu Wei <[email protected]>
> > To: Rob Herring <[email protected]>
> > To: Krzysztof Kozlowski <[email protected]>
> > To: Conor Dooley <[email protected]>
> > To: Paul Walmsley <[email protected]>
> > To: Palmer Dabbelt <[email protected]>
> > To: Albert Ou <[email protected]>
> > To: Conor Dooley <[email protected]>
> > Cc: [email protected]
> > Cc: [email protected]
> > Cc: [email protected]
> > Cc: Robert Nelson <[email protected]>
> > Cc: Jason Kridner <[email protected]>
> >
> > Signed-off-by: Drew Fustini <[email protected]>
> > ---
> > Drew Fustini (2):
> > dt-bindings: riscv: Add BeagleV Ahead board compatibles
> > riscv: dts: thead: add BeagleV Ahead board device tree
> >
> > Documentation/devicetree/bindings/riscv/thead.yaml | 4 ++
> > arch/riscv/boot/dts/thead/Makefile | 2 +-
> > arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 61 ++++++++++++++++++++++
> > 3 files changed, 66 insertions(+), 1 deletion(-)
> > ---
> > base-commit: 52a93d39b17dc7eb98b6aa3edb93943248e03b2f
> > change-id: 20230811-ahead-dt-v3-1d7e85fce20f
> >
> > Best regards,
> > --
> > Drew Fustini <[email protected]>
> >