summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
blob: ae0379fd42a91ce5420f97553736649434d469aa (plain) (blame)
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
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright 2016 MediaTek Inc.
 */

#include "mt8173-elm.dtsi"

&i2c0 {
	clock-frequency = <200000>;
};

&i2c3 {
	touchscreen2: touchscreen@34 {
		compatible = "melfas,mip4_ts";
		reg = <0x34>;
		interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>;
	};

	/*
	 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
	 * Gen (MTK) are using synaptics touchscreen (hid-over-i2c driver) as a
	 * second source touchscreen.
	 */
	touchscreen3: touchscreen@20 {
		compatible = "hid-over-i2c";
		reg = <0x20>;
		hid-descr-addr = <0x0020>;
		interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>;
	};

	/* Lenovo Ideapad C330 uses G2Touch touchscreen as a 2nd source touchscreen */
	touchscreen@40 {
		compatible = "hid-over-i2c";
		reg = <0x40>;
		hid-descr-addr = <0x0001>;
		interrupt-parent = <&pio>;
		interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
	};
};

&i2c4 {
	/*
	 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
	 * Gen (MTK) are using synaptics trackpad (hid-over-i2c driver) as a
	 * second source trackpad.
	 */
	trackpad2: trackpad@2c {
		compatible = "hid-over-i2c";
		interrupts-extended = <&pio 117 IRQ_TYPE_LEVEL_LOW>;
		reg = <0x2c>;
		hid-descr-addr = <0x0020>;
		/*
		 * The trackpad needs a post-power-on delay of 100ms,
		 * but at time of writing, the power supply for it on
		 * this board is always on. The delay is therefore not
		 * added to avoid impacting the readiness of the
		 * trackpad.
		 */
		vdd-supply = <&mt6397_vgp6_reg>;
		wakeup-source;
	};
};

&mmc1 {
	wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
};

&pio {
	hdmi_mux_pins: hdmi_mux_pins {
		pins2 {
			pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
			bias-pull-up;
			output-high;
		};
	};

	mmc1_pins_default: mmc1default {
		pins_wp {
			pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
			input-enable;
			bias-pull-up;
		};
	};
};