Skip to contentSkip to conversation

Add initial DT for OpenWrt One

PATCH Applied Rafał Miłecki 4 participants 19 messages May 27, 2024 – Jun 4, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Add initial DT for OpenWrt One

From: Rafał Miłecki <[email protected]>

OpenWrt project (https://openwrt.org/) celebrates its 20 years by releasing an OpenWrt One product. Early units have been produced and will be followed by DVT samples really soon. Then the mass production is about to start.

This patchset includes very initial DT for this product but with the pending work on MT7981 all gaps should be filled soon.

Announcement:
OpenWrt One - celebrating 20 years of OpenWrt
https://lists.openwrt.org/pipermail/openwrt-devel/2024-January/042018.html

Rafał Miłecki (3):
dt-bindings: vendor-prefixes: add OpenWrt
dt-bindings: arm64: dts: mediatek: Add OpenWrt One
arm64: dts: mediatek: Add OpenWrt One

 .../devicetree/bindings/arm/mediatek.yaml         |  1 +
 .../devicetree/bindings/vendor-prefixes.yaml      |  2 ++
 arch/arm64/boot/dts/mediatek/Makefile             |  1 +
 .../boot/dts/mediatek/mt7981b-openwrt-one.dts     | 15 +++++++++++++++
 4 files changed, 19 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
Signature · 1 line
2.35.3
#1 lore raw

PATCH 1/3 dt-bindings: vendor-prefixes: add OpenWrt

From: Rafał Miłecki <[email protected]>

OpenWrt project (with the help of MediaTek and Banana Pi) has produced its very first own hardware. It needs its own prefix.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index e474055359f1..eabc353b8512 100644
@@ -1084,6 +1084,8 @@ patternProperties:
     description: OpenPandora GmbH
   "^openrisc,.*":
     description: OpenRISC.io
+  "^openwrt,.*":
+    description: OpenWrt
   "^option,.*":
     description: Option NV
   "^oranth,.*":
Signature · 1 line
2.35.3
#4 lore raw

Re: [PATCH 1/3] dt-bindings: vendor-prefixes: add OpenWrt

Il 29/05/24 09:42, Linus Walleij ha scritto:

Quoted 11 lines · Rafał Miłecki
Quoted 7 lines

From: Rafał Miłecki <[email protected]>

OpenWrt project (with the help of MediaTek and Banana Pi) has produced its very first own hardware. It needs its own prefix.

Hello,

I'm not sure about who should pick this particular patch - should I pick it into the MediaTek tree, or...?

Cheers,
Angelo

#5 lore raw

Re: [PATCH 1/3] dt-bindings: vendor-prefixes: add OpenWrt

Quoted 10 lines · AngeloGioacchino Del Regno

Il 29/05/24 09:42, Linus Walleij ha scritto:

Quoted 9 lines · Rafał Miłecki
Quoted 7 lines

From: Rafał Miłecki <[email protected]>

OpenWrt project (with the help of MediaTek and Banana Pi) has produced its very first own hardware. It needs its own prefix.

Quoted 7 lines
Quoted 2 lines

Hello,

I'm not sure about who should pick this particular patch - should I pick it into the MediaTek tree, or...?

We have ack from DT maintainer. Similar PATCH was picked by you during the previous merge windows in the commit d67c211261d1 ("dt-bindings:
vendor-prefixes: add Cudy"). I don't see why this one couldn't go through your / mediatek tree :)

#6 lore raw

Re: [PATCH 1/3] dt-bindings: vendor-prefixes: add OpenWrt

Il 04/06/24 09:14, Rafał Miłecki ha scritto:

Quoted 16 lines · AngeloGioacchino Del Regno
Quoted 15 lines

Il 29/05/24 09:42, Linus Walleij ha scritto:

Quoted 11 lines · Rafał Miłecki
Quoted 7 lines

From: Rafał Miłecki <[email protected]>

OpenWrt project (with the help of MediaTek and Banana Pi) has produced its very first own hardware. It needs its own prefix.

Hello,

Quoted 7 lines
Quoted 2 lines

I'm not sure about who should pick this particular patch - should I pick it into the MediaTek tree, or...?

We have ack from DT maintainer. Similar PATCH was picked by you during the previous merge windows in the commit d67c211261d1 ("dt-bindings:
vendor-prefixes: add Cudy"). I don't see why this one couldn't go through your / mediatek tree :)

Ah, yes, right.

Cheers,
Angelo

maintainer Reviewed-by on v1 1/3
#7 lore raw

Re: [PATCH 1/3] dt-bindings: vendor-prefixes: add OpenWrt

In reply to Rafał Miłecki

Il 27/05/24 13:59, Rafał Miłecki ha scritto:

Quoted 6 lines

From: Rafał Miłecki <[email protected]>

OpenWrt project (with the help of MediaTek and Banana Pi) has produced its very first own hardware. It needs its own prefix.

#8 lore raw

PATCH 2/3 dt-bindings: arm64: dts: mediatek: Add OpenWrt One

In reply to Rafał Miłecki

From: Rafał Miłecki <[email protected]>

OpenWrt One is the first ever OpenWrt product. It's based on MT7981B and has entered an early production stage.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index eccc3f7cc4e6..c150acde1f90 100644
@@ -86,6 +86,7 @@ properties:
       - items:
           - enum:
               - cudy,wr3000-v1
+              - openwrt,one
               - xiaomi,ax3000t
           - const: mediatek,mt7981b
       - items:
Signature · 1 line
2.35.3
#10 lore raw

Re: [PATCH 2/3] dt-bindings: arm64: dts: mediatek: Add OpenWrt One

In reply to Rafał Miłecki

Il 27/05/24 13:59, Rafał Miłecki ha scritto:

Quoted 15 lines

From: Rafał Miłecki <[email protected]>

OpenWrt One is the first ever OpenWrt product. It's based on MT7981B and has entered an early production stage.

---
  Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +0 -0
index eccc3f7cc4e6..c150acde1f90 100644

Documentation/devicetree/bindings/arm/mediatek.yaml properties: · line 89

Quoted 4 lines
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
@@ -86,6 +86,7 @@ properties:
        - items:
            - enum:
                - cudy,wr3000-v1
+              - openwrt,one

Isn't the OpenWRT One made by BananaPi?
In that case this would be bananapi,openwrt-one I guess?

Is there any OpenWRT contact that can please help clarifying this?

Thanks,
Angelo

Quoted 3 lines
Documentation/devicetree/bindings/arm/mediatek.yaml +0 -0
                - xiaomi,ax3000t
            - const: mediatek,mt7981b
        - items:
#11 lore raw

Re: [PATCH 2/3] dt-bindings: arm64: dts: mediatek: Add OpenWrt One

Quoted 4 lines · AngeloGioacchino Del Regno

Isn't the OpenWRT One made by BananaPi?
In that case this would be bananapi,openwrt-one I guess?

Is there any OpenWRT contact that can please help clarifying this?

Both Rafal and me are members of the OpenWrt project.

The legal responsibility and trademark of this product is handled by OpenWrt, so they are legally the entity producing this board, I think that is what matters for vendor strings.

Yours,
Linus Walleij

#12 lore raw

Re: [PATCH 2/3] dt-bindings: arm64: dts: mediatek: Add OpenWrt One

Il 29/05/24 09:51, Linus Walleij ha scritto:

Quoted 8 lines
Quoted 4 lines · AngeloGioacchino Del Regno

Isn't the OpenWRT One made by BananaPi?
In that case this would be bananapi,openwrt-one I guess?

Is there any OpenWRT contact that can please help clarifying this?

Quoted 8 lines

Both Rafal and me are members of the OpenWrt project.

The legal responsibility and trademark of this product is handled by OpenWrt, so they are legally the entity producing this board, I think that is what matters for vendor strings.

Yours,
Linus Walleij

I was suspecting that, but wanted to be extremely sure of what's happening here especially because we're at the beginning of the new cycle.

Btw, I think I didn't know that Rafal was involved in that ... or maybe I knew but I forgot - whatever - there's just too much stuff in my head right now :-P

Thanks for clarifying!

Cheers,
Angelo

maintainer Reviewed-by on v1 2/3
#14 lore raw

Re: [PATCH 2/3] dt-bindings: arm64: dts: mediatek: Add OpenWrt One

In reply to Rafał Miłecki

Il 27/05/24 13:59, Rafał Miłecki ha scritto:

Quoted 6 lines

From: Rafał Miłecki <[email protected]>

OpenWrt One is the first ever OpenWrt product. It's based on MT7981B and has entered an early production stage.

#15 lore raw

PATCH 3/3 arm64: dts: mediatek: Add OpenWrt One

In reply to Rafał Miłecki

From: Rafał Miłecki <[email protected]>

OpenWrt One is the first ever OpenWrt product. It's based on MT7981B (AKA Filogic 820) and has 1 GiB or DDR4 RAM. The rest of peripherals remains to be added later.

---
 arch/arm64/boot/dts/mediatek/Makefile             |  1 +
 .../boot/dts/mediatek/mt7981b-openwrt-one.dts     | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index 12f67959f257..06f960002ac2 100644
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-cudy-wr3000-v1.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-openwrt-one.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-xiaomi-ax3000t.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-acelink-ew-7886cax.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3.dtb
arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts new file +15 -0
new file mode 100644
index 000000000000..4f6cbb491287
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+
+/dts-v1/;
+
+#include "mt7981b.dtsi"
+
+/ {
+	compatible = "openwrt,one", "mediatek,mt7981b";
+	model = "OpenWrt One";
+
+	memory@40000000 {
+		reg = <0 0x40000000 0 0x40000000>;
+		device_type = "memory";
+	};
+};
Signature · 1 line
2.35.3
maintainer Reviewed-by on v1 3/3
#17 lore raw

Re: [PATCH 3/3] arm64: dts: mediatek: Add OpenWrt One

In reply to Rafał Miłecki

Il 27/05/24 13:59, Rafał Miłecki ha scritto:

Quoted 7 lines

From: Rafał Miłecki <[email protected]>

OpenWrt One is the first ever OpenWrt product. It's based on MT7981B (AKA Filogic 820) and has 1 GiB or DDR4 RAM. The rest of peripherals remains to be added later.

maintainer Applied
#18 lore raw
In reply to Rafał Miłecki
Quoted 8 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

OpenWrt project (https://openwrt.org/) celebrates its 20 years by releasing an OpenWrt One product. Early units have been produced and will be followed by DVT samples really soon. Then the mass production is about to start.

[...]

Applied to v6.10-next/dts64, thanks!

[1/3] dt-bindings: vendor-prefixes: add OpenWrt

      commit: 80468ed25791e9c749cd12117111650a7f014928
[2/3] dt-bindings: arm64: dts: mediatek: Add OpenWrt One
      commit: 33e9d52fd89c8101a72fd95f648c8094ef4488a1
[3/3] arm64: dts: mediatek: Add OpenWrt One
      commit: c8770738f12ac3eced96dd7768be62b6c5018ed3

Cheers,
Angelo