summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/mediatek/mt8186-corsola-squirtle.dts
blob: f721ad4e5c97825550692dba3363973fbcbe6c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
 * Copyright 2024 Google LLC
 */

/dts-v1/;
#include "mt8186-corsola-voltorb.dtsi"

/ {
	model = "Google squirtle board";
	compatible = "google,squirtle", "mediatek,mt8186";
	chassis-type = "convertible";
};

&i2c1 {
	touchscreen@10 {
		compatible = "elan,ekth6915";
		reg = <0x10>;
		interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>;
		pinctrl-names = "default";
		pinctrl-0 = <&touchscreen_pins>;
		reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>;
		vcc33-supply = <&pp3300_s3>;
		status = "fail-needs-probe";
	};

	touchscreen@16 {
		compatible = "elan,ekth8d18", "elan,ekth6a12nay";
		reg = <0x16>;
		interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>;
		pinctrl-names = "default";
		pinctrl-0 = <&touchscreen_pins>;
		reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>;
		vcc33-supply = <&pp3300_s3>;
		status = "fail-needs-probe";
	};
};

&i2c2 {
	trackpad@68 {
		compatible = "hid-over-i2c";
		reg = <0x68>;
		hid-descr-addr = <0x20>;
		interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_LOW>;
		pinctrl-names = "default";
		pinctrl-0 = <&trackpad_pin>;
		vdd-supply = <&pp3300_s3>;
		wakeup-source;
		status = "fail-needs-probe";
	};
};

&i2c5 {
	clock-frequency = <400000>;

	/delete-node/ codec@1a;

	rt5650: codec@1a {
		compatible = "realtek,rt5650";
		reg = <0x1a>;
		interrupts-extended = <&pio 17 IRQ_TYPE_EDGE_BOTH>;
		avdd-supply = <&mt6366_vio18_reg>;
		cpvdd-supply = <&mt6366_vio18_reg>;
		pinctrl-names = "default";
		pinctrl-0 = <&speaker_codec_pins_default>;
		cbj-sleeve-gpios = <&pio 150 GPIO_ACTIVE_HIGH>;
		#sound-dai-cells = <0>;
		realtek,dmic1-data-pin = <2>;
		realtek,jd-mode = <2>;
	};
};

&sound {
	compatible = "mediatek,mt8186-mt6366-rt5650-sound";
	model = "mt8186_rt5650";

	audio-routing =
		"Headphone", "HPOL",
		"Headphone", "HPOR",
		"HDMI1", "TX";

	hs-playback-dai-link {
		codec {
			sound-dai = <&rt5650>;
		};
	};

	hs-capture-dai-link {
		codec {
			sound-dai = <&rt5650>;
		};
	};

	spk-hdmi-playback-dai-link {
		codec {
			sound-dai = <&it6505dptx>;
		};
	};
};

&speaker_codec {
	status = "disabled";
};

&trackpad_steelix {
	status = "disabled";
};