Debian Codegraph @

scripts/dtc/include-prefixes/arm64/mediatek/mt8173-elm-hana.dtsi

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