Skip to contentSkip to conversation

dt-bindings: arm64: mediatek: add mt8390-evk board

PATCH Superseded Macpaul Lin 2 participants 5 messages Sep 14, 2023 – Sep 15, 2023

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 dt-bindings: arm64: mediatek: add mt8390-evk board

1. Add compatible for MT8390.
2. Add bindings for the MediaTek mt8390-evk board, also known as the "Genio 700-EVK".

The MT8390 and MT8188 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.

The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 5 +++++
 1 file changed, 5 insertions(+)

dependencies for v1:
- This patch should be applied after the following patch set
- mt8365's bindings
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8395's bindings: v6
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188's bindings
- https://lore.kernel.org/lkml/[email protected]/T/

Changes for v2:
- drop description for multiple boards
- update dependencies with the following patch sets
- mt8395's bindings: v7
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/

Changes for v3:
- drop "dts: " in $subject by Conor's suggestion.
- Update "Reviewed-by" and "Acked-by" tags, Thanks.
- update dependencies with the following patch sets
- mt8395's bindings: v8
- https://lore.kernel.org/lkml/[email protected]/T/

Documentation/devicetree/bindings/arm/mediatek.yaml +5 -0
index 0248bb458180..3968d5934fa2 100644
@@ -252,6 +252,11 @@ properties:
           - enum:
               - mediatek,mt8365-evk
           - const: mediatek,mt8365
+      - items:
+          - enum:
+              - mediatek,mt8390-evk
+          - const: mediatek,mt8390
+          - const: mediatek,mt8188
       - items:
           - enum:
               - mediatek,mt8395-evk
Signature · 1 line
2.18.0
#1 lore raw

PATCH v3 2/2 arm64: dts: mediatek: add device-tree for Genio 700 EVK board

Add basic device-tree for the Genio 700 EVK board. The Genio 700 EVK is based on MediaTek MT8390 SoC. MT8390 hardware register maps are identical to MT8188.

The Genio 700 EVK has following features:

- MT8390 SoC
- MT6365 PMIC
- MT6319 Buck IC
- 12V DC Jack
- 2x4GB LPDDR4X
- 64GB eMMC 5.1
- 64Mb SPI NOR
- M.2 Key A-E slot with PCIe Gen2 and USB 2.0
- 2x DSI LCM ports
- 2x touch sensor ports
- 2x MIPI-CSI, as camera daughter board slots
- USB 2 micro USB connector
- USB 3 with 1 to 2 hub:
- M.2 Key B slot
- Type-C connector, with DisplayPort over Type-C
- HDMI 2.0 TX port with Type A HDMI connector
- eDP port
- Gigabit Ethernet with RJ45 connector
- SD card slot
- Earphone Jack
- Analog Microphone
- 2x Digital Microphone
- 3x UART with serial-to-usb converters and micro USB connectors

---
 arch/arm64/boot/dts/mediatek/Makefile         |   1 +
 .../dts/mediatek/mt8390-genio-700-evk.dts     | 880 ++++++++++++++++++
 2 files changed, 881 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts

dependencies for v1:
- This patch should be applied after the following patch set
- mt8365-gneio-350-evk's dts change (v4)
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8395-genio-1200-evk's dts basic support (v6)
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188 platform's basic support
- https://lore.kernel.org/lkml/[email protected]/T/

changes for v2:
- Fix gpio defines '0' to 'GPIO_ACTIVE_HIGH'.
- Drop duplicate name: 'default' for I2C4.
- Update dependencies
- mt8365-gneio-350-evk's dts change (v5)
- https://lore.kernel.org/lkml/[email protected]/
- mt8395-genio-1200-evk's dts basic support (v7)
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8188 platform's basic support (v4)
- https://lore.kernel.org/lkml/[email protected]/T/

changes for v3:
- No change.
- Update dependencies
- mt8365-gneio-350-evk's dts change (v5)
- https://lore.kernel.org/lkml/[email protected]/
- mt8395-genio-1200-evk's dts basic support (v8)
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188 platform's basic support (v4)
- https://lore.kernel.org/lkml/[email protected]/T/

arch/arm64/boot/dts/mediatek/Makefile +1 -0
index 22f362bbbdac..3262849c0f6b 100644
@@ -54,5 +54,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r3.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8365-genio-350-evk.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8390-genio-700-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-genio-1200-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +880 -0

880 lines not on this page · raw message

Signature · 1 line
2.18.0
maintainer Reviewed-by on v3 2/2
#2 lore raw

Re: [PATCH v3 2/2] arm64: dts: mediatek: add device-tree for Genio 700 EVK board

Il 14/09/23 08:18, Macpaul Lin ha scritto:

Quoted 110 lines

Add basic device-tree for the Genio 700 EVK board. The Genio 700 EVK is based on MediaTek MT8390 SoC. MT8390 hardware register maps are identical to MT8188.

The Genio 700 EVK has following features:

- MT8390 SoC
- MT6365 PMIC
- MT6319 Buck IC
- 12V DC Jack
- 2x4GB LPDDR4X
- 64GB eMMC 5.1
- 64Mb SPI NOR
- M.2 Key A-E slot with PCIe Gen2 and USB 2.0
- 2x DSI LCM ports
- 2x touch sensor ports
- 2x MIPI-CSI, as camera daughter board slots
- USB 2 micro USB connector
- USB 3 with 1 to 2 hub:
- M.2 Key B slot
- Type-C connector, with DisplayPort over Type-C
- HDMI 2.0 TX port with Type A HDMI connector
- eDP port
- Gigabit Ethernet with RJ45 connector
- SD card slot
- Earphone Jack
- Analog Microphone
- 2x Digital Microphone
- 3x UART with serial-to-usb converters and micro USB connectors

---
  arch/arm64/boot/dts/mediatek/Makefile         |   1 +
  .../dts/mediatek/mt8390-genio-700-evk.dts     | 880 ++++++++++++++++++
  2 files changed, 881 insertions(+)

create mode 100644 arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts

dependencies for v1:
- This patch should be applied after the following patch set
- mt8365-gneio-350-evk's dts change (v4)
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8395-genio-1200-evk's dts basic support (v6)
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188 platform's basic support
- https://lore.kernel.org/lkml/[email protected]/T/

changes for v2:
- Fix gpio defines '0' to 'GPIO_ACTIVE_HIGH'.
- Drop duplicate name: 'default' for I2C4.
- Update dependencies
- mt8365-gneio-350-evk's dts change (v5)
- https://lore.kernel.org/lkml/[email protected]/
- mt8395-genio-1200-evk's dts basic support (v7)
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8188 platform's basic support (v4)
- https://lore.kernel.org/lkml/[email protected]/T/

changes for v3:
- No change.
- Update dependencies
- mt8365-gneio-350-evk's dts change (v5)
- https://lore.kernel.org/lkml/[email protected]/
- mt8395-genio-1200-evk's dts basic support (v8)
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188 platform's basic support (v4)
- https://lore.kernel.org/lkml/[email protected]/T/

arch/arm64/boot/dts/mediatek/Makefile +1 -0
index 22f362bbbdac..3262849c0f6b 100644
@@ -54,5 +54,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r3.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8365-genio-350-evk.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8390-genio-700-evk.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-genio-1200-evk.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +24 -0
new file mode 100644
index 000000000000..ed6bbf0c15cc
@@ -0,0 +1,880 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 MediaTek Inc.
+ * Author: Chris Chen <[email protected]>
+ *	   Pablo Sun <[email protected]>
+ *	   Macpaul Lin <[email protected]>
+ */
+/dts-v1/;
+
+#include "mt8188.dtsi"
+#include "mt6359.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h>
+#include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
+#include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/usb/pd.h>
+
+/ {
+	model = "MediaTek Genio-700 EVK";
+	compatible = "mediatek,mt8390-evk", "mediatek,mt8390",
+		     "mediatek,mt8188";
+

..snip..

arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts line 203

Quoted 12 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +12 -0
+
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0_pins>;
+	clock-frequency = <400000>;
+	status = "okay";
+
+	touchscreen@5d {
+		compatible = "goodix,gt9271";
+		reg = <0x5d>;
+		interrupt-parent = <&pio>;
+		interrupts = <6 IRQ_TYPE_EDGE_RISING>;

interrupts-extended = <&pio 7 IRQ_TYPE_EDGE_RISING>;

after which:

#3 lore raw

Re: [PATCH v3 2/2] arm64: dts: mediatek: add device-tree for Genio 700 EVK board

Quoted 139 lines · AngeloGioacchino Del Regno

Il 14/09/23 08:18, Macpaul Lin ha scritto:

Quoted 120 lines

Add basic device-tree for the Genio 700 EVK board. The Genio 700 EVK is based on MediaTek MT8390 SoC. MT8390 hardware register maps are identical to MT8188.

The Genio 700 EVK has following features:

- MT8390 SoC
- MT6365 PMIC
- MT6319 Buck IC
- 12V DC Jack
- 2x4GB LPDDR4X
- 64GB eMMC 5.1
- 64Mb SPI NOR
- M.2 Key A-E slot with PCIe Gen2 and USB 2.0
- 2x DSI LCM ports
- 2x touch sensor ports
- 2x MIPI-CSI, as camera daughter board slots
- USB 2 micro USB connector
- USB 3 with 1 to 2 hub:
   - M.2 Key B slot
   - Type-C connector, with DisplayPort over Type-C
- HDMI 2.0 TX port with Type A HDMI connector
- eDP port
- Gigabit Ethernet with RJ45 connector
- SD card slot
- Earphone Jack
- Analog Microphone
- 2x Digital Microphone
- 3x UART with serial-to-usb converters and micro USB connectors

---
  arch/arm64/boot/dts/mediatek/Makefile         |   1 + .../dts/mediatek/mt8390-genio-700-evk.dts     | 880 ++++++++++++++++++

  2 files changed, 881 insertions(+)

  create mode 100644 arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts

dependencies for v1:
  - This patch should be applied after the following patch set
   - mt8365-gneio-350-evk's dts change (v4)
    - https://lore.kernel.org/linux-arm-kernel/[email protected]/T/

   - mt8395-genio-1200-evk's dts basic support (v6)
    - https://lore.kernel.org/lkml/[email protected]/T/

   - mt8188 platform's basic support
    - https://lore.kernel.org/lkml/[email protected]/T/

changes for v2:
  - Fix gpio defines '0' to 'GPIO_ACTIVE_HIGH'.
  - Drop duplicate name: 'default' for I2C4.
  - Update dependencies
   - mt8365-gneio-350-evk's dts change (v5)
    - https://lore.kernel.org/lkml/[email protected]/

   - mt8395-genio-1200-evk's dts basic support (v7)
    - https://lore.kernel.org/linux-arm-kernel/[email protected]/T/

   - mt8188 platform's basic support (v4)
    - https://lore.kernel.org/lkml/[email protected]/T/

changes for v3:
  - No change.
  - Update dependencies
   - mt8365-gneio-350-evk's dts change (v5)
    - https://lore.kernel.org/lkml/[email protected]/

   - mt8395-genio-1200-evk's dts basic support (v8)
    - https://lore.kernel.org/lkml/[email protected]/T/

   - mt8188 platform's basic support (v4)
    - https://lore.kernel.org/lkml/[email protected]/T/

arch/arm64/boot/dts/mediatek/Makefile +0 -0
index 22f362bbbdac..3262849c0f6b 100644
@@ -54,5 +54,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += 

mt8195-cherry-tomato-r3.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8365-genio-350-evk.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8390-genio-700-evk.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-genio-1200-evk.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb

arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +24 -0
new file mode 100644
index 000000000000..ed6bbf0c15cc
@@ -0,0 +1,880 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 MediaTek Inc.
+ * Author: Chris Chen <[email protected]>
+ *       Pablo Sun <[email protected]>
+ *       Macpaul Lin <[email protected]>
+ */
+/dts-v1/;
+
+#include "mt8188.dtsi"
+#include "mt6359.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h>
+#include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
+#include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/usb/pd.h>
+
+/ {
+    model = "MediaTek Genio-700 EVK";
+    compatible = "mediatek,mt8390-evk", "mediatek,mt8390",
+             "mediatek,mt8188";
+

..snip..

arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts line 203

Quoted 12 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +12 -0
+
+&i2c0 {
+    pinctrl-names = "default";
+    pinctrl-0 = <&i2c0_pins>;
+    clock-frequency = <400000>;
+    status = "okay";
+
+    touchscreen@5d {
+        compatible = "goodix,gt9271";
+        reg = <0x5d>;
+        interrupt-parent = <&pio>;
+        interrupts = <6 IRQ_TYPE_EDGE_RISING>;

interrupts-extended = <&pio 7 IRQ_TYPE_EDGE_RISING>;

Quoted 4 lines

after which:

Line 'interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_RISING>;' has been fixed in v4 patch.

Thanks!
Macpaul Lin

maintainer Reviewed-by on v3 1/2
#4 lore raw
In reply to Macpaul Lin

Il 14/09/23 08:18, Macpaul Lin ha scritto:

Quoted 8 lines

1. Add compatible for MT8390.
2. Add bindings for the MediaTek mt8390-evk board, also known as the "Genio 700-EVK".

The MT8390 and MT8188 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.

Quoted 7 lines

The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.