xref: /openbmc/linux/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi (revision 4981b8a2d9fafa0d8060c83ffb19cd55c6798046)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright 2016 MediaTek Inc.
4 */
5
6#include "mt8173-elm.dtsi"
7
8&i2c0 {
9	clock-frequency = <200000>;
10};
11
12&i2c3 {
13	touchscreen2: touchscreen@34 {
14		compatible = "melfas,mip4_ts";
15		reg = <0x34>;
16		interrupt-parent = <&pio>;
17		interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
18	};
19
20	/*
21	 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
22	 * Gen (MTK) are using synaptics touchscreen (hid-over-i2c driver) as a
23	 * second source touchscreen.
24	 */
25	touchscreen3: touchscreen@20 {
26		compatible = "hid-over-i2c";
27		reg = <0x20>;
28		hid-descr-addr = <0x0020>;
29		interrupt-parent = <&pio>;
30		interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
31	};
32};
33
34&i2c4 {
35	/*
36	 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
37	 * Gen (MTK) are using synaptics trackpad (hid-over-i2c driver) as a
38	 * second source trackpad.
39	 */
40	trackpad2: trackpad@2c {
41		compatible = "hid-over-i2c";
42		interrupt-parent = <&pio>;
43		interrupts = <117 IRQ_TYPE_LEVEL_LOW>;
44		reg = <0x2c>;
45		hid-descr-addr = <0x0020>;
46		/*
47		 * The trackpad needs a post-power-on delay of 100ms,
48		 * but at time of writing, the power supply for it on
49		 * this board is always on. The delay is therefore not
50		 * added to avoid impacting the readiness of the
51		 * trackpad.
52		 */
53		vdd-supply = <&mt6397_vgp6_reg>;
54		wakeup-source;
55	};
56};
57
58&mmc1 {
59	wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
60};
61
62&pio {
63	hdmi_mux_pins: hdmi_mux_pins {
64		pins2 {
65			pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
66			bias-pull-up;
67			output-high;
68		};
69	};
70
71	mmc1_pins_default: mmc1default {
72		pins_wp {
73			pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
74			input-enable;
75			bias-pull-up;
76		};
77	};
78};
79