Add basic node support for MediaTek MT8188 SoC
Subsystems (2)
v6 cover Add basic node support for MediaTek MT8188 SoC
From: jason-ch chen <[email protected]>
MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.
This patchset was tested on MT8188 evaluation board to shell.
Based on tag: next-20231023, linux-next/master
Changes in v6:
- Add L2 and L3 cache information
- Fix reviewer's comments
Changes in v5:
- Remove unnecessary always-on regulator nodes
- Fix dtbs_check warning
Changes in v4:
- Explain the reason of modifying pwrap binding file, and correct the subject
- Fix reviewer's comments
Changes in v3:
- Remove the duplicated part of mt8188 in the pwrap yaml file
- Fix reviewer's comments about coding style
Changes in v2:
- Add MT8188 PMIC Wrapper compatible to binding document
- Fix reviewer's comments
jason-ch chen (4):
dt-bindings: arm: Add compatible for MediaTek MT8188
dt-bindings: arm: mediatek: Add mt8188 pericfg compatible
dt-bindings: soc: mediatek: pwrap: Modify compatible for MT8188
arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile
.../devicetree/bindings/arm/mediatek.yaml | 4 + .../arm/mediatek/mediatek,pericfg.yaml | 1 + .../bindings/soc/mediatek/mediatek,pwrap.yaml | 6 +- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 387 +++++++ arch/arm64/boot/dts/mediatek/mt8188.dtsi | 956 ++++++++++++++++++ 6 files changed, 1354 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-evb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8188.dtsi
Signature · 1 line
2.18.0
PATCH v6 1/4 dt-bindings: arm: Add compatible for MediaTek MT8188
From: jason-ch chen <[email protected]>
This commit adds dt-binding documentation for the MediaTek MT8188 reference board.
--- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
@@ -174,6 +174,10 @@ properties: - enum: - mediatek,mt8186-evb - const: mediatek,mt8186 + - items: + - enum: + - mediatek,mt8188-evb + - const: mediatek,mt8188 - items: - enum: - mediatek,mt8192-evb
Signature · 1 line
2.18.0
PATCH v6 2/4 dt-bindings: arm: mediatek: Add mt8188 pericfg compatible
In reply to Jason-ch ChenFrom: jason-ch chen <[email protected]>
Add mt8188 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
@@ -28,6 +28,7 @@ properties: - mediatek,mt8173-pericfg - mediatek,mt8183-pericfg - mediatek,mt8186-pericfg + - mediatek,mt8188-pericfg - mediatek,mt8195-pericfg - mediatek,mt8516-pericfg - const: syscon
Signature · 1 line
2.18.0
PATCH v6 3/4 dt-bindings: soc: mediatek: pwrap: Modify compatible for MT8188
In reply to Jason-ch ChenFrom: jason-ch chen <[email protected]>
The reason for changing the patch was that while MT8188 uses the same pwrap as MT8195, the original code was only applicable to 'compatible = "mediatek,mt8188-pwrap"'. To resolve the DTBS check warning that '['mediatek,mt8188-pwrap', 'mediatek,mt8195-pwrap', 'syscon'] is too long', it is necessary to modify the code.
--- .../devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml +5 -1
@@ -41,7 +41,6 @@ properties: - mediatek,mt8173-pwrap - mediatek,mt8183-pwrap - mediatek,mt8186-pwrap - - mediatek,mt8188-pwrap - mediatek,mt8195-pwrap - mediatek,mt8365-pwrap - mediatek,mt8516-pwrap
@@ -50,6 +49,11 @@ properties: - mediatek,mt8186-pwrap - mediatek,mt8195-pwrap - const: syscon + - items: + - enum: + - mediatek,mt8188-pwrap + - const: mediatek,mt8195-pwrap + - const: syscon reg: minItems: 1
Signature · 1 line
2.18.0
PATCH v6 4/4 arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile
In reply to Jason-ch ChenFrom: jason-ch chen <[email protected]>
MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.
We add basic chip support for MediaTek MT8188 on evaluation board.
--- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 387 ++++++++ arch/arm64/boot/dts/mediatek/mt8188.dtsi | 956 ++++++++++++++++++++ 3 files changed, 1344 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-evb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8188.dtsi
arch/arm64/boot/dts/mediatek/Makefile +1 -0
@@ -44,6 +44,7 @@ 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) += mt8188-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r5-sku2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +387 -0
387 lines not on this page · raw message
arch/arm64/boot/dts/mediatek/mt8188.dtsi new file +956 -0
956 lines not on this page · raw message
Signature · 1 line
2.18.0
Re: [PATCH v6 4/4] arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile
Il 23/10/23 10:38, Jason-ch Chen ha scritto:
Quoted 8 lines
From: jason-ch chen <[email protected]>
MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.
We add basic chip support for MediaTek MT8188 on evaluation board.
Signed-off-by jason-ch chen <[email protected]>
Re: [PATCH v6 4/4] arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile
In reply to Jason-ch ChenQuoted 79 lines · Jason-ch Chen
From: jason-ch chen <[email protected]>
MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.
We add basic chip support for MediaTek MT8188 on evaluation board.
Signed-off-by jason-ch chen <[email protected]>--- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 387 ++++++++ arch/arm64/boot/dts/mediatek/mt8188.dtsi | 956 ++++++++++++++++++++ 3 files changed, 1344 insertions(+)create mode 100644
arch/arm64/boot/dts/mediatek/mt8188-evb.dtscreate mode 100644arch/arm64/boot/dts/mediatek/mt8188.dtsiarch/arm64/boot/dts/mediatek/Makefile +1
-0@@ -44,6 +44,7 @@ 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) += mt8188-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r5-sku2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtbarch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +45
-0@@ -0,0 +1,387 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2023 MediaTek Inc. + */ +/dts-v1/; +#include "mt8188.dtsi" +#include "mt6359.dtsi" + +/ { + model = "MediaTek MT8188 evaluation board"; + compatible = "mediatek,mt8188-evb", "mediatek,mt8188"; + + aliases { + serial0 = &uart0; + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; + i2c4 = &i2c4; + i2c5 = &i2c5; + i2c6 = &i2c6; + mmc0 = &mmc0; + }; + + chosen: chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x80000000>; + }; + + reserved_memory: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + scp_mem_reserved: memory@50000000 { + compatible = "shared-dma-pool"; + reg = <0 0x50000000 0 0x2900000>; + no-map; + }; + }; +};
arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 55
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +10
-0+ +&auxadc { + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + clock-frequency = <400000>; + status = "okay";
IMO, the order should be
clock-frequency = <400000>;
pinctrl-0 = <&i2c0_pins>;
pinctrl-names = "default";
status = "okay";
Please apply this to other nodes
Quoted 80 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +80
-0+}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c4_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c5 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c5_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c6 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c6_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&mmc0 { + bus-width = <8>; + hs400-ds-delay = <0x1481b>; + max-frequency = <200000000>; + + cap-mmc-highspeed; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + supports-cqe; + cap-mmc-hw-reset; + no-sdio; + no-sd; + non-removable; + + vmmc-supply = <&mt6359_vemc_1_ldo_reg>; + vqmmc-supply = <&mt6359_vufs_ldo_reg>; + + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc0_default_pins>; + pinctrl-1 = <&mmc0_uhs_pins>; + + status = "okay"; +}; + +&mt6359_vcore_buck_reg { + regulator-always-on; +}; + +&mt6359_vgpu11_buck_reg { + regulator-always-on; +}; + +&mt6359_vpu_buck_reg { + regulator-always-on; +}; +
arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 145
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +10
-0+&mt6359_vrf12_ldo_reg { + regulator-always-on; +}; + +&nor_flash { + pinctrl-names = "default"; + pinctrl-0 = <&nor_pins_default>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay";
Order:
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&nor_pins_default>;
pinctrl-names = "default";
status = "okay";
Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +8
-0+ + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <52000000>; + }; +}; +
..snip..
arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 343
Quoted 13 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +13
-0+ +&pmic { + interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; +}; + +&scp { + memory-region = <&scp_mem_reserved>; + status = "okay"; +}; + +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>;
Order:
pinctrl-0 = <&spi0_pins>;
pinctrl-names = "default";
Please apply this to other nodes
Quoted 33 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +33
-0+ status = "okay"; +}; + +&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1_pins>; + status = "okay"; +}; + +&spi2 { + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins>; + status = "okay"; +}; + +&u3phy0 { + status = "okay"; +}; + +&u3phy1 { + status = "okay"; +}; + +&u3phy2 { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; + status = "okay"; +}; +
..snip..
arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 32
Quoted 3 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +3
-0+ }; + }; +};
After that:
Signature · 2 lines
Regards, Alexandre
Re: [PATCH v6 4/4] arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile
Hi,
Quoted 96 lines · Alexandre Mergnat
Quoted 79 lines · Jason-ch Chen
From: jason-ch chen <[email protected]>
MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.
We add basic chip support for MediaTek MT8188 on evaluation board.
Signed-off-by jason-ch chen <[email protected]>--- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 387 ++++++++ arch/arm64/boot/dts/mediatek/mt8188.dtsi | 956 ++++++++++++++++++++ 3 files changed, 1344 insertions(+)create mode 100644
arch/arm64/boot/dts/mediatek/mt8188-evb.dtscreate mode 100644arch/arm64/boot/dts/mediatek/mt8188.dtsiarch/arm64/boot/dts/mediatek/Makefile +1
-0@@ -44,6 +44,7 @@ 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) += mt8188-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r5-sku2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtbarch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +45
-0@@ -0,0 +1,387 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2023 MediaTek Inc. + */ +/dts-v1/; +#include "mt8188.dtsi" +#include "mt6359.dtsi" + +/ { + model = "MediaTek MT8188 evaluation board"; + compatible = "mediatek,mt8188-evb", "mediatek,mt8188"; + + aliases { + serial0 = &uart0; + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; + i2c4 = &i2c4; + i2c5 = &i2c5; + i2c6 = &i2c6; + mmc0 = &mmc0; + }; + + chosen: chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x80000000>; + }; + + reserved_memory: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + scp_mem_reserved: memory@50000000 { + compatible = "shared-dma-pool"; + reg = <0 0x50000000 0 0x2900000>; + no-map; + }; + }; +};arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 55
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +10
-0+ +&auxadc { + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + clock-frequency = <400000>; + status = "okay";IMO, the order should be
Quoted 6 lines
clock-frequency = <400000>;
pinctrl-0 = <&i2c0_pins>;
pinctrl-names = "default";
status = "okay";Please apply this to other nodes
Within the MediaTek platform device trees, this ordering seems to be all over. The one here seems to be the ordering MediaTek likes. The device trees upstreamed by Collabora folks have:
{
status = "okay";
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&i2c3_pins>;
}As long as the ordering sort of makes sense (external bus properties come after internal properties), I probably wouldn't argue either way.
Quoted 94 lines
Quoted 80 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +80
-0+}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c4_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c5 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c5_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c6 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c6_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&mmc0 { + bus-width = <8>; + hs400-ds-delay = <0x1481b>; + max-frequency = <200000000>; + + cap-mmc-highspeed; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + supports-cqe; + cap-mmc-hw-reset; + no-sdio; + no-sd; + non-removable; + + vmmc-supply = <&mt6359_vemc_1_ldo_reg>; + vqmmc-supply = <&mt6359_vufs_ldo_reg>; + + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc0_default_pins>; + pinctrl-1 = <&mmc0_uhs_pins>; + + status = "okay"; +}; + +&mt6359_vcore_buck_reg { + regulator-always-on; +}; + +&mt6359_vgpu11_buck_reg { + regulator-always-on; +}; + +&mt6359_vpu_buck_reg { + regulator-always-on; +}; +arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 145
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +10
-0+&mt6359_vrf12_ldo_reg { + regulator-always-on; +}; + +&nor_flash { + pinctrl-names = "default"; + pinctrl-0 = <&nor_pins_default>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay";Order:
Quoted 5 lines
#address-cells = <1>;
#size-cells = <0>;pinctrl-0 = <
&nor_pins_default>;
pinctrl-names = "default";
I think pinctrl-names before pinctrl-* makes more sense. We declare the names and by extension how many pinctrl-N entries are needed first. The vast majority of the arm64 device tree files have pinctrl-names before pinctrl-N. The only platform that exclusively has pinctrl-N before pinctrl-names is amlogic.
If there's a preference for a particular order platform-wide or tree-wide then it should probably be documented somewhere?
Quoted 1 line
status = "okay";
I think #address-cells and #size-cells belong at the end of the list, even after "status", just before any child nodes. They describe properties or requirements for the child nodes, not for the node they sit in.
Quoted 27 lines
Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +8
-0+ + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <52000000>; + }; +}; +..snip..
arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 343
Quoted 13 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +13
-0+ +&pmic { + interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; +}; + +&scp { + memory-region = <&scp_mem_reserved>; + status = "okay"; +}; + +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>;Order:
Quoted 4 lines
pinctrl-0 = <
&spi0_pins>;
pinctrl-names = "default";Please apply this to other nodes
See above.
ChenYu
Quoted 46 lines
Quoted 33 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +33
-0+ status = "okay"; +}; + +&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1_pins>; + status = "okay"; +}; + +&spi2 { + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins>; + status = "okay"; +}; + +&u3phy0 { + status = "okay"; +}; + +&u3phy1 { + status = "okay"; +}; + +&u3phy2 { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; + status = "okay"; +}; +..snip..
arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 32
Quoted 3 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +3
-0+ }; + }; +};After that:
Reviewed-by Alexandre Mergnat <[email protected]>--
Regards,
Alexandre
Re: [PATCH v6 4/4] arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile
Quoted 35 lines · Chen-Yu Tsai
Hi,
Quoted 32 lines · Alexandre Mergnat
Quoted 28 lines · Jason-ch Chen
From: jason-ch chen <[email protected]>
MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.
We add basic chip support for MediaTek MT8188 on evaluation board.
Signed-off-by jason-ch chen <[email protected]>--- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 387 ++++++++ arch/arm64/boot/dts/mediatek/mt8188.dtsi | 956 ++++++++++++++++++++ 3 files changed, 1344 insertions(+)create mode 100644
arch/arm64/boot/dts/mediatek/mt8188-evb.dtscreate mode 100644arch/arm64/boot/dts/mediatek/mt8188.dtsiarch/arm64/boot/dts/mediatek/Makefile +1
-0@@ -44,6 +44,7 @@ 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) += mt8188-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r5-sku2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb
..snip..
Quoted 7 lines
Quoted 7 lines
Order:
#address-cells = <1>;
#size-cells = <0>;
Quoted 9 lines
Quoted 2 lines
pinctrl-0 = <
&nor_pins_default>;
pinctrl-names = "default";I think pinctrl-names before pinctrl-* makes more sense. We declare the names and by extension how many pinctrl-N entries are needed first. The vast majority of the arm64 device tree files have pinctrl-names before pinctrl-N. The only platform that exclusively has pinctrl-N before pinctrl-names is amlogic.
AFAIK, people have it own logic explanation to justify order.
Personally, I use the dumb and generic one: pack related properties and alphabetical order.
Anyway, I don't have strong opinion of that
Quoted 3 lines
If there's a preference for a particular order platform-wide or tree-wide then it should probably be documented somewhere?
I'm agree
Quoted 89 lines
Quoted 1 line
status = "okay";
I think #address-cells and #size-cells belong at the end of the list, even after "status", just before any child nodes. They describe properties or requirements for the child nodes, not for the node they sit in.
Quoted 27 lines
Quoted 8 lines
arch/arm64/boot/dts/mediatek/Makefile +8
-0+ + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <52000000>; + }; +}; +..snip..
arch/arm64/boot/dts/mediatek/Makefile
Quoted 13 lines
arch/arm64/boot/dts/mediatek/Makefile +13
-0+ +&pmic { + interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; +}; + +&scp { + memory-region = <&scp_mem_reserved>; + status = "okay"; +}; + +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>;Order:
Quoted 4 lines
pinctrl-0 = <
&spi0_pins>;
pinctrl-names = "default";Please apply this to other nodes
See above.
ChenYu
Quoted 46 lines
Quoted 33 lines
arch/arm64/boot/dts/mediatek/Makefile +33
-0+ status = "okay"; +}; + +&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1_pins>; + status = "okay"; +}; + +&spi2 { + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins>; + status = "okay"; +}; + +&u3phy0 { + status = "okay"; +}; + +&u3phy1 { + status = "okay"; +}; + +&u3phy2 { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; + status = "okay"; +}; +..snip..
arch/arm64/boot/dts/mediatek/Makefile
Quoted 3 lines
arch/arm64/boot/dts/mediatek/Makefile +3
-0+ }; + }; +};After that:
Reviewed-by Alexandre Mergnat <[email protected]>--
Regards,
Alexandre
Signature · 2 lines
Regards, Alexandre
Quoted 9 lines · Jason-ch Chen
From: jason-ch chen <[email protected]>
MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.
This patchset was tested on MT8188 evaluation board to shell.
[...]
Applied, thanks!
[1/4] dt-bindings: arm: Add compatible for MediaTek MT8188
commit: 17bc1b4cc2709c05494d17356a6263f3f253a129
[2/4] dt-bindings: arm: mediatek: Add mt8188 pericfg compatible
commit: 1407001eabf44b3ae002abee4fc4d9f8a4090005
[3/4] dt-bindings: soc: mediatek: pwrap: Modify compatible for MT8188
commit: 07d03d9b5df233d3e47112df898f00958f4e763f
[4/4] arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile
commit: ff71e99d9d1c8943c62397e06df6507765b2d771Best regards,
Signature · 1 line
AngeloGioacchino Del Regno <[email protected]>