Skip to contentSkip to conversation

mt7981b: initial DT code

PATCH In review Rafał Miłecki 3 participants 5 messages Jan 11, 2024 – Jan 22, 2024

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

v2 cover mt7981b: initial DT code

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

This work is based on linux-next content and was successfully verified using "dtbs_check".

I'm not sure who should apply this work. Given I received reviews from AngeloGioacchino should I expect Arnd to pick it to his tree directly?

Rafał Miłecki (2):
dt-bindings: arm64: mediatek: Add MT7981B and Xiaomi AX3000T
arm64: dts: mediatek: Add initial MT7981B and Xiaomi AX3000T

 .../devicetree/bindings/arm/mediatek.yaml     |   4 +
 arch/arm64/boot/dts/mediatek/Makefile         |   1 +
 .../dts/mediatek/mt7981b-xiaomi-ax3000t.dts   |  15 +++
 arch/arm64/boot/dts/mediatek/mt7981b.dtsi     | 105 ++++++++++++++++++
 4 files changed, 125 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b.dtsi
Signature · 1 line
2.35.3
#1 lore raw

PATCH v2 1/2 dt-bindings: arm64: mediatek: Add MT7981B and Xiaomi AX3000T

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

MT7981B (AKA Filogic 820) is MediaTek's dual-core ARM Cortex-A53 SoC. One of market devices using this SoC is Xiaomi AX3000T.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
index 92dbfb862757..12cf02b30967 100644
@@ -82,6 +82,10 @@ properties:
           - enum:
               - mediatek,mt7629-rfb
           - const: mediatek,mt7629
+      - items:
+          - enum:
+              - xiaomi,ax3000t
+          - const: mediatek,mt7981b
       - items:
           - enum:
               - bananapi,bpi-r3
Signature · 1 line
2.35.3
#2 lore raw

PATCH v2 2/2 arm64: dts: mediatek: Add initial MT7981B and Xiaomi AX3000T

In reply to Rafał Miłecki

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

MT7981B (AKA MediaTek Filogic 820) is a dual-core ARM Cortex-A53 SoC. One of market devices using this SoC is Xiaomi AX3000T.

This is initial contribution with basic SoC support. More hardware block will get added later. Some will need their bindings (like auxadc).

---
V2: Fix psci version
Fix gic regs

 arch/arm64/boot/dts/mediatek/Makefile         |   1 +
 .../dts/mediatek/mt7981b-xiaomi-ax3000t.dts   |  15 +++
 arch/arm64/boot/dts/mediatek/mt7981b.dtsi     | 105 ++++++++++++++++++
 3 files changed, 121 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b.dtsi
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index 0a189d5d8006..8bff11acfe1f 100644
@@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb
 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-xiaomi-ax3000t.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo
arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts new file +15 -0
new file mode 100644
index 000000000000..a314c3e05e50
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+
+/dts-v1/;
+
+#include "mt7981b.dtsi"
+
+/ {
+	compatible = "xiaomi,ax3000t", "mediatek,mt7981b";
+	model = "Xiaomi AX3000T";
+
+	memory@40000000 {
+		reg = <0 0x40000000 0 0x10000000>;
+		device_type = "memory";
+	};
+};
arch/arm64/boot/dts/mediatek/mt7981b.dtsi new file +105 -0

105 lines not on this page · raw message

Signature · 1 line
2.35.3
#3 lore raw
In reply to Rafał Miłecki

Il 11/01/24 11:39, Rafał Miłecki ha scritto:

Quoted 7 lines

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

This work is based on linux-next content and was successfully verified using "dtbs_check".

I'm not sure who should apply this work. Given I received reviews from AngeloGioacchino should I expect Arnd to pick it to his tree directly?

This is MediaTek and gets picked by MediaTek maintainers - either me or Matthias.

Cheers,
Angelo

Quoted 13 lines

Rafał Miłecki (2):
dt-bindings: arm64: mediatek: Add MT7981B and Xiaomi AX3000T
arm64: dts: mediatek: Add initial MT7981B and Xiaomi AX3000T

  .../devicetree/bindings/arm/mediatek.yaml     |   4 +
  arch/arm64/boot/dts/mediatek/Makefile         |   1 +
  .../dts/mediatek/mt7981b-xiaomi-ax3000t.dts   |  15 +++
  arch/arm64/boot/dts/mediatek/mt7981b.dtsi     | 105 ++++++++++++++++++
  4 files changed, 125 insertions(+)

create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b.dtsi

maintainer
#4 lore raw
In reply to Rafał Miłecki
Quoted 5 lines · Rafał Miłecki

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

This work is based on linux-next content and was successfully verified using "dtbs_check".

Quoted 7 lines

I'm not sure who should apply this work. Given I received reviews from AngeloGioacchino should I expect Arnd to pick it to his tree directly?

Rafał Miłecki (2):
dt-bindings: arm64: mediatek: Add MT7981B and Xiaomi AX3000T
arm64: dts: mediatek: Add initial MT7981B and Xiaomi AX3000T

Both patches applied, thanks!

Quoted 8 lines
  .../devicetree/bindings/arm/mediatek.yaml     |   4 +
  arch/arm64/boot/dts/mediatek/Makefile         |   1 +
  .../dts/mediatek/mt7981b-xiaomi-ax3000t.dts   |  15 +++
  arch/arm64/boot/dts/mediatek/mt7981b.dtsi     | 105 ++++++++++++++++++
  4 files changed, 125 insertions(+)

create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b.dtsi