From dd6fca41e9299dc64fba9fdf296b0dc3343ae1b0 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Sun, 22 Nov 2026 00:58:02 +0200 Subject: [PATCH] arm64: dts: mediatek: add Geminux Gemini PDA board devicetree (cherry picked from commit 2be3b7a313f772a476ad08b8cb461c2252894be5) (cherry picked from commit 4af433433317ce97b12a7376064a45bee75ed316) (cherry picked from commit f2f4795496329352910716c5f46ac82446e05e8b) --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt6797-gemini-pda-geminux.dts | 233 ++++++++++++++++++ 2 files changed, 234 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6797-gemini-pda-geminux.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index c3dd14a03..0531883b6 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -15,6 +15,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-gemini-pda-wifi-service.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-gemini-pda-station.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-gemini-pda-station-a72.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-gemini-pda-station-dvfs.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-gemini-pda-geminux.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt6797-gemini-pda-geminux.dts b/arch/arm64/boot/dts/mediatek/mt6797-gemini-pda-geminux.dts new file mode 100644 index 000000000..0497766c8 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt6797-gemini-pda-geminux.dts @@ -0,0 +1,233 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Planet Computers Gemini PDA (MT6797X 4G+WiFi) Device Tree for Geminux. + * + * Extends ixoo's station-a72 description with: + * - Canonical /memory node name so MediaTek LK updates ATAG DRAM banks in-place + * - Staged CCCI/CLDMA modem interface (SPM/INFRA controlled by driver) + * - MT6351 VSIM1/VSIM2 dual-SIM regulator definitions (disabled at boot) + * - SiI9024A HDMI transmitter / DPI0 nodes disabled until ext_path support + * - All 10 CPU core clock-frequency properties preserved from base DTS + */ + +#include "mt6797-gemini-pda-station-a72.dts" + +/ { + /delete-node/ memory@40000000; + + memory { + device_type = "memory"; + reg = <0 0x40000000 0 0x40000000>; + }; + + mt6797_ccci: modem-cldma@10014000 { + compatible = "mediatek,mt6797-ccci-cldma"; + reg = <0 0x10014000 0 0x1e00>, + <0 0x10219000 0 0x1e00>, + <0 0x10209000 0 0x1000>; + reg-names = "ap-cldma-ao", "ap-cldma-pdn", "ap-ccif0"; + interrupts = , + , + ; + interrupt-names = "cldma", "ccif0", "md-wdt"; + mediatek,infracfg = <&infrasys>; + mediatek,spm = <&scpsys>; + wakeup-source; + status = "okay"; + }; + + sii902x_1v2: regulator-sii902x-1v2 { + compatible = "regulator-fixed"; + regulator-name = "hdmi-1v2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + gpio = <&pio 247 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names = "default"; + pinctrl-0 = <&sii902x_1v2_pins>; + }; + + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&disp_pwm 0 500000>; + brightness-levels = <0 255>; + num-interpolated-steps = <255>; + default-brightness-level = <200>; + }; +}; + +&mt6351regulator { + mt6351_vsim1_reg: ldo-vsim1 { + regulator-name = "vsim1"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <3100000>; + }; + + mt6351_vsim2_reg: ldo-vsim2 { + regulator-name = "vsim2"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <3100000>; + }; + + mt6351_vusb33_reg: ldo-vusb33 { + regulator-name = "vusb33"; + regulator-always-on; + }; + + mt6351_vldo28_reg: ldo-vldo28 { + regulator-name = "vldo28"; + regulator-always-on; + }; +}; + +&pio { + sii902x_1v2_pins: sii902x-1v2-pins { + pins-en { + pinmux = ; + }; + }; + + sii902x_pins: sii902x-pins { + pins-rst { + pinmux = ; + }; + + pins-irq { + pinmux = ; + }; + }; + + dpi0_pins_default: dpi0-default-pins { + pins-bus { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + + dpi0_pins_sleep: dpi0-sleep-pins { + pins-gpio { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + output-low; + }; + }; +}; + +/* mtk_mmsys_driver_data only defines .main_path (DSI0); keep DPI0/HDMI off at boot. */ +&dpi0 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&dpi0_pins_default>; + pinctrl-1 = <&dpi0_pins_sleep>; + /delete-property/ power-domains; + status = "disabled"; +}; + +&dpi0_out { + dpi0_out_ep: endpoint { + remote-endpoint = <&sii902x_in_ep>; + }; +}; + +&i2c3 { + hdmi-bridge@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + pinctrl-names = "default"; + pinctrl-0 = <&sii902x_pins>; + reset-gpios = <&pio 57 GPIO_ACTIVE_LOW>; + interrupt-parent = <&pio>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + cvcc12-supply = <&sii902x_1v2>; + iovcc-supply = <&mt6351_vio18_reg>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + sii902x_in_ep: endpoint { + remote-endpoint = <&dpi0_out_ep>; + }; + }; + }; + }; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + clock-frequency = <400000>; + status = "okay"; +}; + +&disp_pwm { + /delete-property/ power-domains; + status = "okay"; +}; + +&{/i2c@11008000/typec@25/connector} { + /delete-node/ port; +}; + +&ssusb { + dr_mode = "peripheral"; + vusb33-supply = <&mt6351_vusb33_reg>; + /delete-property/ usb-role-switch; + /delete-property/ role-switch-default-mode; + /delete-node/ port; +}; + +&dsi0 { + panel@0 { + backlight = <&backlight>; + }; +}; + +&hall_gpio_keys { + status = "okay"; +}; + +&{/i2c@11007000/charger@6b} { + linux,guard-end-threshold = <100>; +}; + +&i2c4 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c4_pins_a>; + + touchscreen@62 { + vcc-supply = <&mt6351_vldo28_reg>; + reset-gpios = <&pio 68 GPIO_ACTIVE_LOW>; + }; +}; -- 2.55.0