Skip to content

Commit 689b937

Browse files
hsinyi527mbgg
authored andcommitted
arm64: dts: mediatek: add mt8173 elm and hana board
Elm is Acer Chromebook R13. Hana is Lenovo Chromebook. Both uses mt8173 SoC. Signed-off-by: Hsin-Yi Wang <[email protected]> Tested-by: Enric Balletbo i Serra <[email protected]> Reviewed-by: Enric Balletbo i Serra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent 72b2921 commit 689b937

File tree

7 files changed

+1301
-1
lines changed

7 files changed

+1301
-1
lines changed

arch/arm64/boot/dts/mediatek/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb
66
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb
77
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb
88
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb
9+
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm.dtb
10+
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana.dtb
11+
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana-rev7.dtb
912
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-evb.dtb
1013
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-evb.dtb
1114
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Copyright 2019 MediaTek Inc.
4+
*/
5+
6+
/dts-v1/;
7+
#include "mt8173-elm-hana.dtsi"
8+
9+
/ {
10+
model = "Google Hanawl";
11+
compatible = "google,hana-rev7", "mediatek,mt8173";
12+
};
13+
14+
&cpu_thermal {
15+
trips {
16+
cpu_crit: cpu_crit0 {
17+
temperature = <100000>;
18+
type = "critical";
19+
};
20+
};
21+
};
22+
23+
&gpio_keys {
24+
/delete-node/tablet_mode;
25+
/delete-node/volume_down;
26+
/delete-node/volume_up;
27+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Copyright 2016 MediaTek Inc.
4+
*/
5+
6+
/dts-v1/;
7+
#include "mt8173-elm-hana.dtsi"
8+
9+
/ {
10+
model = "Google Hana";
11+
compatible = "google,hana-rev6", "google,hana-rev5",
12+
"google,hana-rev4", "google,hana-rev3",
13+
"google,hana", "mediatek,mt8173";
14+
};
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
wakeup-source;
47+
};
48+
};
49+
50+
&mmc1 {
51+
wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
52+
};
53+
54+
&pio {
55+
hdmi_mux_pins: hdmi_mux_pins {
56+
pins2 {
57+
pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
58+
bias-pull-up;
59+
output-high;
60+
};
61+
};
62+
63+
mmc1_pins_default: mmc1default {
64+
pins_wp {
65+
pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
66+
input-enable;
67+
bias-pull-up;
68+
};
69+
};
70+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Copyright 2016 MediaTek Inc.
4+
*/
5+
6+
/dts-v1/;
7+
#include "mt8173-elm.dtsi"
8+
9+
/ {
10+
model = "Google Elm";
11+
compatible = "google,elm-rev8", "google,elm-rev7", "google,elm-rev6",
12+
"google,elm-rev5", "google,elm-rev4", "google,elm-rev3",
13+
"google,elm", "mediatek,mt8173";
14+
};

0 commit comments

Comments
 (0)