0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright 2016 MediaTek Inc.
0004 */
0005
0006 #include "mt8173-elm.dtsi"
0007
0008 &i2c0 {
0009 clock-frequency = <200000>;
0010 };
0011
0012 &i2c3 {
0013 touchscreen2: touchscreen@34 {
0014 compatible = "melfas,mip4_ts";
0015 reg = <0x34>;
0016 interrupt-parent = <&pio>;
0017 interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
0018 };
0019
0020 /*
0021 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
0022 * Gen (MTK) are using synaptics touchscreen (hid-over-i2c driver) as a
0023 * second source touchscreen.
0024 */
0025 touchscreen3: touchscreen@20 {
0026 compatible = "hid-over-i2c";
0027 reg = <0x20>;
0028 hid-descr-addr = <0x0020>;
0029 interrupt-parent = <&pio>;
0030 interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
0031 };
0032 };
0033
0034 &i2c4 {
0035 /*
0036 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
0037 * Gen (MTK) are using synaptics trackpad (hid-over-i2c driver) as a
0038 * second source trackpad.
0039 */
0040 trackpad2: trackpad@2c {
0041 compatible = "hid-over-i2c";
0042 interrupt-parent = <&pio>;
0043 interrupts = <117 IRQ_TYPE_LEVEL_LOW>;
0044 reg = <0x2c>;
0045 hid-descr-addr = <0x0020>;
0046 wakeup-source;
0047 };
0048 };
0049
0050 &mmc1 {
0051 wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
0052 };
0053
0054 &pio {
0055 hdmi_mux_pins: hdmi_mux_pins {
0056 pins2 {
0057 pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
0058 bias-pull-up;
0059 output-high;
0060 };
0061 };
0062
0063 mmc1_pins_default: mmc1default {
0064 pins_wp {
0065 pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
0066 input-enable;
0067 bias-pull-up;
0068 };
0069 };
0070 };