Skip to contentSkip to conversation

Add basic SoC support for mediatek mt8195

PATCH In review Tinghan Shen 3 participants 5 messages Apr 11, 2022 – Apr 22, 2022

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

v14 cover Add basic SoC support for mediatek mt8195

This series adds basic SoC support for Mediatek's SoC MT8195.

---
Changes in v14:
- update pwrap dt-bindings

    this patch is picked from [email protected] 

- enable u3phy2 and u3phy3 in evb dts
Changes in v13:
- add more description of reg items in mtk-sd.yaml
Changes in v12:
- update mtk-sd.yaml to extend reg property and fix yamllint error
- add xhci nodes and move xhci3 property (usb2-lpm-disable) to evb.dts
Changes in v11:
- rebase on 5.17-rc4
Changes in v10:
- clean CC list
Changes in v9:
- remove duplicated cpus dt-bindings patch in v8
Changes in v8:
- v7 mediatek,spi-mtk-nor.yaml patch is applied in branch for-5.17 at kernel/git/broonie/spi.git
- v7 pinctrl-mt8195.yaml patch is applied in branch for-next at kernel/git/linusw/linux-pinctrl.git
- add cortex-a78 compatible to cpus dt-bindings
- add mediatek,drive-strength-adv property to pinctrl dt-bindings
- fix evb dts
- remove i2c nodes with disabled status from dts
- fix pin properties not match pinctrl dt-bindings
- remove unnecessary u3port*
- fix dtsi
- fix node format
- reorder oscillator* nodes
- fix node name of cpu idle nodes
- remove clock-frequency property in the timer node
- reorder clock and clock names in usb nodes
Changes in v7:
- refine title of spi-nor dt-bindings patch
- refine commit message of pinctrl dt-bindings patch
- update pinctrl-mt8195.yaml
- change property pattern from 'pins' to '^pins'
- update examples with new property in descriptions
- add new example
- drop '_' from node names of pinctrl subnodes in mt8195-evb.dts
Changes in v6:
- rebase on 5.16-rc1
- add new clock name to spi-nor dt-bindings
- add "pins" property in pinctrl dt-bindings
- fix fails of dtbs_checks
- remove "arm,armv8" not matched in yaml from cpu compatile
- fix node name of xhci
- remvoe xhci upstreaming wakeup properties
- remove xhci unused properties address-cells and size-cells
- fix node name of ufs-phy
- fix node name of spi-nor
- fix node name and sub-nodes of pinctrl
- fix mmc compatible
Changes in v5:
- enable basic nodes in mt8195-evb.dts
- remove dedicated clock nodes
- add mmc2 node
- fix interrupt number of pinctrl node
- update clock nodes to apply internal fixes
- add dt-bindings for perficfg node

v4 thread:
https://lore.kernel.org/all/[email protected]/
v3 thread:
https://lore.kernel.org/all/[email protected]/
v2 thread:
https://lore.kernel.org/all/[email protected]/
v1 thread:
https://lore.kernel.org/all/[email protected]/
---

Tinghan Shen (1):
arm64: dts: Add mediatek SoC mt8195 and evaluation board

Zhiyong.Tao (1):
dt-bindings: pwrap: mediatek: fix pwrap document for mt8195

 .../bindings/soc/mediatek/pwrap.txt           |   10 +-
 arch/arm64/boot/dts/mediatek/Makefile         |    1 +
 arch/arm64/boot/dts/mediatek/mt8195-evb.dts   |  181 +++
 arch/arm64/boot/dts/mediatek/mt8195.dtsi      | 1045 +++++++++++++++++
 4 files changed, 1232 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8195-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8195.dtsi
Signature · 1 line
2.18.0
#1 lore raw

PATCH v14 1/2 dt-bindings: pwrap: mediatek: Update pwrap document for mt8195

From: "Zhiyong.Tao" <[email protected]>

Update pwrap document description for mt8195

---
 .../devicetree/bindings/soc/mediatek/pwrap.txt         | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/soc/mediatek/pwrap.txt +5 -5
index 214a34633824..0581dbda4828 100644
@@ -31,20 +31,20 @@ Required properties in pwrap device node.
 	"mediatek,mt8195-pwrap" for MT8195 SoCs
 	"mediatek,mt8516-pwrap" for MT8516 SoCs
 - interrupts: IRQ for pwrap in SOC
-- reg-names: Must include the following entries:
+- reg-names: "pwrap" is required; "pwrap-bridge" is optional.
   "pwrap": Main registers base
   "pwrap-bridge": bridge base (IP Pairing)
 - reg: Must contain an entry for each entry in reg-names.
-- reset-names: Must include the following entries:
-  "pwrap"
-  "pwrap-bridge" (IP Pairing)
-- resets: Must contain an entry for each entry in reset-names.
 - clock-names: Must include the following entries:
   "spi": SPI bus clock
   "wrap": Main module clock
 - clocks: Must contain an entry for each entry in clock-names.
 
 Optional properities:
+- reset-names: Some SoCs include the following entries:
+  "pwrap"
+  "pwrap-bridge" (IP Pairing)
+- resets: Must contain an entry for each entry in reset-names.
 - pmic: Using either MediaTek PMIC MFD as the child device of pwrap
   See the following for child node definitions:
   Documentation/devicetree/bindings/mfd/mt6397.txt
Signature · 1 line
2.18.0
maintainer Acked-by on v14 1/2
#2 lore raw

Re: [PATCH v14 1/2] dt-bindings: pwrap: mediatek: Update pwrap document for mt8195

Quoted 10 lines · Tinghan Shen

From: "Zhiyong.Tao" <[email protected]>

Update pwrap document description for mt8195

---
 .../devicetree/bindings/soc/mediatek/pwrap.txt         | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
#3 lore raw

PATCH v14 2/2 arm64: dts: Add mediatek SoC mt8195 and evaluation board

In reply to Tinghan Shen

Add basic chip support for mediatek mt8195.

---
 arch/arm64/boot/dts/mediatek/Makefile       |    1 +
 arch/arm64/boot/dts/mediatek/mt8195-evb.dts |  181 ++++
 arch/arm64/boot/dts/mediatek/mt8195.dtsi    | 1045 +++++++++++++++++++
 3 files changed, 1227 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8195-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8195.dtsi
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index 8c1e18032f9f..5da29e7223e4 100644
@@ -38,4 +38,5 @@ 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) += mt8192-evb.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb
arch/arm64/boot/dts/mediatek/mt8195-evb.dts new file +181 -0

181 lines not on this page · raw message

arch/arm64/boot/dts/mediatek/mt8195.dtsi new file +1045 -0

1,045 lines not on this page · raw message

Signature · 1 line
2.18.0
maintainer
#4 lore raw
In reply to Tinghan Shen
Quoted 1 line · Tinghan Shen

This series adds basic SoC support for Mediatek's SoC MT8195.

Both patches applied to their respective branches.

Thanks!

Quoted 87 lines

---
Changes in v14:
- update pwrap dt-bindings

     this patch is picked from [email protected]

- enable u3phy2 and u3phy3 in evb dts
Changes in v13:
- add more description of reg items in mtk-sd.yaml
Changes in v12:
- update mtk-sd.yaml to extend reg property and fix yamllint error
- add xhci nodes and move xhci3 property (usb2-lpm-disable) to evb.dts
Changes in v11:
- rebase on 5.17-rc4
Changes in v10:
- clean CC list
Changes in v9:
- remove duplicated cpus dt-bindings patch in v8
Changes in v8:
- v7 mediatek,spi-mtk-nor.yaml patch is applied in branch for-5.17 at kernel/git/broonie/spi.git
- v7 pinctrl-mt8195.yaml patch is applied in branch for-next at kernel/git/linusw/linux-pinctrl.git
- add cortex-a78 compatible to cpus dt-bindings
- add mediatek,drive-strength-adv property to pinctrl dt-bindings
- fix evb dts
- remove i2c nodes with disabled status from dts
- fix pin properties not match pinctrl dt-bindings
- remove unnecessary u3port*
- fix dtsi
- fix node format
- reorder oscillator* nodes
- fix node name of cpu idle nodes
- remove clock-frequency property in the timer node
- reorder clock and clock names in usb nodes
Changes in v7:
- refine title of spi-nor dt-bindings patch
- refine commit message of pinctrl dt-bindings patch
- update pinctrl-mt8195.yaml
- change property pattern from 'pins' to '^pins'
- update examples with new property in descriptions
- add new example
- drop '_' from node names of pinctrl subnodes in mt8195-evb.dts
Changes in v6:
- rebase on 5.16-rc1
- add new clock name to spi-nor dt-bindings
- add "pins" property in pinctrl dt-bindings
- fix fails of dtbs_checks
- remove "arm,armv8" not matched in yaml from cpu compatile
- fix node name of xhci
- remvoe xhci upstreaming wakeup properties
- remove xhci unused properties address-cells and size-cells
- fix node name of ufs-phy
- fix node name of spi-nor
- fix node name and sub-nodes of pinctrl
- fix mmc compatible
Changes in v5:
- enable basic nodes in mt8195-evb.dts
- remove dedicated clock nodes
- add mmc2 node
- fix interrupt number of pinctrl node
- update clock nodes to apply internal fixes
- add dt-bindings for perficfg node

v4 thread:
https://lore.kernel.org/all/[email protected]/
v3 thread:
https://lore.kernel.org/all/[email protected]/
v2 thread:
https://lore.kernel.org/all/[email protected]/
v1 thread:
https://lore.kernel.org/all/[email protected]/
---

Tinghan Shen (1):
arm64: dts: Add mediatek SoC mt8195 and evaluation board

Zhiyong.Tao (1):
dt-bindings: pwrap: mediatek: fix pwrap document for mt8195

  .../bindings/soc/mediatek/pwrap.txt           |   10 +-
  arch/arm64/boot/dts/mediatek/Makefile         |    1 +
  arch/arm64/boot/dts/mediatek/mt8195-evb.dts   |  181 +++
  arch/arm64/boot/dts/mediatek/mt8195.dtsi      | 1045 +++++++++++++++++
  4 files changed, 1232 insertions(+), 5 deletions(-)

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