linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] riscv: Add BeagleV Ahead board support
@ 2023-08-12  0:47 Drew Fustini
  2023-08-12  0:47 ` [PATCH v3 1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles Drew Fustini
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Drew Fustini @ 2023-08-12  0:47 UTC (permalink / raw)
  To: Jisheng Zhang, Guo Ren, Fu Wei, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Conor Dooley
  Cc: linux-riscv, devicetree, linux-kernel, Robert Nelson,
	Jason Kridner, Drew Fustini, Krzysztof Kozlowski, Conor Dooley

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/20230617161529.2092-1-jszhang@kernel.org/
[3] https://gist.github.com/pdp7/91b98f5b8a632802e669d8c359f4f498

To: Jisheng Zhang <jszhang@kernel.org>
To: Guo Ren <guoren@kernel.org>
To: Fu Wei <wefu@redhat.com>
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Paul Walmsley <paul.walmsley@sifive.com>
To: Palmer Dabbelt <palmer@dabbelt.com>
To: Albert Ou <aou@eecs.berkeley.edu>
To: Conor Dooley <conor@kernel.org>
Cc: linux-riscv@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Robert Nelson <robertcnelson@beagleboard.org>
Cc: Jason Kridner <jkridner@beagleboard.org>

Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
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 <dfustini@baylibre.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v3 1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles
  2023-08-12  0:47 [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Drew Fustini
@ 2023-08-12  0:47 ` Drew Fustini
  2023-08-12  0:47 ` [PATCH v3 2/2] riscv: dts: thead: add BeagleV Ahead board device tree Drew Fustini
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Drew Fustini @ 2023-08-12  0:47 UTC (permalink / raw)
  To: Jisheng Zhang, Guo Ren, Fu Wei, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Conor Dooley
  Cc: linux-riscv, devicetree, linux-kernel, Robert Nelson,
	Jason Kridner, Drew Fustini, Krzysztof Kozlowski, Conor Dooley

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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
 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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v3 2/2] riscv: dts: thead: add BeagleV Ahead board device tree
  2023-08-12  0:47 [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Drew Fustini
  2023-08-12  0:47 ` [PATCH v3 1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles Drew Fustini
@ 2023-08-12  0:47 ` Drew Fustini
  2023-08-15 13:15 ` [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Conor Dooley
  2023-08-16 18:05 ` Conor Dooley
  3 siblings, 0 replies; 7+ messages in thread
From: Drew Fustini @ 2023-08-12  0:47 UTC (permalink / raw)
  To: Jisheng Zhang, Guo Ren, Fu Wei, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Conor Dooley
  Cc: linux-riscv, devicetree, linux-kernel, Robert Nelson,
	Jason Kridner, Drew Fustini, Conor Dooley

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 <guoren@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
 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 <jszhang@kernel.org>
+ * Copyright (C) 2023 Drew Fustini <dfustini@baylibre.com>
+ */
+
+/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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support
  2023-08-12  0:47 [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Drew Fustini
  2023-08-12  0:47 ` [PATCH v3 1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles Drew Fustini
  2023-08-12  0:47 ` [PATCH v3 2/2] riscv: dts: thead: add BeagleV Ahead board device tree Drew Fustini
@ 2023-08-15 13:15 ` Conor Dooley
  2023-08-16 15:45   ` Jisheng Zhang
  2023-08-16 18:05 ` Conor Dooley
  3 siblings, 1 reply; 7+ messages in thread
From: Conor Dooley @ 2023-08-15 13:15 UTC (permalink / raw)
  To: Drew Fustini
  Cc: Jisheng Zhang, Guo Ren, Fu Wei, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	linux-riscv, devicetree, linux-kernel, Robert Nelson,
	Jason Kridner, Krzysztof Kozlowski, Conor Dooley

[-- Attachment #1: Type: text/plain, Size: 2389 bytes --]

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/20230617161529.2092-1-jszhang@kernel.org/
> [3] https://gist.github.com/pdp7/91b98f5b8a632802e669d8c359f4f498
> 
> To: Jisheng Zhang <jszhang@kernel.org>
> To: Guo Ren <guoren@kernel.org>
> To: Fu Wei <wefu@redhat.com>
> To: Rob Herring <robh+dt@kernel.org>
> To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> To: Conor Dooley <conor+dt@kernel.org>
> To: Paul Walmsley <paul.walmsley@sifive.com>
> To: Palmer Dabbelt <palmer@dabbelt.com>
> To: Albert Ou <aou@eecs.berkeley.edu>
> To: Conor Dooley <conor@kernel.org>
> Cc: linux-riscv@lists.infradead.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: Robert Nelson <robertcnelson@beagleboard.org>
> Cc: Jason Kridner <jkridner@beagleboard.org>
> 
> Signed-off-by: Drew Fustini <dfustini@baylibre.com>
> ---
> 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 <dfustini@baylibre.com>
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support
  2023-08-15 13:15 ` [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Conor Dooley
@ 2023-08-16 15:45   ` Jisheng Zhang
  2023-08-16 17:58     ` Conor Dooley
  0 siblings, 1 reply; 7+ messages in thread
From: Jisheng Zhang @ 2023-08-16 15:45 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Drew Fustini, Guo Ren, Fu Wei, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	linux-riscv, devicetree, linux-kernel, Robert Nelson,
	Jason Kridner, Krzysztof Kozlowski, Conor Dooley

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/20230617161529.2092-1-jszhang@kernel.org/
> > [3] https://gist.github.com/pdp7/91b98f5b8a632802e669d8c359f4f498
> > 
> > To: Jisheng Zhang <jszhang@kernel.org>
> > To: Guo Ren <guoren@kernel.org>
> > To: Fu Wei <wefu@redhat.com>
> > To: Rob Herring <robh+dt@kernel.org>
> > To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> > To: Conor Dooley <conor+dt@kernel.org>
> > To: Paul Walmsley <paul.walmsley@sifive.com>
> > To: Palmer Dabbelt <palmer@dabbelt.com>
> > To: Albert Ou <aou@eecs.berkeley.edu>
> > To: Conor Dooley <conor@kernel.org>
> > Cc: linux-riscv@lists.infradead.org
> > Cc: devicetree@vger.kernel.org
> > Cc: linux-kernel@vger.kernel.org
> > Cc: Robert Nelson <robertcnelson@beagleboard.org>
> > Cc: Jason Kridner <jkridner@beagleboard.org>
> > 
> > Signed-off-by: Drew Fustini <dfustini@baylibre.com>
> > ---
> > 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 <dfustini@baylibre.com>
> > 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support
  2023-08-16 15:45   ` Jisheng Zhang
@ 2023-08-16 17:58     ` Conor Dooley
  0 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2023-08-16 17:58 UTC (permalink / raw)
  To: Jisheng Zhang
  Cc: Drew Fustini, Guo Ren, Fu Wei, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	linux-riscv, devicetree, linux-kernel, Robert Nelson,
	Jason Kridner, Krzysztof Kozlowski, Conor Dooley

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 0/2] riscv: Add BeagleV Ahead board support
  2023-08-12  0:47 [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Drew Fustini
                   ` (2 preceding siblings ...)
  2023-08-15 13:15 ` [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Conor Dooley
@ 2023-08-16 18:05 ` Conor Dooley
  3 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2023-08-16 18:05 UTC (permalink / raw)
  To: Jisheng Zhang, Guo Ren, Fu Wei, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	linux-riscv, devicetree, linux-kernel, Drew Fustini,
	Conor Dooley
  Cc: Conor Dooley, Robert Nelson, Jason Kridner, Krzysztof Kozlowski

From: Conor Dooley <conor.dooley@microchip.com>

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-16 18:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-12  0:47 [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Drew Fustini
2023-08-12  0:47 ` [PATCH v3 1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles Drew Fustini
2023-08-12  0:47 ` [PATCH v3 2/2] riscv: dts: thead: add BeagleV Ahead board device tree Drew Fustini
2023-08-15 13:15 ` [PATCH v3 0/2] riscv: Add BeagleV Ahead board support Conor Dooley
2023-08-16 15:45   ` Jisheng Zhang
2023-08-16 17:58     ` Conor Dooley
2023-08-16 18:05 ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).