Add basic SoC support for mediatek mt8195
v12 cover Add basic SoC support for mediatek mt8195
This series adds basic SoC support for Mediatek's SoC MT8195.
---
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 (3):
dt-bindings: mmc: mtk-sd: fix yamllint error
dt-bindings: mmc: mtk-sd: increase reg maxItems
arm64: dts: Add mediatek SoC mt8195 and evaluation board
.../devicetree/bindings/mmc/mtk-sd.yaml | 6 +- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8195-evb.dts | 173 +++ arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1045 +++++++++++++++++ 4 files changed, 1223 insertions(+), 2 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
PATCH v12 1/3 dt-bindings: mmc: mtk-sd: fix yamllint error
Documentation/devicetree/bindings/mmc/mtk-sd.yaml
54:81 error line too long (95 > 80 characters) (line-length)
--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -1
@@ -50,7 +50,8 @@ properties: - description: source clock (required). - description: HCLK which used for host (required). - description: independent source clock gate (required for MT2712). - - description: bus clock used for internal register access (required for MT2712 MSDC0/3). + - description: bus clock used for internal register access + (required for MT2712 MSDC0/3). - description: msdc subsys clock gate (required for MT8192). - description: peripheral bus clock gate (required for MT8192). - description: AXI bus clock gate (required for MT8192).
Signature · 1 line
2.18.0
AngeloGioacchino Del Regno
maintainerRe: [PATCH v12 1/3] dt-bindings: mmc: mtk-sd: fix yamllint error
Il 29/03/22 13:45, Tinghan Shen ha scritto:
Quoted 3 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml
54:81 error line too long (95 > 80 characters) (line-length)
I can't reproduce this error that you're getting... this commit is not necessary, as the .yamllint file in the kernel allows a maximum line-length of 110 characters.
rules:
line-length:
# 80 chars should be enough, but don't fail if a line is longer
max: 110
Please drop this commit.
Quoted 4 lines
Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH v12 1/3] dt-bindings: mmc: mtk-sd: fix yamllint error
Hi Angelo,
Quoted 5 lines · AngeloGioacchino Del Regno
Il 29/03/22 13:45, Tinghan Shen ha scritto:
Quoted 3 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml
54:81 error line too long (95 > 80 characters) (line-length)
Quoted 10 lines
I can't reproduce this error that you're getting... this commit is not necessary, as the .yamllint file in the kernel allows a maximum line-length of 110 characters.
rules:
line-length:
# 80 chars should be enough, but don't fail if a line is longer
max: 110
Quoted 3 lines
Please drop this commit.
Thank you for your feedback.
I figured out why I have this error...
It's because I do the yamllint outside of the bindings folder and not specify the yamllint config file.
I'll drop this at next version.
Best regards,
Tinghan
Quoted 5 lines
Quoted 5 lines
Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
PATCH v12 2/3 dt-bindings: mmc: mtk-sd: increase reg maxItems
In reply to Tinghan ShenAdd optional host top register base for the reg binding description.
--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -1
@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmc reg: - maxItems: 1 + minItems: 1 + maxItems: 2 clocks: description:
Signature · 1 line
2.18.0
AngeloGioacchino Del Regno
maintainerRe: [PATCH v12 2/3] dt-bindings: mmc: mtk-sd: increase reg maxItems
Il 29/03/22 13:45, Tinghan Shen ha scritto:
Quoted 13 lines
Add optional host top register base for the reg binding description.
Signed-off-by Wenbin Mei <[email protected]>Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0
Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 44
Quoted 6 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2
-1@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmc reg: - maxItems: 1 + minItems: 1 + maxItems: 2
it's just maxItems... adding minItems: 1 is not required.
Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 47
Quoted 3 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0clocks: description:
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [PATCH v12 2/3] dt-bindings: mmc: mtk-sd: increase reg maxItems
Quoted 17 lines · AngeloGioacchino Del Regno
Il 29/03/22 13:45, Tinghan Shen ha scritto:
Quoted 15 lines
Add optional host top register base for the reg binding description.
Signed-off-by Wenbin Mei <[email protected]>Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmc
Quoted 6 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 44
Quoted 4 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2
-1reg: - maxItems: 1 + minItems: 1 + maxItems: 2it's just maxItems... adding minItems: 1 is not required.
If 1 entry is still valid, then minItems is required. If not, then it's an ABI break.
Rob
AngeloGioacchino Del Regno
maintainerRe: [PATCH v12 2/3] dt-bindings: mmc: mtk-sd: increase reg maxItems
Il 29/03/22 21:10, Rob Herring ha scritto:
Quoted 26 lines
Quoted 17 lines · AngeloGioacchino Del Regno
Il 29/03/22 13:45, Tinghan Shen ha scritto:
Quoted 15 lines
Add optional host top register base for the reg binding description.
Signed-off-by Wenbin Mei <[email protected]>Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmcQuoted 6 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 44
Quoted 4 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2
-1reg: - maxItems: 1 + minItems: 1 + maxItems: 2it's just maxItems... adding minItems: 1 is not required.
Quoted 4 lines
If 1 entry is still valid, then minItems is required. If not, then it's an ABI break.
Rob
Right. Sorry for that and thanks for the explaination, Rob.
Cheers,
Angelo
Matthias Brugger
maintainerRe: [PATCH v12 2/3] dt-bindings: mmc: mtk-sd: increase reg maxItems
In reply to Tinghan ShenQuoted 2 lines · Tinghan Shen
Add optional host top register base for the reg binding description.
Is this based a on a new version of the IP? Shall we make the second reg mandatory for the new HW? If I remember correctly the reg needs to be restored after power save event. So I suppose mmc won't work if that's not done. So optional wouldn't be the right approach.
Can you please clarify if that's the case.
Thanks,
Matthias
Quoted 20 lines
Signed-off-by Wenbin Mei <[email protected]>Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2
-1@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmc reg: - maxItems: 1 + minItems: 1 + maxItems: 2 clocks: description:
Re: [PATCH v12 2/3] dt-bindings: mmc: mtk-sd: increase reg maxItems
Hi Matthias,
Quoted 11 lines · Matthias Brugger
Quoted 2 lines · Tinghan Shen
Add optional host top register base for the reg binding description.
Is this based a on a new version of the IP? Shall we make the second reg mandatory for the new HW? If I remember correctly the reg needs to be restored after power save event. So I suppose mmc won't work if that's not done. So optional wouldn't be the right approach.
Can you please clarify if that's the case.
Yes. This change is introduced since mt8183, and the host top register is required for mt8183.
We'll try to describe this change clearly in bindings in next version.
Best regards,
Tinghan
Quoted 25 lines
Thanks,
MatthiasQuoted 21 lines
Signed-off-by Wenbin Mei <[email protected]>Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2
-1@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmc reg: - maxItems: 1 + minItems: 1 + maxItems: 2 clocks: description:
Rob Herring
maintainerRe: [PATCH v12 2/3] dt-bindings: mmc: mtk-sd: increase reg maxItems
In reply to Tinghan ShenQuoted 13 lines · Tinghan Shen
Add optional host top register base for the reg binding description.
Signed-off-by Wenbin Mei <[email protected]>Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0
Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 44
Quoted 6 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2
-1@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmc reg: - maxItems: 1 + minItems: 1 + maxItems: 2
If more than 1 entry, then you need to define what each one is.
Quoted 7 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0clocks: description:Signature · 1 line
2.18.0
Re: [PATCH v12 2/3] dt-bindings: mmc: mtk-sd: increase reg maxItems
Hi Rob,
Quoted 17 lines · Rob Herring
Quoted 16 lines · Tinghan Shen
Add optional host top register base for the reg binding description.
Signed-off-by Wenbin Mei <[email protected]>Signed-off-by Tinghan Shen <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0@@ -40,7 +40,8 @@ properties: - const: mediatek,mt8183-mmc
Quoted 6 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 44
Quoted 4 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2
-1reg: - maxItems: 1 + minItems: 1 + maxItems: 2If more than 1 entry, then you need to define what each one is.
Ok. I'll add definitions at next version.
Thank you.
Best regards,
Tinghan
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0clocks: description:Signature · 1 line
2.18.0
PATCH v12 3/3 arm64: dts: Add mediatek SoC mt8195 and evaluation board
In reply to Tinghan ShenAdd basic chip support for mediatek mt8195.
--- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8195-evb.dts | 173 +++ arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1045 +++++++++++++++++++ 3 files changed, 1219 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
@@ -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 +173 -0
173 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