Skip to contentSkip to conversation

Add basic node support for MediaTek MT8186 SoC

PATCH Superseded Allen-KH Cheng 3 participants 4 messages Aug 2, 2022 – Aug 8, 2022

Subsystems (2)

v13 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

v13 cover Add basic node support for MediaTek MT8186 SoC

From: Allen-kh Cheng <[email protected]>

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.

This series is based on tag: next-20220728, linux-next/master Since we have a another dts series of mt8195 [1] which is waiting for review from maintainers. I remove power domains controller node from this mt8186 series and will update in another patch.

There are some corrections in mt8186 hardware bindings. We need to apply the below patches.
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

[1]
https://patchwork.kernel.org/project/linux-mediatek/list/?series=663978

changes since v12:
- remove drive-strength fom i2c pins
- use lowercase hex addresses in pinctrl node
- correct clk order in xhci0
- add clk26m for dma_ck

changes since v11:
- add #cooling-cells in cpu nodes
- add pmu nodes for mt8186
- change #interrupt-cells from 3 to 4
- correct interrupts property in each nodes for 4 interrupt cells
- remove power domains controller node
- move #address-cells and #size-cells into mt8186.dts
- remove unused ahb_cg clock in mmc0
- add efuse node
- add dsi node and remove dpi node
- move i2c status position in mt8186-evb.dts
- change i2c child nodee name in pio node to *-pins
- change property from mediatek,drive-strength-adv to drive-strength-microamp in i2c child nodes of pio
- change drive-strength value from MTK_DRIVE_4mA to 4 in i2c child nodes of pio
- change i2c child nodes from pins-sda-sc1 to pins-bus
- correct pintctrl clk names

changes since v10:
- remove merged PATCHes
- add pmu nodes
- add #cooling-cells
- change #interrupt-cells number from 3 to 4
- remove power domains controller node
- move #address-cells/#size-cells into mt8186.dts from evb dts for i2c
- move status = 'okay' position in i2cx
- fix pinctrl patternproperties name in pio
- add efuse node
- fix dsi node
- add #reset-cells in infracfg_ao: syscon

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 (1):
arm64: dts: Add MediaTek MT8186 dts and evaluation board and Makefile

 arch/arm64/boot/dts/mediatek/Makefile       |   1 +
 arch/arm64/boot/dts/mediatek/mt8186-evb.dts | 228 +++++
 arch/arm64/boot/dts/mediatek/mt8186.dtsi    | 875 ++++++++++++++++++++
 3 files changed, 1104 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 v13 1/1 arm64: dts: Add MediaTek MT8186 dts and evaluation board and Makefile

Add basic chip support for MediaTek MT8186.

---
 arch/arm64/boot/dts/mediatek/Makefile       |   1 +
 arch/arm64/boot/dts/mediatek/mt8186-evb.dts | 228 +++++
 arch/arm64/boot/dts/mediatek/mt8186.dtsi    | 875 ++++++++++++++++++++
 3 files changed, 1104 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 af362a085a02..0ec90cb3ef28 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-asurada-hayato-r1.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb
arch/arm64/boot/dts/mediatek/mt8186-evb.dts new file +228 -0

228 lines not on this page · raw message

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

875 lines not on this page · raw message

Signature · 1 line
2.18.0
maintainer
#3 lore raw
In reply to Allen-KH Cheng

Hi Allen,

Below some notes for myself.

Quoted 11 lines · Allen-KH Cheng

From: Allen-kh Cheng <[email protected]>

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.

This series is based on tag: next-20220728, linux-next/master Since we have a another dts series of mt8195 [1] which is waiting for review from maintainers. I remove power domains controller node from this mt8186 series and will update in another patch.

Quoted 4 lines

There are some corrections in mt8186 hardware bindings. We need to apply the below patches.
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Both are already merged.

Quoted 1 line

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Acked but not yet merged.

Quoted 1 line

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

We still have some discussions here.

Regards,
Matthias

Quoted 104 lines

[1]
https://patchwork.kernel.org/project/linux-mediatek/list/?series=663978

changes since v12:
- remove drive-strength fom i2c pins
- use lowercase hex addresses in pinctrl node
- correct clk order in xhci0
- add clk26m for dma_ck

changes since v11:
- add #cooling-cells in cpu nodes
- add pmu nodes for mt8186
- change #interrupt-cells from 3 to 4
- correct interrupts property in each nodes for 4 interrupt cells
- remove power domains controller node
- move #address-cells and #size-cells into mt8186.dts
- remove unused ahb_cg clock in mmc0
- add efuse node
- add dsi node and remove dpi node
- move i2c status position in mt8186-evb.dts
- change i2c child nodee name in pio node to *-pins
- change property from mediatek,drive-strength-adv to drive-strength-microamp in i2c child nodes of pio
- change drive-strength value from MTK_DRIVE_4mA to 4 in i2c child nodes of pio
- change i2c child nodes from pins-sda-sc1 to pins-bus
- correct pintctrl clk names

changes since v10:
- remove merged PATCHes
- add pmu nodes
- add #cooling-cells
- change #interrupt-cells number from 3 to 4
- remove power domains controller node
- move #address-cells/#size-cells into mt8186.dts from evb dts for i2c
- move status = 'okay' position in i2cx
- fix pinctrl patternproperties name in pio
- add efuse node
- fix dsi node
- add #reset-cells in infracfg_ao: syscon

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 (1):
arm64: dts: Add MediaTek MT8186 dts and evaluation board and Makefile

  arch/arm64/boot/dts/mediatek/Makefile       |   1 +
  arch/arm64/boot/dts/mediatek/mt8186-evb.dts | 228 +++++
  arch/arm64/boot/dts/mediatek/mt8186.dtsi    | 875 ++++++++++++++++++++
  3 files changed, 1104 insertions(+)

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