dt-bindings: arm64: dts: mediatek: add mt8390-evk board
Subsystems (2)
PATCH 1/2 dt-bindings: arm64: dts: mediatek: add mt8390-evk board
1. Add compatible for MT8390.
2. Add bindings for the MediaTek mt8390-evk board, also known as the "Genio 700-EVK".
The MT8390 and MT8188 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.
The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.
--- Documentation/devicetree/bindings/arm/mediatek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
dependencies for v1:
- This patch should be applied after the following patch set
- mt8365's bindings
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8395's bindings
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188's bindings
- https://lore.kernel.org/lkml/[email protected]/T/
Documentation/devicetree/bindings/arm/mediatek.yaml +6 -0
@@ -251,6 +251,12 @@ properties: - items: - const: mediatek,mt8365-evk - const: mediatek,mt8365 + - description: MediaTek Genio 700 Boards (Genio 700 EVK) + items: + - enum: + - mediatek,mt8390-evk + - const: mediatek,mt8390 + - const: mediatek,mt8188 - description: MediaTek Genio 1200 Boards (Genio 1200 EVK) items: - enum:
Signature · 1 line
2.18.0
PATCH 2/2 arm64: dts: mediatek: add device-tree for Genio 700 EVK board
Add basic device-tree for the Genio 700 EVK board. The Genio 700 EVK is based on MediaTek MT8390 SoC. MT8390 hardware register maps are identical to MT8188.
The Genio 700 EVK has following features:
- MT8390 SoC
- MT6365 PMIC
- MT6319 Buck IC
- 12V DC Jack
- 2x4GB LPDDR4X
- 64GB eMMC 5.1
- 64Mb SPI NOR
- M.2 Key A-E slot with PCIe Gen2 and USB 2.0
- 2x DSI LCM ports
- 2x touch sensor ports
- 2x MIPI-CSI, as camera daughter board slots
- USB 2 micro USB connector
- USB 3 with 1 to 2 hub:
- M.2 Key B slot
- Type-C connector, with DisplayPort over Type-C
- HDMI 2.0 TX port with Type A HDMI connector
- eDP port
- Gigabit Ethernet with RJ45 connector
- SD card slot
- Earphone Jack
- Analog Microphone
- 2x Digital Microphone
- 3x UART with serial-to-usb converters and micro USB connectors
--- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../dts/mediatek/mt8390-genio-700-evk.dts | 880 ++++++++++++++++++ 2 files changed, 881 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
dependencies for v1:
- This patch should be applied after the following patch set
- mt8365-gneio-350-evk's dts change (v4)
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8395-genio-1200-evk's dts basic support (v6)
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188 platform's basic support
- https://lore.kernel.org/lkml/[email protected]/T/
arch/arm64/boot/dts/mediatek/Makefile +1 -0
@@ -54,5 +54,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r3.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8365-genio-350-evk.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8390-genio-700-evk.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-genio-1200-evk.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +880 -0
880 lines not on this page · raw message
Signature · 1 line
2.18.0
Re: [PATCH 2/2] arm64: dts: mediatek: add device-tree for Genio 700 EVK board
Quoted 6 lines · Macpaul Lin
Add basic device-tree for the Genio 700 EVK board. The Genio 700 EVK is based on MediaTek MT8390 SoC. MT8390 hardware register maps are identical to MT8188.
The Genio 700 EVK has following features:
...
Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +6
-0+ + sdio_fixed_1v8: regulator-3 { + compatible = "regulator-fixed"; + regulator-name = "sdio_io"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>;
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts line 133
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +10
-0+ enable-active-high; + regulator-always-on; + }; + + sdio_fixed_3v3: regulator-4 { + compatible = "regulator-fixed"; + regulator-name = "sdio_card"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 74 0>;
Use proper defines.
Quoted 92 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +92
-0+ enable-active-high; + regulator-always-on; + }; + + touch0_fixed_3v3: regulator-5 { + compatible = "regulator-fixed"; + regulator-name = "touch_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 119 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + usb_hub_fixed_3v3: regulator-6 { + compatible = "regulator-fixed"; + regulator-name = "usb_hub_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 112 0>; /* HUB_3V3_EN */ + startup-delay-us = <10000>; + enable-active-high; + }; + + usb_hub_reset_1v8: regulator-7 { + compatible = "regulator-fixed"; + regulator-name = "usb_hub_reset"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&pio 7 0>; /* HUB_RESET */ + vin-supply = <&usb_hub_fixed_3v3>; + }; + + usb_p0_vbus: regulator-8 { + compatible = "regulator-fixed"; + regulator-name = "usb_p0_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&pio 84 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + usb_p1_vbus: regulator-9 { + compatible = "regulator-fixed"; + regulator-name = "usb_p1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&pio 87 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + usb_p2_vbus: regulator-10 { + compatible = "regulator-fixed"; + regulator-name = "usb_p2_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + }; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + clock-frequency = <400000>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt9271"; + reg = <0x5d>; + interrupt-parent = <&pio>; + interrupts = <6 IRQ_TYPE_EDGE_RISING>; + irq-gpios = <&pio 6 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>; + AVDD28-supply = <&touch0_fixed_3v3>; + VDDIO-supply = <&mt6359_vio18_ldo_reg>; + pinctrl-names = "default"; + pinctrl-0 = <&touch_pins>; + }; +}; + +&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"; +};
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts line 235
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +10
-0+ +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default", "default";
Why do you need two default entries? This should be just one, shouldn't it?
Best regards,
Krzysztof
Re: [PATCH 2/2] arm64: dts: mediatek: add device-tree for Genio 700 EVK board
Quoted 25 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 6 lines · Macpaul Lin
Add basic device-tree for the Genio 700 EVK board. The Genio 700 EVK is based on MediaTek MT8390 SoC. MT8390 hardware register maps are identical to MT8188.
The Genio 700 EVK has following features:
...
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +10
-0+ +sdio_fixed_1v8: regulator-3 { +compatible = "regulator-fixed"; +regulator-name = "sdio_io"; +regulator-min-microvolt = <1800000>; +regulator-max-microvolt = <1800000>; +enable-active-high; +regulator-always-on; +}; +
Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts line 133
Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +6
-0+sdio_fixed_3v3: regulator-4 { +compatible = "regulator-fixed"; +regulator-name = "sdio_card"; +regulator-min-microvolt = <3300000>; +regulator-max-microvolt = <3300000>; +gpio = <&pio 74 0>;Use proper defines.
Fixed remaining 3 defines of gpio value, will send v2.
Quoted 96 lines
Quoted 96 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +96
-0+enable-active-high; +regulator-always-on; +}; + +touch0_fixed_3v3: regulator-5 { +compatible = "regulator-fixed"; +regulator-name = "touch_3v3"; +regulator-min-microvolt = <3300000>; +regulator-max-microvolt = <3300000>; +gpio = <&pio 119 GPIO_ACTIVE_HIGH>; +enable-active-high; +}; + +usb_hub_fixed_3v3: regulator-6 { +compatible = "regulator-fixed"; +regulator-name = "usb_hub_3v3"; +regulator-min-microvolt = <3300000>; +regulator-max-microvolt = <3300000>; +gpio = <&pio 112 0>; /* HUB_3V3_EN */ +startup-delay-us = <10000>; +enable-active-high; +}; + +usb_hub_reset_1v8: regulator-7 { +compatible = "regulator-fixed"; +regulator-name = "usb_hub_reset"; +regulator-min-microvolt = <1800000>; +regulator-max-microvolt = <1800000>; +gpio = <&pio 7 0>; /* HUB_RESET */ +vin-supply = <&usb_hub_fixed_3v3>; +}; + +usb_p0_vbus: regulator-8 { +compatible = "regulator-fixed"; +regulator-name = "usb_p0_vbus"; +regulator-min-microvolt = <5000000>; +regulator-max-microvolt = <5000000>; +gpio = <&pio 84 GPIO_ACTIVE_HIGH>; +enable-active-high; +}; + +usb_p1_vbus: regulator-9 { +compatible = "regulator-fixed"; +regulator-name = "usb_p1_vbus"; +regulator-min-microvolt = <5000000>; +regulator-max-microvolt = <5000000>; +gpio = <&pio 87 GPIO_ACTIVE_HIGH>; +enable-active-high; +}; + +usb_p2_vbus: regulator-10 { +compatible = "regulator-fixed"; +regulator-name = "usb_p2_vbus"; +regulator-min-microvolt = <5000000>; +regulator-max-microvolt = <5000000>; +enable-active-high; +}; +}; + +&i2c0 { +pinctrl-names = "default"; +pinctrl-0 = <&i2c0_pins>; +clock-frequency = <400000>; +status = "okay"; + +touchscreen@5d { +compatible = "goodix,gt9271"; +reg = <0x5d>; +interrupt-parent = <&pio>; +interrupts = <6 IRQ_TYPE_EDGE_RISING>; +irq-gpios = <&pio 6 GPIO_ACTIVE_HIGH>; +reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>; +AVDD28-supply = <&touch0_fixed_3v3>; +VDDIO-supply = <&mt6359_vio18_ldo_reg>; +pinctrl-names = "default"; +pinctrl-0 = <&touch_pins>; +}; +}; + +&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>;
Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts line 235
Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts new file +6
-0+clock-frequency = <400000>; +status = "okay"; +}; + +&i2c4 { +pinctrl-names = "default", "default";Why do you need two default entries? This should be just one, shouldn't it?
Fixed.
Quoted 3 lines
Best regards,
Krzysztof
Thanks for the review.
Best regards,
Macpaul Lin
Quoted 31 lines · Macpaul Lin
1. Add compatible for MT8390.
2. Add bindings for the MediaTek mt8390-evk board, also known as the "Genio 700-EVK".The MT8390 and MT8188 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.
The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.
Signed-off-by Macpaul Lin <[email protected]>--- Documentation/devicetree/bindings/arm/mediatek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)dependencies for v1:
- This patch should be applied after the following patch set
- mt8365's bindings
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8395's bindings
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188's bindings
- https://lore.kernel.org/lkml/[email protected]/T/Documentation/devicetree/bindings/arm/mediatek.yaml +0
-0
Documentation/devicetree/bindings/arm/mediatek.yaml properties: · line 254
Quoted 4 lines
Documentation/devicetree/bindings/arm/mediatek.yaml +1
-0@@ -251,6 +251,12 @@ properties: - items: - const: mediatek,mt8365-evk - const: mediatek,mt8365 + - description: MediaTek Genio 700 Boards (Genio 700 EVK)
We had a long discussion, so again: drop description.
Best regards,
Krzysztof
Quoted 30 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 26 lines · Macpaul Lin
1. Add compatible for MT8390.
2. Add bindings for the MediaTek mt8390-evk board, also known as the "Genio 700-EVK".The MT8390 and MT8188 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.
The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.
Signed-off-by Macpaul Lin <[email protected]>--- Documentation/devicetree/bindings/arm/mediatek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)dependencies for v1:
- This patch should be applied after the following patch set
- mt8365's bindings
- https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
- mt8395's bindings
- https://lore.kernel.org/lkml/[email protected]/T/
- mt8188's bindings
- https://lore.kernel.org/lkml/[email protected]/T/
Quoted 12 lines
Documentation/devicetree/bindings/arm/mediatek.yaml properties: · line 254
Quoted 9 lines
Documentation/devicetree/bindings/arm/mediatek.yaml +1
-0@@ -251,6 +251,12 @@ properties: - items: - const: mediatek,mt8365-evk - const: mediatek,mt8365 + - description: MediaTek Genio 700 Boards (Genio 700 EVK)We had a long discussion, so again: drop description.
Okay, will drop description and send v2 series.
Quoted 2 lines
Best regards,
Krzysztof
Thanks
Macpaul Lin