* [PATCH 1/6] dt-bindings: spi: mediatek,spi-mt65xx: Add MT8189
2026-11-28 14:14 [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Aryan Sinha
@ 2026-11-28 14:14 ` Aryan Sinha
2026-11-28 14:25 ` Mark Brown
2026-11-28 14:14 ` [PATCH 2/6] arm64: dts: mediatek: mt8189: Add SPI controllers Aryan Sinha
` (5 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Aryan Sinha @ 2026-11-28 14:14 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mark Brown, Tzung-Bi Shih,
Benson Leung
Cc: Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel, Aryan Sinha
The SPI controllers on MT8189 use the same IPM design as MT6991, so add
the MT8189 compatible with mediatek,mt6991-spi as the fallback, the same
way MT8196 does.
The vendor driver's MT8189 data differs from MT6991 only in not setting
must_tx. That makes no difference here, the driver then just supplies a
dummy TX buffer for RX-only transfers.
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml b/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml
index 3bf3eb1f8..34e833745 100644
--- a/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml
+++ b/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml
@@ -41,6 +41,7 @@ properties:
- const: mediatek,spi-ipm
- items:
- enum:
+ - mediatek,mt8189-spi
- mediatek,mt8196-spi
- const: mediatek,mt6991-spi
- items:
--
2.46.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 1/6] dt-bindings: spi: mediatek,spi-mt65xx: Add MT8189
2026-11-28 14:14 ` [PATCH 1/6] dt-bindings: spi: mediatek,spi-mt65xx: Add MT8189 Aryan Sinha
@ 2026-11-28 14:25 ` Mark Brown
0 siblings, 0 replies; 10+ messages in thread
From: Mark Brown @ 2026-11-28 14:25 UTC (permalink / raw)
To: Aryan Sinha
Cc: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Tzung-Bi Shih, Benson Leung,
Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
On Sat, Nov 28, 2026 at 07:44:25PM +0530, Aryan Sinha wrote:
> The SPI controllers on MT8189 use the same IPM design as MT6991, so add
> the MT8189 compatible with mediatek,mt6991-spi as the fallback, the same
> way MT8196 does.
Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/6] arm64: dts: mediatek: mt8189: Add SPI controllers
2026-11-28 14:14 [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Aryan Sinha
2026-11-28 14:14 ` [PATCH 1/6] dt-bindings: spi: mediatek,spi-mt65xx: Add MT8189 Aryan Sinha
@ 2026-11-28 14:14 ` Aryan Sinha
2026-11-28 14:14 ` [PATCH 3/6] arm64: dts: mediatek: mt8189: Add watchdog label Aryan Sinha
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Aryan Sinha @ 2026-11-28 14:14 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mark Brown, Tzung-Bi Shih,
Benson Leung
Cc: Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel, Aryan Sinha
MT8189 has six SPI controllers. Add them, disabled, so boards can enable
the ones they use. Chromebooks need this for the EC, which sits on SPI0.
The nodes follow the downstream ChromeOS kernel's mt8189.dtsi, with the
clock providers renamed to match this file.
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
arch/arm64/boot/dts/mediatek/mt8189.dtsi | 84 ++++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8189.dtsi b/arch/arm64/boot/dts/mediatek/mt8189.dtsi
index b64882a93..e0883da15 100644
--- a/arch/arm64/boot/dts/mediatek/mt8189.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8189.dtsi
@@ -484,6 +484,90 @@ uart3: serial@11004000 {
status = "disabled";
};
+ spi0: spi@11010800 {
+ compatible = "mediatek,mt8189-spi", "mediatek,mt6991-spi";
+ reg = <0 0x11010800 0 0x100>;
+ #address-cells = <1>;
+ clocks = <&topckgen CLK_TOP_UNIVPLL_D6_D2>,
+ <&topckgen CLK_TOP_SPI0_SEL>,
+ <&peri_ao CLK_PERAO_SPI0_B>,
+ <&peri_ao CLK_PERAO_SPI0_H>;
+ clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+ interrupts = <GIC_SPI 459 IRQ_TYPE_LEVEL_HIGH 0>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spi1: spi@11011800 {
+ compatible = "mediatek,mt8189-spi", "mediatek,mt6991-spi";
+ reg = <0 0x11011800 0 0x100>;
+ #address-cells = <1>;
+ clocks = <&topckgen CLK_TOP_UNIVPLL_D6_D2>,
+ <&topckgen CLK_TOP_SPI1_SEL>,
+ <&peri_ao CLK_PERAO_SPI1_B>,
+ <&peri_ao CLK_PERAO_SPI1_H>;
+ clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+ interrupts = <GIC_SPI 460 IRQ_TYPE_LEVEL_HIGH 0>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spi2: spi@11012800 {
+ compatible = "mediatek,mt8189-spi", "mediatek,mt6991-spi";
+ reg = <0 0x11012800 0 0x100>;
+ #address-cells = <1>;
+ clocks = <&topckgen CLK_TOP_UNIVPLL_D6_D2>,
+ <&topckgen CLK_TOP_SPI2_SEL>,
+ <&peri_ao CLK_PERAO_SPI2_B>,
+ <&peri_ao CLK_PERAO_SPI2_H>;
+ clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+ interrupts = <GIC_SPI 461 IRQ_TYPE_LEVEL_HIGH 0>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spi3: spi@11013800 {
+ compatible = "mediatek,mt8189-spi", "mediatek,mt6991-spi";
+ reg = <0 0x11013800 0 0x100>;
+ #address-cells = <1>;
+ clocks = <&topckgen CLK_TOP_UNIVPLL_D6_D2>,
+ <&topckgen CLK_TOP_SPI3_SEL>,
+ <&peri_ao CLK_PERAO_SPI3_B>,
+ <&peri_ao CLK_PERAO_SPI3_H>;
+ clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+ interrupts = <GIC_SPI 462 IRQ_TYPE_LEVEL_HIGH 0>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spi4: spi@11014800 {
+ compatible = "mediatek,mt8189-spi", "mediatek,mt6991-spi";
+ reg = <0 0x11014800 0 0x100>;
+ #address-cells = <1>;
+ clocks = <&topckgen CLK_TOP_UNIVPLL_D6_D2>,
+ <&topckgen CLK_TOP_SPI4_SEL>,
+ <&peri_ao CLK_PERAO_SPI4_B>,
+ <&peri_ao CLK_PERAO_SPI4_H>;
+ clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+ interrupts = <GIC_SPI 463 IRQ_TYPE_LEVEL_HIGH 0>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spi5: spi@11015800 {
+ compatible = "mediatek,mt8189-spi", "mediatek,mt6991-spi";
+ reg = <0 0x11015800 0 0x100>;
+ #address-cells = <1>;
+ clocks = <&topckgen CLK_TOP_UNIVPLL_D6_D2>,
+ <&topckgen CLK_TOP_SPI5_SEL>,
+ <&peri_ao CLK_PERAO_SPI5_B>,
+ <&peri_ao CLK_PERAO_SPI5_H>;
+ clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+ interrupts = <GIC_SPI 464 IRQ_TYPE_LEVEL_HIGH 0>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
auxadc: adc@11019000 {
compatible = "mediatek,mt8189-auxadc", "mediatek,mt8173-auxadc";
reg = <0 0x11019000 0 0x1000>;
--
2.46.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 3/6] arm64: dts: mediatek: mt8189: Add watchdog label
2026-11-28 14:14 [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Aryan Sinha
2026-11-28 14:14 ` [PATCH 1/6] dt-bindings: spi: mediatek,spi-mt65xx: Add MT8189 Aryan Sinha
2026-11-28 14:14 ` [PATCH 2/6] arm64: dts: mediatek: mt8189: Add SPI controllers Aryan Sinha
@ 2026-11-28 14:14 ` Aryan Sinha
2026-11-28 14:14 ` [PATCH 4/6] dt-bindings: arm: mediatek: Add Google Tarkin Aryan Sinha
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Aryan Sinha @ 2026-11-28 14:14 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mark Brown, Tzung-Bi Shih,
Benson Leung
Cc: Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel, Aryan Sinha
Chromebook board files need to set mediatek,disable-extrst on the
watchdog, like Geralt and Cherry do. Add a label so they can refer to
the node.
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
arch/arm64/boot/dts/mediatek/mt8189.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8189.dtsi b/arch/arm64/boot/dts/mediatek/mt8189.dtsi
index e0883da15..8c80a1b1e 100644
--- a/arch/arm64/boot/dts/mediatek/mt8189.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8189.dtsi
@@ -1014,7 +1014,7 @@ power-domain@MT8189_POWER_DOMAIN_PCIE_PHY {
};
};
- watchdog@1c00a000 {
+ watchdog: watchdog@1c00a000 {
compatible = "mediatek,mt8189-wdt", "mediatek,mt6589-wdt";
reg = <0 0x1c00a000 0 0x100>;
#reset-cells = <1>;
--
2.46.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 4/6] dt-bindings: arm: mediatek: Add Google Tarkin
2026-11-28 14:14 [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Aryan Sinha
` (2 preceding siblings ...)
2026-11-28 14:14 ` [PATCH 3/6] arm64: dts: mediatek: mt8189: Add watchdog label Aryan Sinha
@ 2026-11-28 14:14 ` Aryan Sinha
2026-11-28 14:14 ` [PATCH 5/6] arm64: dts: mediatek: Add MT8189 Skywalker platform based Tarkin Aryan Sinha
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Aryan Sinha @ 2026-11-28 14:14 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mark Brown, Tzung-Bi Shih,
Benson Leung
Cc: Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel, Aryan Sinha
Tarkin is a MT8189 based Chromebook from the Skywalker platform, sold by
ASUS as the CM1405 and CM1406.
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml
index 5a4779d9b..700dc4293 100644
--- a/Documentation/devicetree/bindings/arm/mediatek.yaml
+++ b/Documentation/devicetree/bindings/arm/mediatek.yaml
@@ -390,6 +390,10 @@ properties:
- enum:
- mediatek,mt8188-evb
- const: mediatek,mt8188
+ - description: Google Tarkin (ASUS Chromebook CM1405, CM1406)
+ items:
+ - const: google,tarkin
+ - const: mediatek,mt8189
- description: Google Hayato
items:
- const: google,hayato-rev1
--
2.46.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 5/6] arm64: dts: mediatek: Add MT8189 Skywalker platform based Tarkin
2026-11-28 14:14 [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Aryan Sinha
` (3 preceding siblings ...)
2026-11-28 14:14 ` [PATCH 4/6] dt-bindings: arm: mediatek: Add Google Tarkin Aryan Sinha
@ 2026-11-28 14:14 ` Aryan Sinha
2026-11-28 14:14 ` [PATCH 6/6] platform/chrome: of_hw_prober: Support trackpad probing on Tarkin Aryan Sinha
2026-11-28 14:39 ` [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Mark Brown
6 siblings, 0 replies; 10+ messages in thread
From: Aryan Sinha @ 2026-11-28 14:14 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mark Brown, Tzung-Bi Shih,
Benson Leung
Cc: Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel, Aryan Sinha
Tarkin is an ASUS Chromebook (CM1405, CM1406) built on Google's MT8189
Skywalker reference design. Add the common Skywalker dtsi and a board
file for Tarkin.
This covers what the MT8189 bindings support today: the debug UART,
eMMC and the SD slot, the PMIC, the EC on SPI0 with the keyboard,
battery and Type-C ports, the GSC TPM and the trackpad. Tarkin can have
a HID over I2C trackpad at 0x15 or an Elan one at 0x2c, so both are
marked fail-needs-probe and left to the ChromeOS hardware prober.
The EC resets the PMIC on these boards, so the watchdog external reset
is disabled, as on the other MediaTek Chromebooks.
Display, GPU, audio, USB, UFS and PCIe are left out until the SoC side
for them is upstream.
The Skywalker and Tarkin descriptions are based on mt8189-skywalker.dtsi
and mt8189-skywalker-tarkin.dts from the ChromeOS kernel.
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
arch/arm64/boot/dts/mediatek/Makefile | 1 +
.../dts/mediatek/mt8189-skywalker-tarkin.dts | 62 +++
.../boot/dts/mediatek/mt8189-skywalker.dtsi | 453 ++++++++++++++++++
3 files changed, 516 insertions(+)
create mode 100644 arch/arm64/boot/dts/mediatek/mt8189-skywalker-tarkin.dts
create mode 100644 arch/arm64/boot/dts/mediatek/mt8189-skywalker.dtsi
diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile
index e6a8109ff..cb8c01ea8 100644
--- a/arch/arm64/boot/dts/mediatek/Makefile
+++ b/arch/arm64/boot/dts/mediatek/Makefile
@@ -155,6 +155,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku4.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku5.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku6.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku7.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8189-skywalker-tarkin.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb
diff --git a/arch/arm64/boot/dts/mediatek/mt8189-skywalker-tarkin.dts b/arch/arm64/boot/dts/mediatek/mt8189-skywalker-tarkin.dts
new file mode 100644
index 000000000..5b76d0ca9
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt8189-skywalker-tarkin.dts
@@ -0,0 +1,62 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2025 Google Inc.
+ */
+
+/dts-v1/;
+#include "mt8189-skywalker.dtsi"
+
+/ {
+ model = "Google Tarkin board";
+ chassis-type = "laptop";
+ compatible = "google,tarkin", "mediatek,mt8189";
+};
+
+&i2c7 {
+ trackpad@2c {
+ compatible = "elan,ekth3000";
+ reg = <0x2c>;
+ interrupts-extended = <&pio 125 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&trackpad_pins>;
+ vcc-supply = <&pp3300_s3>;
+ wakeup-source;
+
+ status = "fail-needs-probe";
+ };
+};
+
+&i2c_tunnel {
+ /delete-node/ sbs-battery@b;
+
+ battery: sbs-battery@f {
+ compatible = "sbs,sbs-battery";
+ reg = <0xf>;
+ sbs,i2c-retry-count = <2>;
+ sbs,poll-retry-count = <10>;
+ };
+};
+
+&mmc0 {
+ vmmc-supply = <&mt6359_vemc_1_ldo_reg>;
+ vqmmc-supply = <&mt6359_vufs_ldo_reg>;
+
+ status = "okay";
+};
+
+&mmc1 {
+ status = "disabled";
+};
+
+&mt6359_vpa_buck_reg {
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <1000000>;
+};
+
+&mt6359_vufs_ldo_reg {
+ regulator-always-on;
+};
+
+&trackpad {
+ status = "fail-needs-probe";
+};
diff --git a/arch/arm64/boot/dts/mediatek/mt8189-skywalker.dtsi b/arch/arm64/boot/dts/mediatek/mt8189-skywalker.dtsi
new file mode 100644
index 000000000..f0c5a0da7
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt8189-skywalker.dtsi
@@ -0,0 +1,453 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2025 Google Inc.
+ */
+
+#include "mt8189.dtsi"
+#include "mt6359.dtsi"
+#include "mt8189-pinfunc.h"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+ aliases {
+ i2c3 = &i2c3;
+ i2c7 = &i2c7;
+ mmc0 = &mmc0;
+ mmc1 = &mmc1;
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ ppvar_sys: regulator-ppvar-sys {
+ compatible = "regulator-fixed";
+ regulator-name = "ppvar_sys";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ /* system wide 3.3V rail, controlled by the EC */
+ pp3300_z1: regulator-pp3300-z1 {
+ compatible = "regulator-fixed";
+ regulator-name = "pp3300_z1";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ vin-supply = <&ppvar_sys>;
+ };
+
+ /* separately switched 3.3V rail, controlled by the PMIC */
+ pp3300_s3: regulator-pp3300-s3 {
+ compatible = "regulator-fixed";
+ regulator-name = "pp3300_s3";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ vin-supply = <&pp3300_z1>;
+ };
+};
+
+&i2c3 {
+ clock-frequency = <400000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c3_pins>;
+
+ status = "okay";
+
+ tpm@50 {
+ compatible = "google,cr50";
+ reg = <0x50>;
+ interrupts-extended = <&pio 138 IRQ_TYPE_EDGE_RISING>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&gsc_int_pin>;
+ };
+};
+
+&i2c7 {
+ clock-frequency = <400000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c7_pins>;
+
+ status = "okay";
+
+ trackpad: trackpad@15 {
+ compatible = "hid-over-i2c";
+ reg = <0x15>;
+ hid-descr-addr = <0x0001>;
+ interrupts-extended = <&pio 125 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&trackpad_pins>;
+ post-power-on-delay-ms = <10>;
+ vdd-supply = <&pp3300_s3>;
+ wakeup-source;
+ };
+};
+
+&mmc0 {
+ bus-width = <8>;
+ cap-mmc-highspeed;
+ cap-mmc-hw-reset;
+ hs400-ds-delay = <0x1481b>;
+ max-frequency = <200000000>;
+ mmc-hs200-1_8v;
+ mmc-hs400-1_8v;
+ mmc-hs400-enhanced-strobe;
+ no-sd;
+ no-sdio;
+ non-removable;
+ pinctrl-names = "default", "state_uhs";
+ pinctrl-0 = <&mmc0_pins_default>;
+ pinctrl-1 = <&mmc0_pins_uhs>;
+ supports-cqe;
+};
+
+&mmc1 {
+ bus-width = <4>;
+ cap-sd-highspeed;
+ cd-gpios = <&pio 136 GPIO_ACTIVE_LOW>;
+ max-frequency = <200000000>;
+ no-mmc;
+ no-sdio;
+ pinctrl-names = "default", "state_uhs";
+ pinctrl-0 = <&mmc1_pins_default>;
+ pinctrl-1 = <&mmc1_pins_uhs>;
+ sd-uhs-sdr50;
+ sd-uhs-sdr104;
+ vmmc-supply = <&mt6359_vpa_buck_reg>;
+ vqmmc-supply = <&mt6359_vsim1_ldo_reg>;
+ mediatek,tuning-step = <64>;
+
+ status = "okay";
+};
+
+/*
+ * Rails the bootloader turns on that no driver here claims. Keep them on
+ * so they survive the regulator core disabling unused supplies.
+ */
+&mt6359_va09_ldo_reg {
+ regulator-always-on;
+};
+
+&mt6359_vaux18_ldo_reg {
+ regulator-always-on;
+};
+
+&mt6359_vbbck_ldo_reg {
+ regulator-always-on;
+};
+
+&mt6359_vgpu11_buck_reg {
+ regulator-always-on;
+};
+
+&mt6359_vmodem_buck_reg {
+ regulator-always-on;
+};
+
+&mt6359_vpa_buck_reg {
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3000000>;
+};
+
+&mt6359_vproc2_buck_reg {
+ regulator-always-on;
+};
+
+&mt6359_vpu_buck_reg {
+ regulator-always-on;
+};
+
+&mt6359_vrf12_ldo_reg {
+ regulator-always-on;
+};
+
+&mt6359_vrfck_ldo_reg {
+ regulator-always-on;
+};
+
+&mt6359_vsram_md_ldo_reg {
+ regulator-always-on;
+};
+
+&mt6359_vsram_proc2_ldo_reg {
+ regulator-always-on;
+};
+
+&pio {
+ uart0_pins: uart0-pins {
+ pins-bus {
+ pinmux = <PINMUX_GPIO31__FUNC_UTXD0>,
+ <PINMUX_GPIO32__FUNC_URXD0>;
+ bias-pull-up;
+ };
+ };
+
+ i2c3_pins: i2c3-pins {
+ pins-bus {
+ pinmux = <PINMUX_GPIO57__FUNC_SCL3>,
+ <PINMUX_GPIO58__FUNC_SDA3>;
+ bias-disable;
+ };
+ };
+
+ i2c7_pins: i2c7-pins {
+ pins-bus {
+ pinmux = <PINMUX_GPIO65__FUNC_SCL7>,
+ <PINMUX_GPIO66__FUNC_SDA7>;
+ bias-disable;
+ drive-strength = <4>;
+ };
+ };
+
+ spi0_pins: spi0-pins {
+ pins-bus {
+ pinmux = <PINMUX_GPIO69__FUNC_SPIM0_CSB>,
+ <PINMUX_GPIO70__FUNC_SPIM0_CLK>,
+ <PINMUX_GPIO71__FUNC_SPIM0_MO>,
+ <PINMUX_GPIO72__FUNC_SPIM0_MI>;
+ };
+ };
+
+ ec_int_pins: ec-int-pins {
+ pins-int {
+ pinmux = <PINMUX_GPIO132__FUNC_GPIO132>;
+ bias-disable;
+ input-enable;
+ };
+ };
+
+ gsc_int_pin: gsc-int-pins {
+ pins-int {
+ pinmux = <PINMUX_GPIO138__FUNC_GPIO138>;
+ input-enable;
+ };
+ };
+
+ trackpad_pins: trackpad-pins {
+ pins-int {
+ pinmux = <PINMUX_GPIO125__FUNC_GPIO125>;
+ bias-disable;
+ input-enable;
+ };
+ };
+
+ mmc0_pins_default: mmc0-default-pins {
+ pins-cmd-dat {
+ pinmux = <PINMUX_GPIO156__FUNC_MSDC0_DAT7>,
+ <PINMUX_GPIO157__FUNC_MSDC0_DAT6>,
+ <PINMUX_GPIO158__FUNC_MSDC0_DAT5>,
+ <PINMUX_GPIO159__FUNC_MSDC0_DAT4>,
+ <PINMUX_GPIO161__FUNC_MSDC0_CMD>,
+ <PINMUX_GPIO163__FUNC_MSDC0_DAT3>,
+ <PINMUX_GPIO164__FUNC_MSDC0_DAT2>,
+ <PINMUX_GPIO165__FUNC_MSDC0_DAT1>,
+ <PINMUX_GPIO166__FUNC_MSDC0_DAT0>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
+ drive-strength = <6>;
+ input-enable;
+ };
+ pins-clk {
+ pinmux = <PINMUX_GPIO162__FUNC_MSDC0_CLK>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
+ drive-strength = <6>;
+ };
+ pins-rst {
+ pinmux = <PINMUX_GPIO160__FUNC_MSDC0_RSTB>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_00>;
+ drive-strength = <6>;
+ };
+ };
+
+ mmc0_pins_uhs: mmc0-uhs-pins {
+ pins-cmd-dat {
+ pinmux = <PINMUX_GPIO156__FUNC_MSDC0_DAT7>,
+ <PINMUX_GPIO157__FUNC_MSDC0_DAT6>,
+ <PINMUX_GPIO158__FUNC_MSDC0_DAT5>,
+ <PINMUX_GPIO159__FUNC_MSDC0_DAT4>,
+ <PINMUX_GPIO161__FUNC_MSDC0_CMD>,
+ <PINMUX_GPIO163__FUNC_MSDC0_DAT3>,
+ <PINMUX_GPIO164__FUNC_MSDC0_DAT2>,
+ <PINMUX_GPIO165__FUNC_MSDC0_DAT1>,
+ <PINMUX_GPIO166__FUNC_MSDC0_DAT0>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
+ drive-strength = <8>;
+ input-enable;
+ };
+ pins-clk {
+ pinmux = <PINMUX_GPIO162__FUNC_MSDC0_CLK>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
+ drive-strength = <8>;
+ };
+ pins-ds {
+ pinmux = <PINMUX_GPIO167__FUNC_MSDC0_DSL>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
+ drive-strength = <8>;
+ };
+ pins-rst {
+ pinmux = <PINMUX_GPIO160__FUNC_MSDC0_RSTB>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_00>;
+ };
+ };
+
+ mmc1_pins_default: mmc1-default-pins {
+ pins-cmd-dat {
+ pinmux = <PINMUX_GPIO168__FUNC_MSDC1_CMD>,
+ <PINMUX_GPIO170__FUNC_MSDC1_DAT0>,
+ <PINMUX_GPIO171__FUNC_MSDC1_DAT1>,
+ <PINMUX_GPIO172__FUNC_MSDC1_DAT2>,
+ <PINMUX_GPIO173__FUNC_MSDC1_DAT3>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
+ drive-strength = <8>;
+ input-enable;
+ };
+
+ pins-clk {
+ pinmux = <PINMUX_GPIO169__FUNC_MSDC1_CLK>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
+ drive-strength = <8>;
+ };
+
+ pins-insert {
+ pinmux = <PINMUX_GPIO136__FUNC_GPIO136>;
+ bias-pull-up;
+ input-enable;
+ };
+ };
+
+ mmc1_pins_uhs: mmc1-uhs-pins{
+ pins-cmd-dat {
+ pinmux = <PINMUX_GPIO168__FUNC_MSDC1_CMD>,
+ <PINMUX_GPIO170__FUNC_MSDC1_DAT0>,
+ <PINMUX_GPIO171__FUNC_MSDC1_DAT1>,
+ <PINMUX_GPIO172__FUNC_MSDC1_DAT2>,
+ <PINMUX_GPIO173__FUNC_MSDC1_DAT3>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
+ drive-strength = <8>;
+ input-enable;
+ };
+
+ pins-clk {
+ pinmux = <PINMUX_GPIO169__FUNC_MSDC1_CLK>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
+ drive-strength = <8>;
+ };
+ };
+
+};
+
+&pmic {
+ interrupts-extended = <&pio 194 IRQ_TYPE_LEVEL_HIGH>;
+};
+
+&spi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi0_pins>;
+ mediatek,pad-select = <0>;
+
+ status = "okay";
+
+ cros_ec: ec@0 {
+ compatible = "google,cros-ec-spi";
+ reg = <0>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ interrupts-extended = <&pio 132 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&ec_int_pins>;
+ spi-max-frequency = <3000000>;
+
+ i2c_tunnel: i2c-tunnel {
+ compatible = "google,cros-ec-i2c-tunnel";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ google,remote-bus = <4>;
+ };
+
+ typec {
+ compatible = "google,cros-ec-ucsi";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ usb_c0: connector@0 {
+ compatible = "usb-c-connector";
+ reg = <0>;
+ data-role = "host";
+ label = "left";
+ power-role = "dual";
+ try-power-role = "source";
+ };
+
+ usb_c1: connector@1 {
+ compatible = "usb-c-connector";
+ reg = <1>;
+ data-role = "host";
+ label = "right";
+ power-role = "dual";
+ try-power-role = "source";
+ };
+ };
+ };
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins>;
+
+ status = "okay";
+};
+
+&watchdog {
+ mediatek,disable-extrst;
+};
+
+#include <arm/cros-ec-keyboard.dtsi>
+#include <arm/cros-ec-sbs.dtsi>
+
+&keyboard_controller {
+ keypad,num-columns = <15>;
+
+ function-row-physmap = <
+ MATRIX_KEY(0x00, 0x02, 0) /* T1 */
+ MATRIX_KEY(0x03, 0x02, 0) /* T2 */
+ MATRIX_KEY(0x02, 0x02, 0) /* T3 */
+ MATRIX_KEY(0x01, 0x02, 0) /* T4 */
+ MATRIX_KEY(0x03, 0x04, 0) /* T5 */
+ MATRIX_KEY(0x02, 0x04, 0) /* T6 */
+ MATRIX_KEY(0x01, 0x04, 0) /* T7 */
+ MATRIX_KEY(0x02, 0x09, 0) /* T8 */
+ MATRIX_KEY(0x01, 0x09, 0) /* T9 */
+ MATRIX_KEY(0x00, 0x04, 0) /* T10 */
+ MATRIX_KEY(0x00, 0x01, 0) /* T11 */
+ MATRIX_KEY(0x01, 0x05, 0) /* T12 */
+ >;
+
+ linux,keymap = <
+ CROS_STD_MAIN_KEYMAP
+ MATRIX_KEY(0x00, 0x02, KEY_BACK) /* T1 */
+ MATRIX_KEY(0x03, 0x02, KEY_REFRESH) /* T2 */
+ MATRIX_KEY(0x02, 0x02, KEY_ZOOM) /* T3 */
+ MATRIX_KEY(0x01, 0x02, KEY_SCALE) /* T4 */
+ MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) /* T5 */
+ MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) /* T6 */
+ MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) /* T7 */
+ MATRIX_KEY(0x02, 0x09, KEY_MUTE) /* T8 */
+ MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) /* T9 */
+ MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) /* T10 */
+ MATRIX_KEY(0x00, 0x01, KEY_MICMUTE) /* T11 */
+ MATRIX_KEY(0x01, 0x05, KEY_CONTROLPANEL) /* T12 */
+ MATRIX_KEY(0x03, 0x05, KEY_PREVIOUSSONG) /* T13 */
+ MATRIX_KEY(0x00, 0x09, KEY_PLAYPAUSE) /* T14 */
+ MATRIX_KEY(0x00, 0x0b, KEY_NEXTSONG) /* T15 */
+ MATRIX_KEY(0x03, 0x00, KEY_LEFTMETA) /* Search */
+ MATRIX_KEY(0x01, 0x0e, KEY_LEFTCTRL) /* Left Control */
+ MATRIX_KEY(0x06, 0x0d, KEY_LEFTALT) /* Left Alt */
+ MATRIX_KEY(0x03, 0x0e, KEY_RIGHTCTRL) /* Right Control */
+ MATRIX_KEY(0x06, 0x0a, KEY_BACKSLASH) /* Backslash */
+ >;
+};
--
2.46.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 6/6] platform/chrome: of_hw_prober: Support trackpad probing on Tarkin
2026-11-28 14:14 [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Aryan Sinha
` (4 preceding siblings ...)
2026-11-28 14:14 ` [PATCH 5/6] arm64: dts: mediatek: Add MT8189 Skywalker platform based Tarkin Aryan Sinha
@ 2026-11-28 14:14 ` Aryan Sinha
2026-11-28 14:39 ` [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Mark Brown
6 siblings, 0 replies; 10+ messages in thread
From: Aryan Sinha @ 2026-11-28 14:14 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mark Brown, Tzung-Bi Shih,
Benson Leung
Cc: Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel, Aryan Sinha
Tarkin ships with either a Pixart or an Elan trackpad on the same bus.
Both are always powered and expose no reset or enable line, so the dumb
prober can pick whichever one answers, as it does on the Corsola boards.
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
drivers/platform/chrome/chromeos_of_hw_prober.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/platform/chrome/chromeos_of_hw_prober.c b/drivers/platform/chrome/chromeos_of_hw_prober.c
index 54d894161..215fa9adc 100644
--- a/drivers/platform/chrome/chromeos_of_hw_prober.c
+++ b/drivers/platform/chrome/chromeos_of_hw_prober.c
@@ -111,6 +111,10 @@ static const struct hw_prober_entry hw_prober_platforms[] = {
.compatible = "google,steelix",
.prober = chromeos_i2c_component_prober,
.data = &chromeos_i2c_probe_dumb_trackpad,
+ }, {
+ .compatible = "google,tarkin",
+ .prober = chromeos_i2c_component_prober,
+ .data = &chromeos_i2c_probe_dumb_trackpad,
}, {
.compatible = "google,voltorb",
.prober = chromeos_i2c_component_prober,
--
2.46.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook
2026-11-28 14:14 [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Aryan Sinha
` (5 preceding siblings ...)
2026-11-28 14:14 ` [PATCH 6/6] platform/chrome: of_hw_prober: Support trackpad probing on Tarkin Aryan Sinha
@ 2026-11-28 14:39 ` Mark Brown
2026-11-28 15:17 ` Aryan Sinha
6 siblings, 1 reply; 10+ messages in thread
From: Mark Brown @ 2026-11-28 14:39 UTC (permalink / raw)
To: Aryan Sinha
Cc: AngeloGioacchino Del Regno, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Tzung-Bi Shih, Benson Leung,
Leilk Liu, Sean Wang, Louis-Alexis Eyraud, Chen-Yu Tsai,
devicetree, linux-spi, linux-mediatek, linux-arm-kernel,
chrome-platform, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
On Sat, Nov 28, 2026 at 07:44:24PM +0530, Aryan Sinha wrote:
> This series adds initial support for Tarkin, an ASUS Chromebook (CM1405,
> CM1406) on Google's MT8189 (Kompanio 540) Skywalker platform.
This doesn't apply against current code, please check and resend.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook
2026-11-28 14:39 ` [PATCH 0/6] arm64: dts: mediatek: Add MT8189 Skywalker based Tarkin Chromebook Mark Brown
@ 2026-11-28 15:17 ` Aryan Sinha
0 siblings, 0 replies; 10+ messages in thread
From: Aryan Sinha @ 2026-11-28 15:17 UTC (permalink / raw)
To: Mark Brown
Cc: AngeloGioacchino Del Regno, Matthias Brugger, linux-spi,
linux-mediatek, linux-kernel
On Sat, Nov 28, 2026 at 02:39 PM UTC, Mark Brown wrote:
> This doesn't apply against current code, please check and resend.
Sorry about that, the dts patches depend on the Genio 520/720-EVK series
which is not merged yet. I have resent the SPI binding on its own with the
subject fixed, it applies to your tree now. The rest will go to the
MediaTek folks without you in Cc.
Thanks,
Aryan
^ permalink raw reply [flat|nested] 10+ messages in thread