Skip to contentSkip to conversation

Add basic node support for MediaTek MT8186 SoC

PATCH Applied Allen-KH Cheng 3 participants 8 messages May 20, 2022 – Jul 7, 2022

Subsystems (2)

v11 of 15 Applied Latest is v15 →

lore
Share & tools
lore
#0 lore raw

v11 cover Add basic node support for MediaTek MT8186 SoC

MT8186 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA76 cores. MT8186 share many HW IP with MT65xx series.

This patchset was tested on MT8186 evaluation board to shell.

Based on next-20220519, linux-next/master

changes since v9:
- remove some merged PATCHs from series
- reorder nodes in dts (cpu-map)
- remove okay status in auxadc
- remove unnecessary suffix node name for i2c
- add pwm node
- add dsi-phy node
- add dpi node

changes since v9:
- add one space before equal sign of drive-strength-adv
- corect compatible name for big cores (ca76)
- use upper case of address in pinctrl
- add pwrap node
- add pwm node

changes since v8:
- change name from pins_bus to pins-sda-scl
- correct email address
- add capacity-dmips-mhz for each CPU
- add ppi-partitions in gic node
- change name to power-domain
- remove status "okay" in scp node
- update timer and pericfg compatible in series

changes since v7:
- add scp&auxadc node

changes since v6:
- remove unnecessary blank line

changes since v5:
- replace Mediatek a to MediaTek
- use GPL-2.0-only OR BSD-2-Clause

changes since v4:
- correct driver clock of mt8186
- add power domains controller and clock controllers
- add pinctrl, usb host, spi and i2c nodes
- add node status in mt8186-evb.dts
- correct some dtbs_check warnings

changes since v3:
- remove serial, mmc and phy patch from series. (already merged)
- remove mcusysoff node
- move oscillator nodes at the head of dts
- change name from usb-phy to t-phy

changes since v2:
- add soc {} in mt8186.dtsi

changes since v1:
- add dt-bindings: arm: Add compatible for MediaTek MT8186

Allen-KH Cheng (3):
dt-bindings: arm: mediatek: Add mt8186 pericfg compatible
dt-bindings: arm: Add compatible for MediaTek MT8186
arm64: dts: Add MediaTek SoC MT8186 dts and evaluation board and
Makefile

 .../devicetree/bindings/arm/mediatek.yaml     |    4 +
 .../arm/mediatek/mediatek,pericfg.yaml        |    1 +
 arch/arm64/boot/dts/mediatek/Makefile         |    1 +
 arch/arm64/boot/dts/mediatek/mt8186-evb.dts   |  232 ++++
 arch/arm64/boot/dts/mediatek/mt8186.dtsi      | 1016 +++++++++++++++++
 5 files changed, 1254 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8186.dtsi
Signature · 1 line
2.18.0
#1 lore raw

PATCH v11 1/3 dt-bindings: arm: mediatek: Add mt8186 pericfg compatible

Add mt8186 pericfg compatible to binding document.

---
 .../devicetree/bindings/arm/mediatek/mediatek,pericfg.yaml       | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.yaml +1 -0
index 611f666f359d..8585f6f18f69 100644
@@ -26,6 +26,7 @@ properties:
               - mediatek,mt8135-pericfg
               - mediatek,mt8173-pericfg
               - mediatek,mt8183-pericfg
+              - mediatek,mt8186-pericfg
               - mediatek,mt8195-pericfg
               - mediatek,mt8516-pericfg
           - const: syscon
Signature · 1 line
2.18.0
#2 lore raw

PATCH v11 2/3 dt-bindings: arm: Add compatible for MediaTek MT8186

In reply to Allen-KH Cheng

This commit adds dt-binding documentation for the MediaTek MT8186 reference board.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
index 4a2bd9759c47..5a29b7b381ef 100644
@@ -131,6 +131,10 @@ properties:
           - enum:
               - mediatek,mt8183-evb
           - const: mediatek,mt8183
+      - items:
+          - enum:
+              - mediatek,mt8186-evb
+          - const: mediatek,mt8186
       - items:
           - enum:
               - mediatek,mt8192-evb
Signature · 1 line
2.18.0
#3 lore raw

PATCH v11 3/3 arm64: dts: Add MediaTek SoC MT8186 dts and evaluation board and Makefile

In reply to Allen-KH Cheng

Add basic chip support for MediaTek MT8186.

---
 arch/arm64/boot/dts/mediatek/Makefile       |    1 +
 arch/arm64/boot/dts/mediatek/mt8186-evb.dts |  232 +++++
 arch/arm64/boot/dts/mediatek/mt8186.dtsi    | 1016 +++++++++++++++++++
 3 files changed, 1249 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8186.dtsi
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index c7d4636a2cb7..50a2c58c5f56 100644
@@ -37,6 +37,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-kodama-sku32.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku0.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +232 -0

232 lines not on this page · raw message

arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +1016 -0

1,016 lines not on this page · raw message

Signature · 1 line
2.18.0
#4 lore raw

Re: [PATCH v11 3/3] arm64: dts: Add MediaTek SoC MT8186 dts and evaluation board and Makefile

Il 20/05/22 14:22, Allen-KH Cheng ha scritto:

Quoted 62 lines

Add basic chip support for MediaTek MT8186.

---
  arch/arm64/boot/dts/mediatek/Makefile       |    1 +
  arch/arm64/boot/dts/mediatek/mt8186-evb.dts |  232 +++++
  arch/arm64/boot/dts/mediatek/mt8186.dtsi    | 1016 +++++++++++++++++++
  3 files changed, 1249 insertions(+)

create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-evb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186.dtsi

arch/arm64/boot/dts/mediatek/Makefile +1 -0
index c7d4636a2cb7..50a2c58c5f56 100644
@@ -37,6 +37,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-kodama-sku32.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku0.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +33 -0
new file mode 100644
index 000000000000..3e8018c1e802
@@ -0,0 +1,232 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Copyright (C) 2022 MediaTek Inc.
+ */
+/dts-v1/;
+#include "mt8186.dtsi"
+
+/ {
+	model = "MediaTek MT8186 evaluation board";
+	compatible = "mediatek,mt8186-evb", "mediatek,mt8186";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:921600n8";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0 0x40000000 0 0x80000000>;
+	};
+};
+
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0_pins>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+};
+

arch/arm64/boot/dts/mediatek/mt8186-evb.dts line 43

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +10 -0
+&i2c1 {
+	clock-frequency = <400000>;
+	i2c-scl-internal-delay-ns = <8000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+};
+

Can you please reorder like:

&i2c1 {
	status = "okay";

	clock-frequency = <400000>;
	i2c-scl-internal-delay-ns = <12500>;
	pinctrl-names = "default";
	pinctrl-0 = <&i2c1_pins>;
};

Also, address and size cells are common properties and will not change on a per-board basis: please define them in mt8186.dtsi instead.

Same for the other nodes.

Quoted 1 line
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +1 -0
+&i2c2 {

..snip..

arch/arm64/boot/dts/mediatek/mt8186-evb.dts line 103

Quoted 3 lines
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +3 -0
+
+&pio {
+	i2c0_pins: i2c0{

Please perform a dtbs_check before pushing devicetrees upstream:
this node will give you a warning, bindings related warnings are considered like code warnings and they shall not happen.

pinctrl-mt8186.yaml defines patternProperties as '-pins$' so this should be:

	i2c0_pins: i2c0-pins {

Please fix.

arch/arm64/boot/dts/mediatek/mt8186-evb.dts line 108

Quoted 5 lines
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +5 -0
+		pins-sda-scl {
+			pinmux = <PINMUX_GPIO128__FUNC_SDA0>,
+				 <PINMUX_GPIO127__FUNC_SCL0>;
+			bias-disable;
+			mediatek,drive-strength-adv = <0>;

Do not use mediatek,drive-strength-adv: it's not right in principle to have this property, as it can be expressed with the standard drive-strength-microamp property instead.

Check pinctrl-mt8192.yaml (or my commits to pinctrl-mt8195.yaml) for more information.

arch/arm64/boot/dts/mediatek/mt8186-evb.dts

Quoted 1 line
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +1 -0
+			drive-strength = <MTK_DRIVE_4mA>;

MTK_DRIVE_(x)mA maps to the actual value in mA: please stop using this definition and simply define this as

			drive-strength = <4>;
Quoted 4 lines
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +4 -0
+			input-enable;
+		};
+	};
+

..snip..

arch/arm64/boot/dts/mediatek/mt8186-evb.dts line 215

Quoted 3 lines
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +3 -0
+
+&u3phy0 {
+	status="okay";

This should be

	status = "okay";
Quoted 47 lines
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +17 -0
+};
+
+&u3phy1 {
+	status="okay";
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&xhci0 {
+	status = "okay";
+};
+
+&xhci1 {
+	status = "okay";
+};
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +24 -0
new file mode 100644
index 000000000000..35281db2e2b9
@@ -0,0 +1,1016 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Copyright (C) 2022 MediaTek Inc.
+ * Author: Allen-KH Cheng <[email protected]>
+ */
+/dts-v1/;
+#include <dt-bindings/clock/mt8186-clk.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pinctrl/mt8186-pinfunc.h>
+#include <dt-bindings/power/mt8186-power.h>
+#include <dt-bindings/phy/phy.h>
+#include <dt-bindings/reset/mt8186-resets.h>
+
+/ {
+	compatible = "mediatek,mt8186";
+	interrupt-parent = <&gic>;
+	#address-cells = <2>;
+	#size-cells = <2>;
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+

..snip..

arch/arm64/boot/dts/mediatek/mt8186.dtsi line 71

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +10 -0
+
+		cpu0: cpu@0 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a55";
+			reg = <0x000>;
+			enable-method = "psci";
+			clock-frequency = <2000000000>;
+			capacity-dmips-mhz = <382>;
+			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
+			next-level-cache = <&l2_0>;

No cooling cells?

Quoted 2 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +2 -0
+		};
+

..snip..

arch/arm64/boot/dts/mediatek/mt8186.dtsi line 249

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +10 -0
+
+	soc {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		compatible = "simple-bus";
+		ranges;
+
+		gic: interrupt-controller@c000000 {
+			compatible = "arm,gic-v3";
+			#interrupt-cells = <3>;

You're describing PPI partitions below... even if you're not currently planning to define PPI affinity just yet, interrupt cells should be 4 so that defining affinity will be pretty straightforward in the future.

Please change interrupt-cells to 4.

Quoted 26 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +26 -0
+			#address-cells = <2>;
+			#size-cells = <2>;
+			#redistributor-regions = <1>;
+			interrupt-parent = <&gic>;
+			interrupt-controller;
+			reg = <0 0x0c000000 0 0x40000>,
+			      <0 0x0c040000 0 0x200000>;
+			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
+
+			ppi-partitions {
+				ppi_cluster0: interrupt-partition-0 {
+					affinity = <&cpu0 &cpu1 &cpu2 &cpu3 &cpu4 &cpu5>;
+				};
+
+				ppi_cluster1: interrupt-partition-1 {
+					affinity = <&cpu6 &cpu7>;
+				};
+			};
+		};
+
+		mcusys: syscon@c53a000 {
+			compatible = "mediatek,mt8186-mcusys", "syscon";
+			reg = <0 0xc53a000 0 0x1000>;
+			#clock-cells = <1>;
+		};
+

arch/arm64/boot/dts/mediatek/mt8186.dtsi line 285

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +10 -0
+		topckgen: syscon@10000000 {
+			compatible = "mediatek,mt8186-topckgen", "syscon";
+			reg = <0 0x10000000 0 0x1000>;
+			#clock-cells = <1>;
+		};
+
+		infracfg_ao: syscon@10001000 {
+			compatible = "mediatek,mt8186-infracfg_ao", "syscon";
+			reg = <0 0x10001000 0 0x1000>;
+			#clock-cells = <1>;

You missed reset-cells here. This driver is also defining a reset controller.

Quoted 34 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +34 -0
+		};
+
+		pericfg: syscon@10003000 {
+			compatible = "mediatek,mt8186-pericfg", "syscon";
+			reg = <0 0x10003000 0 0x1000>;
+		};
+
+		pio: pinctrl@10005000 {
+			compatible = "mediatek,mt8186-pinctrl";
+			reg = <0 0x10005000 0 0x1000>,
+			      <0 0x10002000 0 0x0200>,
+			      <0 0x10002200 0 0x0200>,
+			      <0 0x10002400 0 0x0200>,
+			      <0 0x10002600 0 0x0200>,
+			      <0 0x10002A00 0 0x0200>,
+			      <0 0x10002C00 0 0x0200>,
+			      <0 0x1000B000 0 0x1000>;
+			reg-names = "iocfg0", "iocfg_lt", "iocfg_lm", "iocfg_lb",
+				    "iocfg_bl", "iocfg_rb", "iocfg_rt", "eint";
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pio 0 0 185>;
+			interrupt-controller;
+			interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
+			#interrupt-cells = <2>;
+		};
+
+		scpsys: syscon@10006000 {
+			compatible = "syscon", "simple-mfd";
+			reg = <0 0x10006000 0 0x1000>;
+			#power-domain-cells = <1>;
+
+			/* System Power Manager */
+			spm: power-controller {

arch/arm64/boot/dts/mediatek/mt8186.dtsi line 329

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +10 -0
+				compatible = "mediatek,mt8186-power-controller";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				#power-domain-cells = <1>;
+
+				/* power domain of the SoC */
+				mfg0: power-domain@MT8186_POWER_DOMAIN_MFG0 {
+					reg = <MT8186_POWER_DOMAIN_MFG0>;
+					clocks = <&topckgen CLK_TOP_MFG>;
+					clock-names= "mfg00";

Missing space: clock-names = "mfg00";

Quoted 18 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +18 -0
+					#address-cells = <1>;
+					#size-cells = <0>;
+					#power-domain-cells = <1>;
+
+					power-domain@MT8186_POWER_DOMAIN_MFG1 {
+						reg = <MT8186_POWER_DOMAIN_MFG1>;
+						mediatek,infracfg = <&infracfg_ao>;
+						#address-cells = <1>;
+						#size-cells = <0>;
+						#power-domain-cells = <1>;
+
+						power-domain@MT8186_POWER_DOMAIN_MFG2 {
+							reg = <MT8186_POWER_DOMAIN_MFG2>;
+							#power-domain-cells = <0>;
+						};
+
+						power-domain@MT8186_POWER_DOMAIN_MFG3 {
+							reg = <MT8186_POWER_DOMAIN_MFG3>;

arch/arm64/boot/dts/mediatek/mt8186.dtsi line 357

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +10 -0
+							#power-domain-cells = <0>;
+						};
+					};
+				};
+
+				power-domain@MT8186_POWER_DOMAIN_CSIRX_TOP {
+					reg = <MT8186_POWER_DOMAIN_CSIRX_TOP>;
+					clocks = <&topckgen CLK_TOP_SENINF>,
+						 <&topckgen CLK_TOP_SENINF1>;
+					clock-names= "csirx_top0", "csirx_top1";

Same here.

Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +8 -0
+					#power-domain-cells = <0>;
+				};
+
+				power-domain@MT8186_POWER_DOMAIN_SSUSB {
+					reg = <MT8186_POWER_DOMAIN_SSUSB>;
+					#power-domain-cells = <0>;
+				};
+

arch/arm64/boot/dts/mediatek/mt8186.dtsi line 375

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +10 -0
+				power-domain@MT8186_POWER_DOMAIN_SSUSB_P1 {
+					reg = <MT8186_POWER_DOMAIN_SSUSB_P1>;
+					#power-domain-cells = <0>;
+				};
+
+				power-domain@MT8186_POWER_DOMAIN_ADSP_AO {
+					reg = <MT8186_POWER_DOMAIN_ADSP_AO>;
+					clocks = <&topckgen CLK_TOP_AUDIODSP>,
+						 <&topckgen CLK_TOP_ADSP_BUS>;
+					clock-names= "adsp_ao0", "adsp_ao1";

...and here, and everywhere else, please fix.

arch/arm64/boot/dts/mediatek/mt8186.dtsi line 324

Quoted 4 lines
arch/arm64/boot/dts/mediatek/mt8186.dtsi new file +4 -0
+					#address-cells = <1>;
+					#size-cells = <0>;
+					#power-domain-cells = <1>;
+

Regards,
Angelo

maintainer Applied
#5 lore raw
In reply to Allen-KH Cheng
Quoted 6 lines · Allen-KH Cheng

MT8186 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA76 cores. MT8186 share many HW IP with MT65xx series.

This patchset was tested on MT8186 evaluation board to shell.

Applied, thanks!

Quoted 71 lines

Based on next-20220519, linux-next/master

changes since v9:
- remove some merged PATCHs from series
- reorder nodes in dts (cpu-map)
- remove okay status in auxadc
- remove unnecessary suffix node name for i2c
- add pwm node
- add dsi-phy node
- add dpi node

changes since v9:
- add one space before equal sign of drive-strength-adv
- corect compatible name for big cores (ca76)
- use upper case of address in pinctrl
- add pwrap node
- add pwm node

changes since v8:
- change name from pins_bus to pins-sda-scl
- correct email address
- add capacity-dmips-mhz for each CPU
- add ppi-partitions in gic node
- change name to power-domain
- remove status "okay" in scp node
- update timer and pericfg compatible in series

changes since v7:
- add scp&auxadc node

changes since v6:
- remove unnecessary blank line

changes since v5:
- replace Mediatek a to MediaTek
- use GPL-2.0-only OR BSD-2-Clause

changes since v4:
- correct driver clock of mt8186
- add power domains controller and clock controllers
- add pinctrl, usb host, spi and i2c nodes
- add node status in mt8186-evb.dts
- correct some dtbs_check warnings

changes since v3:
- remove serial, mmc and phy patch from series. (already merged)
- remove mcusysoff node
- move oscillator nodes at the head of dts
- change name from usb-phy to t-phy

changes since v2:
- add soc {} in mt8186.dtsi

changes since v1:
- add dt-bindings: arm: Add compatible for MediaTek MT8186

Allen-KH Cheng (3):
dt-bindings: arm: mediatek: Add mt8186 pericfg compatible
dt-bindings: arm: Add compatible for MediaTek MT8186
arm64: dts: Add MediaTek SoC MT8186 dts and evaluation board and
Makefile

  .../devicetree/bindings/arm/mediatek.yaml     |    4 +
  .../arm/mediatek/mediatek,pericfg.yaml        |    1 +
  arch/arm64/boot/dts/mediatek/Makefile         |    1 +
  arch/arm64/boot/dts/mediatek/mt8186-evb.dts   |  232 ++++
  arch/arm64/boot/dts/mediatek/mt8186.dtsi      | 1016 +++++++++++++++++
  5 files changed, 1254 insertions(+)

create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-evb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186.dtsi

maintainer
#6 lore raw
Quoted 12 lines · Matthias Brugger
Quoted 6 lines · Allen-KH Cheng

MT8186 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA76 cores. MT8186 share many HW IP with MT65xx series.

This patchset was tested on MT8186 evaluation board to shell.

Applied, thanks!

Based on the review from Angelo I dropped patch 3 from the tree. Please address the issues and submit again.

Regards,
Matthias

Quoted 71 lines
Quoted 71 lines

Based on next-20220519, linux-next/master

changes since v9:
  - remove some merged PATCHs from series
  - reorder nodes in dts (cpu-map)
  - remove okay status in auxadc
  - remove unnecessary suffix node name for i2c
  - add pwm node
  - add dsi-phy node
  - add dpi node

changes since v9:
  - add one space before equal sign of drive-strength-adv
  - corect compatible name for big cores (ca76)
  - use upper case of address in pinctrl
  - add pwrap node
  - add pwm node

changes since v8:
  - change name from pins_bus to pins-sda-scl
  - correct email address
  - add capacity-dmips-mhz for each CPU
  - add ppi-partitions in gic node
  - change name to power-domain
  - remove status "okay" in scp node
  - update timer and pericfg compatible in series

changes since v7:
  - add scp&auxadc node

changes since v6:
  - remove unnecessary blank line

changes since v5:
  - replace Mediatek a to MediaTek
  - use GPL-2.0-only OR BSD-2-Clause

changes since v4:
  - correct driver clock of mt8186
  - add power domains controller and clock controllers
  - add pinctrl, usb host, spi and i2c nodes
  - add node status in mt8186-evb.dts
  - correct some dtbs_check warnings

changes since v3:
  - remove serial, mmc and phy patch from series. (already merged)
  - remove mcusysoff node
  - move oscillator nodes at the head of dts
  - change name from usb-phy to t-phy

changes since v2:
  - add soc {} in mt8186.dtsi

changes since v1:
  - add dt-bindings: arm: Add compatible for MediaTek MT8186

Allen-KH Cheng (3):
   dt-bindings: arm: mediatek: Add mt8186 pericfg compatible
   dt-bindings: arm: Add compatible for MediaTek MT8186
   arm64: dts: Add MediaTek SoC MT8186 dts and evaluation board and Makefile

  .../devicetree/bindings/arm/mediatek.yaml     |    4 + .../arm/mediatek/mediatek,pericfg.yaml        |    1 + arch/arm64/boot/dts/mediatek/Makefile         |    1 + arch/arm64/boot/dts/mediatek/mt8186-evb.dts   |  232 ++++ arch/arm64/boot/dts/mediatek/mt8186.dtsi      | 1016 +++++++++++++++++

  5 files changed, 1254 insertions(+)

  create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-evb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186.dtsi

#7 lore raw

Hi Matthias,

Quoted 15 lines · Matthias Brugger
Quoted 12 lines · Matthias Brugger
Quoted 6 lines · Allen-KH Cheng

MT8186 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA76 cores. MT8186 share many HW IP with MT65xx series.

This patchset was tested on MT8186 evaluation board to shell.

Applied, thanks!

Quoted 7 lines

Based on the review from Angelo I dropped patch 3 from the tree. Please address
the issues and submit again.

Regards,
Matthias

Sure, thanks for the comments from Angelo.

I will update in next version.

BTW, could you please take a look into this series ?

https://lore.kernel.org/all/[email protected]/

This series is blocked for long time and it's in verion 24.

I would appreciate your help.

Best regards,
Allen

Quoted 74 lines
Quoted 74 lines
Quoted 74 lines

Based on next-20220519, linux-next/master

changes since v9:
- remove some merged PATCHs from series
- reorder nodes in dts (cpu-map)
- remove okay status in auxadc
- remove unnecessary suffix node name for i2c
- add pwm node
- add dsi-phy node
- add dpi node

changes since v9:
- add one space before equal sign of drive-strength-adv
- corect compatible name for big cores (ca76)
- use upper case of address in pinctrl
- add pwrap node
- add pwm node

changes since v8:
- change name from pins_bus to pins-sda-scl
- correct email address
- add capacity-dmips-mhz for each CPU
- add ppi-partitions in gic node
- change name to power-domain
- remove status "okay" in scp node
- update timer and pericfg compatible in series

changes since v7:
- add scp&auxadc node

changes since v6:
- remove unnecessary blank line

changes since v5:
- replace Mediatek a to MediaTek
- use GPL-2.0-only OR BSD-2-Clause

changes since v4:
- correct driver clock of mt8186
- add power domains controller and clock controllers
- add pinctrl, usb host, spi and i2c nodes
- add node status in mt8186-evb.dts
- correct some dtbs_check warnings

changes since v3:
- remove serial, mmc and phy patch from series. (already
merged)
- remove mcusysoff node
- move oscillator nodes at the head of dts
- change name from usb-phy to t-phy

changes since v2:
- add soc {} in mt8186.dtsi

changes since v1:
- add dt-bindings: arm: Add compatible for MediaTek MT8186

Allen-KH Cheng (3):
dt-bindings: arm: mediatek: Add mt8186 pericfg compatible
dt-bindings: arm: Add compatible for MediaTek MT8186
arm64: dts: Add MediaTek SoC MT8186 dts and evaluation board
and
Makefile

  .../devicetree/bindings/arm/mediatek.yaml     |    4 +
  .../arm/mediatek/mediatek,pericfg.yaml        |    1 +
  arch/arm64/boot/dts/mediatek/Makefile         |    1 +
  arch/arm64/boot/dts/mediatek/mt8186-evb.dts   |  232 ++++
  arch/arm64/boot/dts/mediatek/mt8186.dtsi      | 1016
+++++++++++++++++
  5 files changed, 1254 insertions(+)

create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-evb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186.dtsi