Skip to content

Commit 85c767d

Browse files
wensAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mediatek: mt8186: Add Squirtle Chromebooks
Add a device tree for the MT8186 based Squirtle Chromebooks, also known as the Acer Chromebook Spin 311 (R724T). The device is a 2-in-1 convertible. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20250617082004.1653492-7-wenst@chromium.org Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 57ac6f8 commit 85c767d

3 files changed

Lines changed: 109 additions & 1 deletion

File tree

arch/arm64/boot/dts/mediatek/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-magneton-sku393218.dtb
6868
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-ponyta-sku0.dtb
6969
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-ponyta-sku1.dtb
7070
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-rusty-sku196608.dtb
71+
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-squirtle.dtb
7172
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-starmie-sku0.dtb
7273
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-starmie-sku1.dtb
7374
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-steelix-sku131072.dtb
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
/*
3+
* Copyright 2024 Google LLC
4+
*/
5+
6+
/dts-v1/;
7+
#include "mt8186-corsola-voltorb.dtsi"
8+
9+
/ {
10+
model = "Google squirtle board";
11+
compatible = "google,squirtle", "mediatek,mt8186";
12+
chassis-type = "convertible";
13+
};
14+
15+
&i2c1 {
16+
touchscreen@10 {
17+
compatible = "elan,ekth6915";
18+
reg = <0x10>;
19+
interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>;
20+
pinctrl-names = "default";
21+
pinctrl-0 = <&touchscreen_pins>;
22+
reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>;
23+
vcc33-supply = <&pp3300_s3>;
24+
status = "fail-needs-probe";
25+
};
26+
27+
touchscreen@16 {
28+
compatible = "elan,ekth8d18", "elan,ekth6a12nay";
29+
reg = <0x16>;
30+
interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>;
31+
pinctrl-names = "default";
32+
pinctrl-0 = <&touchscreen_pins>;
33+
reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>;
34+
vcc33-supply = <&pp3300_s3>;
35+
status = "fail-needs-probe";
36+
};
37+
};
38+
39+
&i2c2 {
40+
trackpad@68 {
41+
compatible = "hid-over-i2c";
42+
reg = <0x68>;
43+
hid-descr-addr = <0x20>;
44+
interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_LOW>;
45+
pinctrl-names = "default";
46+
pinctrl-0 = <&trackpad_pin>;
47+
vdd-supply = <&pp3300_s3>;
48+
wakeup-source;
49+
status = "fail-needs-probe";
50+
};
51+
};
52+
53+
&i2c5 {
54+
clock-frequency = <400000>;
55+
56+
/delete-node/ codec@1a;
57+
58+
rt5650: codec@1a {
59+
compatible = "realtek,rt5650";
60+
reg = <0x1a>;
61+
interrupts-extended = <&pio 17 IRQ_TYPE_EDGE_BOTH>;
62+
avdd-supply = <&mt6366_vio18_reg>;
63+
cpvdd-supply = <&mt6366_vio18_reg>;
64+
pinctrl-names = "default";
65+
pinctrl-0 = <&speaker_codec_pins_default>;
66+
cbj-sleeve-gpios = <&pio 150 GPIO_ACTIVE_HIGH>;
67+
#sound-dai-cells = <0>;
68+
realtek,dmic1-data-pin = <2>;
69+
realtek,jd-mode = <2>;
70+
};
71+
};
72+
73+
&sound {
74+
compatible = "mediatek,mt8186-mt6366-rt5650-sound";
75+
model = "mt8186_rt5650";
76+
77+
audio-routing =
78+
"Headphone", "HPOL",
79+
"Headphone", "HPOR",
80+
"HDMI1", "TX";
81+
82+
hs-playback-dai-link {
83+
codec {
84+
sound-dai = <&rt5650>;
85+
};
86+
};
87+
88+
hs-capture-dai-link {
89+
codec {
90+
sound-dai = <&rt5650>;
91+
};
92+
};
93+
94+
spk-hdmi-playback-dai-link {
95+
codec {
96+
sound-dai = <&it6505dptx>;
97+
};
98+
};
99+
};
100+
101+
&speaker_codec {
102+
status = "disabled";
103+
};
104+
105+
&trackpad_steelix {
106+
status = "disabled";
107+
};

arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
i2c-scl-internal-delay-ns = <22000>;
119119

120120
/* second source component */
121-
trackpad@2c {
121+
trackpad_steelix: trackpad@2c {
122122
compatible = "hid-over-i2c";
123123
reg = <0x2c>;
124124
hid-descr-addr = <0x20>;

0 commit comments

Comments
 (0)